fix(商品详情页):点击账号判断有无订单

This commit is contained in:
Apple 2022-11-10 14:29:51 +08:00
parent 324ab3129b
commit ffd6e2c5cc
1 changed files with 5 additions and 3 deletions

View File

@ -315,8 +315,7 @@
}, },
components: { components: {
modelPop, modelPop
payPop
}, },
created () { created () {
@ -338,7 +337,10 @@
methods: { methods: {
bindAvailable () { bindAvailable () {
console.log(347,goodsDetail); if (goodsDetail.wait_pay_order == 1) {
this.openErrorDialog('您有未支付的订单');
return
}
if (goodsDetail.available != 1) { if (goodsDetail.available != 1) {
this.openErrorDialog(product_status(goodsDetail.available, goodsDetail)); this.openErrorDialog(product_status(goodsDetail.available, goodsDetail));
return return