Authored by 李奇

详情页提示添加

... ... @@ -118,19 +118,10 @@
</view>
<view class="fixed-bottom-actions">
<!--<block wx:if="{{storage_sum==0}}">-->
<!--<view class='bottom-tip-view' wx:if="{{showBottomTipView}}" style="display:{{storage_sum===0?'flex':'none'}}">-->
<!--<text class="bottom-tip-view-title" style="display:{{is_supplyed?'flex':'none'}}">此商品已售罄,请等待后续备货!</text>-->
<!--<text class="bottom-tip-view-title" style="display:{{is_supplyed?'none':'flex'}}">已售罄</text>-->
<!--</view>-->
<!--</block>-->
<!--<block wx:else>-->
<!--<view-->
<!--class="bottom-action {{(productOnlyProvideByYohoAPP || productOnlyProvideByYohoStore || productNotForSale) ? 'disabled' : ''}}" >-->
<!--<view wx:if="{{login}}" class="buy-btn" bindtap="buyImmediate">立即购买</view>-->
<!--<button wx:else class="buy-btn" open-type="getUserInfo" bindgetuserinfo="getUserInfoLogin">立即购买</button>-->
<!--</view>-->
<!--</block>-->
<view class="invalid-tip" wx:if="{{storage_sum === 0}}">
<view class="tip-bg"></view>
<text class="tip-text" wx:if="{{storage_sum === 0}}">此商品已售罄,请等待后续备货!</text>
</view>
<view class="img-action" bindtap="goCart">
<view class="badge" hidden='{{countInCart===0}}'>{{countInCart}}</view>
<image class="image" src="../../../static/images/cart-btn.png" mode="widthFix"></image>
... ... @@ -138,15 +129,21 @@
<view class="img-action" bindtap="toShop">
<image class="image" src="../../../static/images/store-btn-active.png" mode="widthFix"></image>
</view>
<view wx:if="{{login}}" class="txt-action add" bindtap="addToCart">加入购物车</view>
<view wx:else class="txt-action add" bindtap="addToCart">
<button class="add-btn" open-type="getUserInfo" bindgetuserinfo="getUserInfoLogin" plain="true">加入购物车</button>
</view>
<view wx:if="{{login}}" class="txt-action buy" bindtap="buyImmediate">立即购买</view>
<view wx:else class="txt-action buy" bindtap="buyImmediate">
<button class="buy-btn" open-type="getUserInfo" bindgetuserinfo="getUserInfoLogin" plain="true">立即购买</button>
</view>
<block wx:if="{{true}}">
<view wx:if="{{login}}" class="txt-action add" bindtap="addToCart">加入购物车</view>
<view wx:else class="txt-action add" bindtap="addToCart">
<button class="add-btn" open-type="getUserInfo" bindgetuserinfo="getUserInfoLogin" plain="true">加入购物车</button>
</view>
<view wx:if="{{login}}" class="txt-action buy" bindtap="buyImmediate">立即购买</view>
<view wx:else class="txt-action buy" bindtap="buyImmediate">
<button class="buy-btn" open-type="getUserInfo" bindgetuserinfo="getUserInfoLogin" plain="true">立即购买</button>
</view>
</block>
<block wx:else>
<view class="txt-action disabled">加入购物车</view>
<view class="txt-action buy disabled">立即购买</view>
</block>
</view>
... ...
... ... @@ -573,19 +573,38 @@
border: none;
}
.bottom-tip-view{
flex-direction:row;
width: 100%;
height: 100rpx;
background-color: #afafaf;
justify-content: center;
align-items: center;
.fixed-bottom-actions .txt-action.disabled {
background-color: #999999;
}
.bottom-tip-view-title{
display: flex;
color: #fff;
.fixed-bottom-actions .invalid-tip {
position: absolute;
height: 70rpx;
top: -70rpx;
left: 0;
right: 0;
}
.fixed-bottom-actions .invalid-tip .tip-bg {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0.7;
background-color: #000;
}
.fixed-bottom-actions .invalid-tip .tip-text {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 70rpx;
color: #ffffff;
font-size: 28rpx;
text-align: center;
line-height: 70rpx;
}
.shoppint-like-icon{
... ...