Kaynağa Gözat

更换字段

xiejiebiao 2 yıl önce
ebeveyn
işleme
08bcce7f89
1 değiştirilmiş dosya ile 1 ekleme ve 3 silme
  1. 1 3
      src/components/goodsItem/IndexSkuDialog.vue

+ 1 - 3
src/components/goodsItem/IndexSkuDialog.vue

@@ -116,7 +116,7 @@ export default {
       if (!this.specAttrPriceList.length) {
         return false
       }
-      return this.specAttrPriceList[0].goodsType === 1
+      return this.specAttrPriceList[0].specialGoods
     }
   },
   methods: {
@@ -143,7 +143,6 @@ export default {
         noToken: true,
       })
         .then((res) => {
-          console.log(res, 'res')
           this.loading = false;
           if (res.code == 200) {
             let data = res.data;
@@ -152,7 +151,6 @@ export default {
               this.specList = data && (data.specList || []);
             }
           }
-          console.log(this.specList, 'this.specList', this.specAttrPriceList)
         })
         .catch(() => {
           this.loading = false;