goodsSku.wxml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <popup show="{{show}}" height="{{height}}" bind:close="close" class="popupHeight">
  2. <view class="sku-container">
  3. <!-- 头部 -->
  4. <!-- <view class="sku-header">
  5. <view class="sku-header__goods-info">
  6. <view class="sku__goods-name ellipsis">{{info.title}}</view>
  7. <view class="sku__goods-price" wx:if="{{presellOpen==0}}">¥{{sku.price}}</view>
  8. <view wx:if="{{presellOpen != 0}}">
  9. <view>预付金:<text class="sku__goods-price">¥{{sku.presellPrice}}</text></view>
  10. <view>活动价:<text class="sku__goods-price">¥{{sku.price}}</text></view>
  11. </view>
  12. </view>
  13. </view> -->
  14. <checkbox-group bindchange="checkboxChange" class="check-box" wx:if="{{maxUserCoin>0}}">
  15. <checkbox checked="{{checkeduseCoin}}" color="#ee3a43"/>仅显示可用宝贝币的商品
  16. </checkbox-group>
  17. <!-- 中间 -->
  18. <view class="sku-body">
  19. <!-- 列表 -->
  20. <view class="sku-group-container">
  21. <view class="sku-row" wx:for="{{sku.tree}}" wx:key="*this">
  22. <view class="sku-row__title">{{item.k}}:</view>
  23. <view class="sku-row__item {{index==0 && i==initialSku.s1 || index==1&&i==initialSku.s2?'sku-row__item--active':''}} {{(index==0 && ((items.actnum<=0 && items.waitActNum<=0) || (items.status == 2 || (presellOpen==0 && items.status == 1 && items.waitActNum<=0) || (presellOpen==1 && items.actnum<=0)))) || (index==1 && ((items.status==1 && items.actnum<=0 && items.waitActNum<=0) || items.status==2))?'sku-row__item--disabled':''}}" wx:for="{{item.v}}" wx:for-item="items" wx:for-index="i" wx:key="*this" bindtap="checkChange" data-disabled="{{(index==0 && ((items.actnum<=0 && items.waitActNum<=0) || (items.status == 2 || (presellOpen==0 && items.status == 1 && items.waitActNum<=0) || (presellOpen==1 && items.actnum<=0)))) || (index==1 && ((items.status==1 && items.actnum<=0 && items.waitActNum<=0)|| items.status==2)) ? true : false}}" data-index="{{index}}" data-i="{{i}}">{{items.name}}
  24. <text class="identify attr-r" wx:if="{{index==0 && items.status==1 && items.actnum==0 && items.waitActNum>0 && presellOpen!=1}}">候补</text>
  25. <view class="identify attr-l" wx:if="{{items.userCoin>0}}">
  26. <text class='icon icon-coin font12'></text>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="militaryTip" wx:if="{{initialSku.userCoin>0}}">最多可用{{initialSku.userCoin}}枚宝贝币</view>
  31. </view>
  32. <!-- 选择器 -->
  33. <view class="sku-stepper-stock">
  34. <view class="sku-stepper-container">
  35. <view class="sku__stepper-title">购买数量:</view>
  36. <view class="stepper sku__stepper sku-tep">
  37. <view class="stepper__minus {{initialSku.selectedNum <= sku.minT?'stepper__minus__diabled':''}}" data-type="minus" bindtap="quantity"></view>
  38. <input type="number" value="{{initialSku.selectedNum || ''}}" class="stepper__input" data-type="modfiy" bindblur="quantity"/>{{sku.stock_num}}
  39. <view class="stepper__plus {{initialSku.selectedNum>=sku.stock_num?'stepper__plus__diabled':(initialSku.selectedNum >= sku.maxT?'stepper__plus__diabled':'')}}" data-type="plus" bindtap="quantity"></view>
  40. </view>
  41. </view>
  42. <!-- <view class="van-sku__quota" wx:if="{{sku.maxT <= sku.quota}}">每人限购{{sku.maxT}}件</view> -->
  43. <view class="van-sku__quota">
  44. <view class="sku-price">¥{{sku.price}}</view>
  45. </view>
  46. </view>
  47. </view>
  48. <button class="button button-warn" data-type="{{(saleType && presellOpen!=1)?1:0}}" bindtap="sumbit">{{presellOpen!=1 &&saleType?'售罄候补':'立即购买'}}</button>
  49. </view>
  50. </popup>