Commit a370d132fdb3c3dfb3ec92151506dafec3137e2e

Authored by yvan.ni
1 parent 33964552

切换商品的时候,不同的限购控制

packageC/pages/presell/goodsInfo/goodsInfo.wxml
... ... @@ -538,7 +538,7 @@
538 538 <view class="flex ai_end xc-val-money">
539 539  
540 540 <view class="spec-goods-price tag">
541   - <text class="fs20">¥</text>{{presellList.presell_money}}
  541 + <text class="fs20">¥</text>{{pre_arr.presell_money}}
542 542 </view>
543 543 <!-- 显示线下价格 -->
544 544 <view wx:if="{{sele_g.offline_price}}" class="quan_price flex ai-center jc-center">
... ... @@ -548,9 +548,9 @@
548 548  
549 549 <view class="flex">
550 550 <view class="spec-goods-stock">
551   - 已售:{{presellList.buy_goodnum+presellList.virtual_qty}}
  551 + 已售:{{pre_arr.buy_goodnum+pre_arr.virtual_qty}}
552 552 </view>
553   - <view class="spec-goods-stock">可售:{{presellList.presell_sumqty-presellList.buy_goodnum}}</view>
  553 + <view class="spec-goods-stock">可售:{{pre_arr.presell_sumqty-pre_arr.buy_goodnum}}</view>
554 554 </view>
555 555  
556 556  
... ... @@ -644,14 +644,14 @@
644 644 <block wx:else>
645 645  
646 646 <!-- 线上销售 -->
647   - <block wx:if="{{sele_g.store_count<=0}}">
  647 + <block wx:if="{{sele_g.store_count<=0 || pre_arr.presell_sumqty<=pre_arr.buy_goodnum }}">
648 648 <view class="spec-cart-btn fs32" data-action="add" style="background-color: #dcdcdc;color: #999">库存不足</view>
649 649 </block>
650 650 <block wx:else>
651 651 <view wx:if="{{openSpecModal_ind==2}}" bindtap="addCart"
652 652 data-openSpecModal_ind="{{openSpecModal_ind}}" class="spec-cart-btn spec-buy" data-action="buy">
653   - <text wx:if="{{presellForm.presell_type==0}}">支付定金(¥{{presellList.presell_money}})</text>
654   - <text wx:else>支付金额(¥{{presellList.presell_price}})</text>
  653 + <text wx:if="{{presellForm.presell_type==0}}">支付定金(¥{{pre_arr.presell_money}})</text>
  654 + <text wx:else>支付金额(¥{{pre_arr.presell_price}})</text>
655 655 </view>
656 656 </block>
657 657  
... ...