From 7698e9e89384e0fbbaa43dfdfb4748f0034a8e58 Mon Sep 17 00:00:00 2001 From: rainbro <33367671@qq.com> Date: Tue, 22 Jul 2025 17:48:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=99=E7=82=B9=E7=BB=91=E5=AE=9A=E6=94=B6?= =?UTF-8?q?=E6=AC=BE=E6=96=B9=E5=BC=8F=E4=BC=98=E5=8C=96=E5=B9=B6=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=A7=A3=E7=BB=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/agent/siteBaseSetting.vue | 222 ++++++++++-------------------------- 1 file changed, 59 insertions(+), 163 deletions(-) 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) {