소스 검색

更换字段

xiejiebiao 2 년 전
부모
커밋
08bcce7f89
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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;