|
@@ -2,7 +2,7 @@
|
|
|
<view class="container cashier" :style="{paddingTop:CustomBar+'px'}">
|
|
|
<cu-custom :navbar-data='nvabarData' @navigateBack="hanldNavigateBack"></cu-custom>
|
|
|
<view class="container-cash clearfix" v-if="invoiceStatus">
|
|
|
- <view class="pay-bring-title">本次交易暂不支持线上支付,请使用线下转账方式付款</view>
|
|
|
+ <view class="pay-bring-title">{{payBringTitle}}</view>
|
|
|
<view class="container-wrapper">
|
|
|
<view class="pay-content">
|
|
|
<view class="pay-p"><text>待付金额</text></view>
|
|
@@ -122,6 +122,7 @@
|
|
|
receiptStatus:'',
|
|
|
invoiceStatus:false,
|
|
|
onlinePayFlag:'',
|
|
|
+ payBringTitle:'本次交易暂不支持线上支付,请使用线下转账方式付款',
|
|
|
payStatusText:'使用微信和企业网银支付全部金额后,供应商会在24小时后发货(周末、节假日顺延)。若着急发货,可以选择使用线下转账进行付款。'
|
|
|
}
|
|
|
},
|
|
@@ -153,21 +154,33 @@
|
|
|
},
|
|
|
methods:{
|
|
|
initData(e){
|
|
|
+ this.orderID = e.orderID
|
|
|
+ this.payOrderId ='#'+e.orderID+'#';
|
|
|
switch(e.type){
|
|
|
case 'confirm':
|
|
|
this.nvabarData.haveBack = false
|
|
|
this.nvabarData.haveHome = true
|
|
|
this.nvabarData.title = '支付'
|
|
|
+ this.PayOrderCheckoutCounter(this.orderID)
|
|
|
break;
|
|
|
case 'payfirm':
|
|
|
this.nvabarData.haveBack = true
|
|
|
this.nvabarData.haveHome = false
|
|
|
this.nvabarData.title = '选择支付方式'
|
|
|
+ this.PayOrderCheckoutCounter(this.orderID)
|
|
|
+ break;
|
|
|
+ case 'onlinePay':
|
|
|
+ this.nvabarData.haveBack = true
|
|
|
+ this.nvabarData.haveHome = false
|
|
|
+ this.nvabarData.title = '付款提示'
|
|
|
+ this.invoiceStatus = true
|
|
|
+ this.payableAmount = e.payAmount
|
|
|
+ this.payBringTitle = '您已通过线下转账的方式支付了订单部分款项,剩余款项依然需要使用线下转账方式,给您带来的不便敬请谅解'
|
|
|
break;
|
|
|
}
|
|
|
- this.orderID = e.orderID
|
|
|
- this.payOrderId ='#'+e.orderID+'#';
|
|
|
- this.PayService.PayOrderCheckoutCounter({orderId:this.orderID}).then(response =>{
|
|
|
+ },
|
|
|
+ PayOrderCheckoutCounter(orderId){
|
|
|
+ this.PayService.PayOrderCheckoutCounter({orderId:orderId}).then(response =>{
|
|
|
let data = response.data.order
|
|
|
this.payableAmount = data.payableAmount - data.receiptAmount //待付金额
|
|
|
this.receiptStatus = data.receiptStatus
|
|
@@ -247,9 +260,9 @@
|
|
|
.pay-bring-title{
|
|
|
box-sizing: border-box;
|
|
|
width: 100%;
|
|
|
- height: 96rpx;
|
|
|
- padding: 0 24rpx;
|
|
|
- line-height: 96rpx;
|
|
|
+ min-height: 96rpx;
|
|
|
+ padding: 20rpx 24rpx;
|
|
|
+ line-height: 48rpx;
|
|
|
text-align: left;
|
|
|
font-size: $font-size-24;
|
|
|
background:rgba(255,234,221,1);
|