Quellcode durchsuchen

商户管理 增加公众号的配置

linwenxin vor 1 Jahr
Ursprung
Commit
2faf82e87f

+ 16 - 0
src/views/setting/organizationManagement/settledManagement/index.vue

@@ -266,6 +266,18 @@
           <el-form-item label="微信订阅模版" prop="templateId">
             <el-input v-model="step3Form.templateId" autocomplete="off" placeholder="请输入微信订阅模版"></el-input>
           </el-form-item>
+
+
+          
+          <el-form-item label="公众号appid" prop="pubAppId">
+            <el-input v-model="step3Form.pubAppId" autocomplete="off" placeholder="请输入公众号appid"></el-input>
+          </el-form-item>
+          <el-form-item label="公众号密钥" prop="pubAppSecret">
+            <el-input v-model="step3Form.pubAppSecret" autocomplete="off" placeholder="请输入公众号密钥"></el-input>
+          </el-form-item>
+
+
+
         </el-card>
       </el-form>
     </div>
@@ -400,6 +412,8 @@ export default {
         childKey: '',
         childMerchantId: '',
         templateId: '',
+        pubAppId:'',
+        pubAppSecret:''
       },
       step3FormRules: {
         enterpriseId: [
@@ -571,6 +585,8 @@ export default {
             subSecret: this.step3Form.childKey,
             subMchId: this.step3Form.childMerchantId,
             template: this.step3Form.templateId,
+            pubAppId: this.step3Form.pubAppId,
+            pubAppSecret: this.step3Form.pubAppSecret,
           }
           addAccount(params).then(res => {
             this.$successMsg('开通成功');

+ 18 - 0
src/views/setting/organizationManagement/tenantDetails/index.vue

@@ -198,6 +198,18 @@
           <el-form-item label="微信订阅模版" prop="templateId">
             <el-input v-model="step3Form.templateId" autocomplete="off" placeholder="请输入微信订阅模版"></el-input>
           </el-form-item>
+
+
+          
+          <el-form-item label="公众号appid" prop="pubAppId">
+            <el-input v-model="step3Form.pubAppId" autocomplete="off" placeholder="请输入公众号appid"></el-input>
+          </el-form-item>
+          <el-form-item label="公众号密钥" prop="pubAppSecret">
+            <el-input v-model="step3Form.pubAppSecret" autocomplete="off" placeholder="请输入公众号密钥"></el-input>
+          </el-form-item>
+
+
+
         </el-card>
       </el-form>
     </div>
@@ -401,6 +413,8 @@ export default {
         childKey: '',
         childMerchantId: '',
         templateId: '',
+        pubAppId: '',
+        pubAppSecret: '',
       },
       step3FormRules: {
         enterpriseId: [
@@ -495,6 +509,8 @@ export default {
         this.step3Form.childKey = res.data.subSecret;
         this.step3Form.childMerchantId = res.data.subMchId;
         this.step3Form.templateId = res.data.template;
+        this.step3Form.pubAppId = res.data.pubAppId;
+        this.step3Form.pubAppSecret = res.data.pubAppSecret;
         this.companyWechatId = res.data.companyWechatId;
 
         this.step4Form.dayNum = res.data.dayNum
@@ -645,6 +661,8 @@ export default {
             subSecret: this.step3Form.childKey,
             subMchId: this.step3Form.childMerchantId,
             template: this.step3Form.templateId,
+            pubAppId: this.step3Form.pubAppId,
+            pubAppSecret: this.step3Form.pubAppSecret,
             companyWechatId: this.companyWechatId
           }
           editAccount(params).then(res => {