zhengjinyi 1 éve
szülő
commit
667aca99f6

+ 1 - 1
pages/user/pay/card-order.vue

@@ -300,7 +300,7 @@ export default {
 					this.balanceAmount = this.obligation - this.payAmount // 计算剩余支付金额
 					// 支付方式配置
 					if(data.onlinePayWays){
-						this.checkPayMode(data.onlinePayWays)
+						this.checkPayMode(data.onlinePayWays,data.weChatFlag)
 					}
 					setTimeout(() => {
 						this.skeletonShow = false

+ 6 - 3
pages/user/pay/mixins/cardMixins.js

@@ -72,11 +72,15 @@ const cardMixins = {
                 break
             }
         },
-        checkPayMode(range) {
+        checkPayMode(range,weChatFlag) {
             // 校验支付模式
             // test range = '4'
             // 1微信 2支付宝 3个人网银 4企业网银 5快捷支付
-            this.weChatFlag = range.indexOf('1') > -1
+            if(weChatFlag === '2'){
+                this.weChatFlag =  false
+            }else{
+                this.weChatFlag = range.indexOf('1') > -1
+            }
             this.B2BpayFlag = range.indexOf('4') > -1
             this.QuickPayFlag = range.indexOf('5') > -1
             // 设置默认支付方式
@@ -85,7 +89,6 @@ const cardMixins = {
             }else{
                 this.tabCurrentIndex = this.weChatFlag ? 0 : this.B2BpayFlag ? 1 : 2
             }
-            
             this.tabClick(this.tabCurrentIndex)
         }
     }

+ 1 - 1
services/config.env.js

@@ -6,7 +6,7 @@ if(process.env.NODE_ENV === 'development'){
     // URL_CONFIG = 'http://192.168.2.102:18002' //志国联调地址
     // URL_CONFIG = 'http://192.168.2.103:18002'    //陈凯联调地址
     URL_CONFIG = 'https://core-b.caimei365.com'
-    // URL_CONFIG = 'https://core.caimei365.com'  
+    // URL_CONFIG = 'https://core.caimei365.com'   
 }else{
     // 生产环境
     // URL_CONFIG = 'https://core-b.caimei365.com'