|
@@ -71,7 +71,7 @@
|
|
|
<text class="iconfont icon-duigou"></text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="pay-item" :class="{ 'current' : tabCurrentIndex === 1}" @click="tabClick(1)" >
|
|
|
+ <view v-if="B2BpayFlag === 1" class="pay-item" :class="{ 'current' : tabCurrentIndex === 1}" @click="tabClick(1)" >
|
|
|
<view class="item-l">
|
|
|
<view class="item-icon"><text class="iconfont icon-qiyewangyinzhifu"></text></view>
|
|
|
<view class="item-text">
|
|
@@ -140,6 +140,7 @@
|
|
|
emptyWrapperH: '',
|
|
|
bankNumber:'6214 6202 2800 0415 461',
|
|
|
payOrderId:'',
|
|
|
+ B2BpayFlag:1,
|
|
|
nvabarData: { //顶部自定义导航
|
|
|
showCapsule:1, // 是否显示左上角图标 1表示显示 0表示不显示,
|
|
|
showSearch: 0,
|
|
@@ -238,19 +239,26 @@
|
|
|
PayOrderCheckoutCounter(shopOrderId){
|
|
|
this.PayService.PayOrderCheckoutShoporders({shopOrderId:shopOrderId}).then(response =>{
|
|
|
let data = response.data.shopOrder
|
|
|
+ this.B2BpayFlag = response.data.B2BpayFlag //待付金额
|
|
|
this.payableAmount = data.obligation //待付金额
|
|
|
// 判断微信支付是否可用
|
|
|
this.weChatFlag = response.data.weChatFlag === '1'
|
|
|
if(!this.weChatFlag){
|
|
|
- this.tabCurrentIndex = 1
|
|
|
- this.btnColor='#034582'
|
|
|
- this.buttonText='使用企业网银支付'
|
|
|
+ if(this.B2BpayFlag ===1){
|
|
|
+ this.tabCurrentIndex = 1
|
|
|
+ this.btnColor='#034582'
|
|
|
+ this.buttonText='使用企业网银支付'
|
|
|
+ }else{
|
|
|
+ this.tabCurrentIndex = 2
|
|
|
+ this.btnColor='#034582'
|
|
|
+ this.buttonText='使用个人网银支付'
|
|
|
+ }
|
|
|
}
|
|
|
//判断线上线下显示
|
|
|
if(this.optionType == 'onlinePay'){
|
|
|
this.onlinePay = 2
|
|
|
}else{
|
|
|
- this.onlinePay = data.onlinePay
|
|
|
+ this.onlinePay = response.data.onlinePay
|
|
|
}
|
|
|
if(data.obligation>0){
|
|
|
this.payStatusText = '使用任何一种线上支付方式支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。'
|