|
@@ -22,6 +22,7 @@
|
|
|
v-if= "isRequest"
|
|
|
:status= "btnStatus"
|
|
|
:order="information"
|
|
|
+ :rechargeGoods = "rechargeGoods"
|
|
|
:ableUserMoney = "ableUserMoney"
|
|
|
:shareCode= "shareCode"
|
|
|
@buttonConfirm="handButtonConfirm">
|
|
@@ -94,6 +95,7 @@
|
|
|
receiptAmount:0, //支付金额
|
|
|
returnedPurchaseFee:0, //退款金额
|
|
|
navbarHeight:'',
|
|
|
+ rechargeGoods:false,
|
|
|
headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
|
|
|
systeminfo: this.setSysteminfo(), //获取设备信息
|
|
|
isIphoneX:this.$store.state.isIphoneX,
|
|
@@ -124,6 +126,7 @@
|
|
|
queryOrderDetails({ orderID : this.orderID }).then(response =>{
|
|
|
let resData = response.data;
|
|
|
this.isRequest = true
|
|
|
+ this.rechargeGoods = resData.rechargeGoods
|
|
|
this.userID = resData.order.userID
|
|
|
this.shareCode = resData.shareCode
|
|
|
this.addressData = resData.userInfo
|
|
@@ -163,35 +166,18 @@
|
|
|
}
|
|
|
},
|
|
|
handOrderConfirm(data){//确认订单
|
|
|
- if(this.ableUserMoney == 0){
|
|
|
- this.$util.modal('提示','确认此订单?','确定','取消',true,() =>{
|
|
|
- affirmOrder({orderID:this.orderID}).then(response =>{
|
|
|
- this.$util.msg(response.msg,2000,true,'success');
|
|
|
- this.initOrderDetaileData()
|
|
|
- }).catch(error =>{
|
|
|
- this.$util.msg(error.msg,2000)
|
|
|
- })
|
|
|
+ this.$util.modal('提示','确认此订单?','确定','取消',true,() =>{
|
|
|
+ affirmOrder({orderID:this.orderID}).then(response =>{
|
|
|
+ this.$util.msg(response.msg,2000,true,'success');
|
|
|
+ this.initOrderDetaileData()
|
|
|
+ }).catch(error =>{
|
|
|
+ this.$util.msg(error.msg,2000)
|
|
|
})
|
|
|
- }else{
|
|
|
- this.isPayModel = true;
|
|
|
- this.modelType = 3
|
|
|
- this.payModelData = {
|
|
|
- ableUserMoney:this.ableUserMoney,
|
|
|
- orderId:this.orderID
|
|
|
- }
|
|
|
- }
|
|
|
+ })
|
|
|
},
|
|
|
- hanldPaymentConfirm(data){//监听弹窗确认按钮
|
|
|
+ hanldPaymentConfirm(data){//监听余额抵扣按钮
|
|
|
switch(data.type){
|
|
|
case 3:
|
|
|
- affirmOrder({orderID:this.orderID}).then(response =>{
|
|
|
- this.$util.msg(response.msg,2000,true,'success');
|
|
|
- this.initOrderDetaileData()
|
|
|
- }).catch(error =>{
|
|
|
- this.$util.msg(error.msg,2000)
|
|
|
- })
|
|
|
- break;
|
|
|
- case 4:
|
|
|
this.OrderService.OrderBalanceDeduction({orderId:this.orderID}).then(response =>{
|
|
|
this.$util.msg('余额抵扣成功',2000)
|
|
|
this.initOrderDetaileData()
|
|
@@ -209,7 +195,7 @@
|
|
|
this.$util.modal('','订单已申请全部退款,无需再付款!','确定','',false,() =>{})
|
|
|
}else{
|
|
|
this.isPayModel = true;
|
|
|
- this.modelType = 4
|
|
|
+ this.modelType = 3
|
|
|
}
|
|
|
}).catch(error =>{
|
|
|
this.$util.msg(error.msg,2000)
|