Browse Source

没有价格

shish 4 years ago
parent
commit
95b32007a3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      mallApp/src/pages/goods/components/sel-popup.vue

+ 4 - 0
mallApp/src/pages/goods/components/sel-popup.vue

@@ -104,6 +104,10 @@ export default {
       this.selIndex = index;
     },
     nextFn() {
+      if(Number(this.info.price) <= 0){
+        this.$msg('没有价格,暂时无法下单')
+        return false
+      }
       uni.setStorageSync("buyGoodsDetil", this.info)
       this.$util.pageTo({url:"/pages/order/buy",type:2,query:{goodsId:this.info.id,goodsNum:this.buyNum,selIndex:this.selIndex}})
     }