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