Authored by 李奇

fixed: 商品详情页默认显示有效状态

... ... @@ -346,6 +346,10 @@ Page(Object.assign({
productNotForSale: res.data.attribute === 2,
showBottomTipView: true
});
this.setData({
showNegative: true
});
}
});
},
... ...
... ... @@ -133,7 +133,8 @@
</view>
<view class="fixed-bottom-actions">
<view class="invalid-tip" wx:if="{{storage_sum === 0 || productOnlyProvideByYohoAPP || productOnlyProvideByYohoStore}}">
<view class="invalid-tip"
wx:if="{{showNegative && (storage_sum === 0 || productOnlyProvideByYohoAPP || productOnlyProvideByYohoStore)}}">
<view class="tip-bg"></view>
<text class="tip-text" wx:if="{{storage_sum === 0}}">此商品已售罄,请等待后续备货!</text>
<text class="tip-text" wx:if="{{productOnlyProvideByYohoAPP}}">暂不支持该商品购买,请前往Yoho!Buy有货官方应用选购!</text>
... ... @@ -146,7 +147,8 @@
<view class="img-action" bindtap="toShop">
<image class="image" src="../../static/images/store-btn-active.png" mode="widthFix"></image>
</view>
<block wx:if="{{storage_sum === 0 || productOnlyProvideByYohoAPP || productOnlyProvideByYohoStore}}">
<block
wx:if="{{showNegative && (storage_sum === 0 || productOnlyProvideByYohoAPP || productOnlyProvideByYohoStore)}}">
<view class="txt-action disabled">加入购物车</view>
<view class="txt-action buy disabled">立即购买</view>
</block>
... ...