diff --git a/src/views/agent/siteBaseSetting.vue b/src/views/agent/siteBaseSetting.vue index b7cde36..be9e2d6 100644 --- a/src/views/agent/siteBaseSetting.vue +++ b/src/views/agent/siteBaseSetting.vue @@ -73,18 +73,21 @@
+
微信收款
- + + - - - - -
@@ -140,12 +121,12 @@
支付宝收款
- + - - - - + +
京东店铺
- + :options_null="!jdList.length" + @change="changeSelectJindong" > - - - - -
+ +
淘宝/天猫店铺
- + :options_null="!taobaoList.length" + @change="changeSelectTaobao" > - - - - -
+ +
拼多多店铺
- + :options_null="!pddList.length" + @change="changeSelectPdd" > - - - - -
@@ -478,9 +388,6 @@ export default { domainTypes: [], domainPrefix: '', siteDomain: '', - - options_weixin_null: {}, - select_placeholder_weixin: '暂无收款账号,稍后配置', } }, computed: { @@ -688,63 +595,52 @@ export default { cancleUpdateSiteInfo() { this.getSiteInfo(); }, - changeNormalWeixin() { - - }, - changeSelectWeixin(item, flag) { - if (flag) { - this.select_placeholder_weixin = this.options_weixin_null.desc; - return + changeSelectWeixin(item) { + console.log(item, 'item') + if(this.bindWxpayId === item.payid){ + this.bindWxpayId = 0 + this.selectWxpay = null + return true } + this.bindWxpayId = item.payid; this.selectWxpay = item; - console.log(this.bindWxpayId, 'bindWxpayId'); - console.log(this.selectWxpay, 'selectWxpay'); - - this.selectedItem = { ...item }; - console.log(this.selectedItem, 'this.selectedItem===='); }, - changeSelectAlipay(item, flag) { - if (flag) { - this.select_placeholder_weixin = this.options_weixin_null.desc; - return + changeSelectAlipay(item) { + if(this.bindAlipayId === item.payid){ + this.bindAlipayId = 0 + this.selectAlipay = null + return true } this.bindAlipayId = item.payid; this.selectAlipay = item; - console.log(this.bindWxpayId, 'bindWxpayId'); - - this.selectedItem = { ...item }; - console.log(this.selectedItem, 'this.selectedItem===='); }, - changeSelectTaobao(item, flag) { - if (flag) { - this.select_placeholder_weixin = this.options_weixin_null.desc; - return + changeSelectTaobao(item) { + if(this.bindTaobaoId === item.payid){ + this.bindTaobaoId = 0 + this.selectTaobao = null + return true } this.bindTaobaoId = item.payid; this.selectTaobao = item; - - this.selectedItem = { ...item }; }, - changeSelectJindong(item, flag) { - if (flag) { - this.select_placeholder_weixin = this.options_weixin_null.desc; - return + changeSelectJindong(item) { + if(this.bindJdId === item.payid){ + this.bindJdId = 0 + this.selectJd = null + return true } this.bindJdId = item.payid; this.selectJd = item; - - this.selectedItem = { ...item }; }, - changeSelectPdd(item, flag) { - if (flag) { - this.select_placeholder_weixin = this.options_weixin_null.desc; - return + changeSelectPdd(item) { + if(this.bindPddId === item.payid){ + this.bindPddId = 0 + this.selectPdd = null + return true } this.bindPddId = item.payid; this.selectPdd = item; - - this.selectedItem = { ...item }; }, // 销售渠道 domainTypeChange(type) {