|
@@ -82,6 +82,53 @@
|
|
|
<el-button type="primary" @click="onSubmit2">提交</el-button>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
+ <el-tab-pane label="红包商户配置" name="redPacketConfig" >
|
|
|
+ <el-form ref="redPacketConfig" :model="redPacketConfig" label-width="150px">
|
|
|
+ <el-form-item label="红包接口类型" prop="isNew">
|
|
|
+ <el-radio-group v-model="redPacketConfig.isNew">
|
|
|
+ <el-radio label="0">商家转账到零钱(旧)</el-radio>
|
|
|
+ <el-radio label="1">商家转账(新)</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="公众号appid" prop="appId">
|
|
|
+ <el-input v-model="redPacketConfig.appId" label="请输入appId"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="小程序appid" prop="appId">
|
|
|
+ <el-input v-model="redPacketConfig.miniappId" label="请输入appId"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="商户号" prop="mchId">
|
|
|
+ <el-input v-model="redPacketConfig.mchId" label="请输入mchId"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="商户密钥" prop="mchKey">
|
|
|
+ <el-input v-model="redPacketConfig.mchKey" label="mchKey"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="p12证书路径" prop="keyPath">
|
|
|
+ <el-input v-model="redPacketConfig.keyPath" label="请输入keyPath"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="apiV3密钥" prop="apiV3Key">
|
|
|
+ <el-input v-model="redPacketConfig.apiV3Key" label="请输入apiV3Key"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="公钥ID" prop="publicKeyId">
|
|
|
+ <el-input v-model="redPacketConfig.publicKeyId" label="请输入公钥ID"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="公钥证书" prop="publicKeyPath">
|
|
|
+ <el-input v-model="redPacketConfig.publicKeyPath" label="请输入publicKeyPath"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="key路径" prop="privateKeyPath">
|
|
|
+ <el-input v-model="redPacketConfig.privateKeyPath" label="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="cert路径" prop="privateCertPath">
|
|
|
+ <el-input v-model="redPacketConfig.privateCertPath" label="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="回调地址" prop="notifyUrl">
|
|
|
+ <el-input v-model="redPacketConfig.notifyUrl" label="请输入"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <div style="float:right;margin-right:20px">
|
|
|
+ <el-button type="primary" @click="onSubmit4">提交</el-button>
|
|
|
+ </div>
|
|
|
+ </el-form>
|
|
|
+ </el-tab-pane>
|
|
|
</el-tabs>
|
|
|
|
|
|
<el-dialog :title="customerExt.title" :visible.sync="customerExt.open" width="500px" append-to-body>
|
|
@@ -151,6 +198,10 @@ export default {
|
|
|
qwConfig:{
|
|
|
|
|
|
},
|
|
|
+ redPacketConfig:{},
|
|
|
+
|
|
|
+ redPacketConfigForm:{},
|
|
|
+
|
|
|
qwConfigForm:{},
|
|
|
qwkfConfigForm:{},
|
|
|
};
|
|
@@ -160,6 +211,7 @@ export default {
|
|
|
this.getConfigKey("sys:config");
|
|
|
this.getConfigKey("qw:config");
|
|
|
this.getConfigKey("customer:config");
|
|
|
+ this.getConfigKey("redPacket:config");
|
|
|
this.getDicts("sys_company_status").then((response) => {
|
|
|
this.statusOptions = response.data;
|
|
|
});
|
|
@@ -258,6 +310,11 @@ export default {
|
|
|
if(response.data.configValue!=null){
|
|
|
this.customerConfig=JSON.parse(response.data.configValue);
|
|
|
}
|
|
|
+ }else if(key=="redPacket:config"){
|
|
|
+ this.redPacketConfigForm=response.data;
|
|
|
+ if(response.data.configValue!=null){
|
|
|
+ this.redPacketConfig=JSON.parse(response.data.configValue);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
});
|
|
@@ -289,6 +346,15 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ onSubmit4() {
|
|
|
+ this.redPacketConfigForm.configValue=JSON.stringify(this.redPacketConfig);
|
|
|
+ updateConfig(this.redPacketConfigForm).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ this.getConfigKey("redPacket:config");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|