|
@@ -166,9 +166,9 @@
|
|
</view>
|
|
</view>
|
|
<view class="product-details ">
|
|
<view class="product-details ">
|
|
<view class="product-item-none" v-if="goodsData.isNoneDisabled">
|
|
<view class="product-item-none" v-if="goodsData.isNoneDisabled">
|
|
- <image class="none-image" :src="productNoneImage" mode=""></image>
|
|
|
|
|
|
+ <image class="none-image" src="/static/ws/product_off.png" mode=""></image>
|
|
<view class="none-text"
|
|
<view class="none-text"
|
|
- >此商品已{{ goodsData.disabledText }},请浏览以下推荐商品~</view
|
|
|
|
|
|
+ >此商品已{{ goodsData.disabledText }}</view
|
|
>
|
|
>
|
|
</view>
|
|
</view>
|
|
<!-- 选择商品参数按钮 -->
|
|
<!-- 选择商品参数按钮 -->
|
|
@@ -412,6 +412,8 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
this.getWinHeight()
|
|
this.getWinHeight()
|
|
|
|
+ // this.goodsData.isNoneDisabled = true
|
|
|
|
+ // console.log(this.goodsData);
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['hasLogin', 'isWxAuthorize', 'identity'])
|
|
...mapState(['hasLogin', 'isWxAuthorize', 'identity'])
|
|
@@ -468,7 +470,8 @@ export default {
|
|
if (
|
|
if (
|
|
this.product.validFlag == '3' ||
|
|
this.product.validFlag == '3' ||
|
|
this.product.validFlag == '10' ||
|
|
this.product.validFlag == '10' ||
|
|
- this.stock == 0
|
|
|
|
|
|
+ this.stock == 0||
|
|
|
|
+ this.product.status == 0
|
|
) {
|
|
) {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
this.isNoneDisabled = true
|
|
this.isNoneDisabled = true
|
|
@@ -489,7 +492,7 @@ export default {
|
|
}
|
|
}
|
|
this.goodsData.disabled = this.disabled
|
|
this.goodsData.disabled = this.disabled
|
|
this.goodsData.isNoneDisabled = this.isNoneDisabled
|
|
this.goodsData.isNoneDisabled = this.isNoneDisabled
|
|
- if (this.product.validFlag == '3') {
|
|
|
|
|
|
+ if(this.product.status == 0){
|
|
this.goodsData.disabledText = '下架'
|
|
this.goodsData.disabledText = '下架'
|
|
}
|
|
}
|
|
if (this.product.validFlag == '10') {
|
|
if (this.product.validFlag == '10') {
|
|
@@ -1159,7 +1162,7 @@ page {
|
|
.none-text {
|
|
.none-text {
|
|
text-align: center;
|
|
text-align: center;
|
|
font-size: $font-size-28;
|
|
font-size: $font-size-28;
|
|
- color: #fea785;
|
|
|
|
|
|
+ color: rgb(254,194,117);
|
|
line-height: 40rpx;
|
|
line-height: 40rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|