下单页面加控制
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
coins: "",
|
coins: "",
|
||||||
platform: ['dtpay'],
|
platform: ['dtpay'],
|
||||||
oepnType: '',
|
oepnType: '',
|
||||||
|
canpay:true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -27,7 +28,6 @@
|
|||||||
this.price = Number(this.$Route.query.price).toFixed(2)
|
this.price = Number(this.$Route.query.price).toFixed(2)
|
||||||
this.coins = this.$Route.query.coins
|
this.coins = this.$Route.query.coins
|
||||||
if (this.$Route.query.oepnType === 'order') {
|
if (this.$Route.query.oepnType === 'order') {
|
||||||
console.log('order....');
|
|
||||||
this.oepnType = this.$Route.query.oepnType
|
this.oepnType = this.$Route.query.oepnType
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -61,9 +61,9 @@
|
|||||||
},
|
},
|
||||||
getDTPAY() {
|
getDTPAY() {
|
||||||
console.log('dt 支付。。。')
|
console.log('dt 支付。。。')
|
||||||
|
if(this.canpay){
|
||||||
|
this.canpay = false
|
||||||
dtPAY(this.payNo).then(res => {
|
dtPAY(this.payNo).then(res => {
|
||||||
console.log(res);
|
|
||||||
// this.callPay(res, payType)
|
|
||||||
if (res.state === 'warning') {
|
if (res.state === 'warning') {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '当前DT积分不足',
|
title: '当前DT积分不足',
|
||||||
@@ -80,6 +80,7 @@
|
|||||||
} else {
|
} else {
|
||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
}
|
}
|
||||||
|
this.canpay = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -95,6 +96,7 @@
|
|||||||
this.$Router.back();
|
this.$Router.back();
|
||||||
eventBus.$emit('paySuccess', this.payNo);
|
eventBus.$emit('paySuccess', this.payNo);
|
||||||
}
|
}
|
||||||
|
this.canpay = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -116,6 +118,7 @@
|
|||||||
} else {
|
} else {
|
||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
}
|
}
|
||||||
|
this.canpay = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -127,8 +130,10 @@
|
|||||||
icon: "none",
|
icon: "none",
|
||||||
mask: true,
|
mask: true,
|
||||||
})
|
})
|
||||||
|
this.canpay = true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
}
|
||||||
},
|
},
|
||||||
getALPAY(payType) {
|
getALPAY(payType) {
|
||||||
alPAY(this.payNo).then(res => {
|
alPAY(this.payNo).then(res => {
|
||||||
|
|||||||
@@ -65,11 +65,9 @@
|
|||||||
total : 0,
|
total : 0,
|
||||||
freight : 0,
|
freight : 0,
|
||||||
address : "",
|
address : "",
|
||||||
remark : ""
|
remark : "",
|
||||||
|
canApply :true
|
||||||
};
|
};
|
||||||
},
|
|
||||||
computed:{
|
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
if(JSON.stringify(this.$store.getters.getAddress) !== '{}') this.address = this.$store.getters.getAddress
|
if(JSON.stringify(this.$store.getters.getAddress) !== '{}') this.address = this.$store.getters.getAddress
|
||||||
@@ -114,6 +112,8 @@
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if(this.canApply){
|
||||||
|
this.canApply = false;
|
||||||
verify({
|
verify({
|
||||||
goods_sku_id: this.$Route.query.skuId,
|
goods_sku_id: this.$Route.query.skuId,
|
||||||
qty : this.qty,
|
qty : this.qty,
|
||||||
@@ -130,7 +130,15 @@
|
|||||||
coins : res.coins,
|
coins : res.coins,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.canApply = true
|
||||||
|
}).catch(err=>{
|
||||||
|
this.canApply = true
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
this.canApply = true
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -302,10 +302,7 @@
|
|||||||
background-color: $text-price;
|
background-color: $text-price;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
// .card-title{
|
|
||||||
// font-weight: normal;
|
|
||||||
// font-size: 28rpx!important;
|
|
||||||
// }
|
|
||||||
.card-box {
|
.card-box {
|
||||||
// &-item{
|
// &-item{
|
||||||
// background: #fff !important;
|
// background: #fff !important;
|
||||||
|
|||||||
1052
unpackage/dist/dev/app-plus/app-service.js
vendored
1052
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
162
unpackage/dist/dev/app-plus/app-view.js
vendored
162
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user