From bc9c012bb21fce64dad8b82cdadc82649ed1e427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Fri, 8 Jul 2022 11:26:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=AE=E4=BF=A1h5=E4=B8=AD?= =?UTF-8?q?=E5=85=85=E5=80=BC=E4=BC=9A=E5=87=BA=E7=8E=B0=E9=9B=B6=E9=92=B1?= =?UTF-8?q?=E5=85=85=E5=80=BC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cart/payment/payOrder.vue | 14 ++++++++++---- pages/mine/address/add.vue | 6 ++++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/pages/cart/payment/payOrder.vue b/pages/cart/payment/payOrder.vue index 840a42f..f5b092c 100644 --- a/pages/cart/payment/payOrder.vue +++ b/pages/cart/payment/payOrder.vue @@ -163,10 +163,10 @@ // #endif - if(this.routerVal.recharge_sn){ - this.payList = res.data.result.support.filter((item) => { + if(this.routerVal.recharge_sn){ + this.payList = res.data.result.support.filter((item) => { return item != "WALLET"; - }) + }) } else{ this.payList = res.data.result.support; @@ -178,7 +178,13 @@ this.payList = res.data.result.support.filter((item) => { return item != "ALIPAY"; - }); + }); + // 充值的话仅保留微信支付 + if(this.orderType == "RECHARGE"){ + this.payList = res.data.result.support.filter((item) => { + return item == "WECHAT"; + }); + } } // #endif diff --git a/pages/mine/address/add.vue b/pages/mine/address/add.vue index f4f3f51..7cf807f 100644 --- a/pages/mine/address/add.vue +++ b/pages/mine/address/add.vue @@ -1,10 +1,12 @@