下单页面加控制

This commit is contained in:
2022-06-11 13:58:59 +08:00
parent aae33064bf
commit e8cad443b3
5 changed files with 714 additions and 704 deletions

View File

@@ -20,6 +20,7 @@
coins: "",
platform: ['dtpay'],
oepnType: '',
canpay:true,
}
},
mounted() {
@@ -27,7 +28,6 @@
this.price = Number(this.$Route.query.price).toFixed(2)
this.coins = this.$Route.query.coins
if (this.$Route.query.oepnType === 'order') {
console.log('order....');
this.oepnType = this.$Route.query.oepnType
}
},
@@ -61,9 +61,9 @@
},
getDTPAY() {
console.log('dt 支付。。。')
if(this.canpay){
this.canpay = false
dtPAY(this.payNo).then(res => {
console.log(res);
// this.callPay(res, payType)
if (res.state === 'warning') {
uni.showModal({
title: '当前DT积分不足',
@@ -80,6 +80,7 @@
} else {
uni.navigateBack();
}
this.canpay = true
}
})
} else {
@@ -95,6 +96,7 @@
this.$Router.back();
eventBus.$emit('paySuccess', this.payNo);
}
this.canpay = true
}
})
} else {
@@ -116,6 +118,7 @@
} else {
uni.navigateBack();
}
this.canpay = true
}
})
}
@@ -127,8 +130,10 @@
icon: "none",
mask: true,
})
this.canpay = true
})
}
},
getALPAY(payType) {
alPAY(this.payNo).then(res => {

View File

@@ -65,11 +65,9 @@
total : 0,
freight : 0,
address : "",
remark : ""
remark : "",
canApply :true
};
},
computed:{
},
onShow(){
if(JSON.stringify(this.$store.getters.getAddress) !== '{}') this.address = this.$store.getters.getAddress
@@ -114,6 +112,8 @@
})
return
}
if(this.canApply){
this.canApply = false;
verify({
goods_sku_id: this.$Route.query.skuId,
qty : this.qty,
@@ -130,7 +130,15 @@
coins : res.coins,
}
})
this.canApply = true
}).catch(err=>{
this.canApply = true
})
}else{
this.canApply = true
}
}
}
}

View File

@@ -302,10 +302,7 @@
background-color: $text-price;
display: inline-block;
}
// .card-title{
// font-weight: normal;
// font-size: 28rpx!important;
// }
.card-box {
// &-item{
// background: #fff !important;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long