buy.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <wxs src="../../utils/filter.wxs" module="filter"></wxs>
  2. <view class="container">
  3. <picker bindchange="bindStorePickerChange" value="{{index}}" range="{{storeList}}" range-key="storeName">
  4. <tui-list-cell hover="{{false}}">
  5. <view class="tui-line-cell">
  6. <view class="tui-title">门店</view>
  7. <input placeholder-class="phcolor" class="tui-input" placeholder="请选择门店" type="text" disabled="true" value="{{searchParams.storeName}}" />
  8. </view>
  9. </tui-list-cell>
  10. </picker>
  11. <tui-list-cell padding="0" hover="{{false}}" wx:for="{{productList}}">
  12. <view class="tui-goods-item">
  13. <image src="{{item.productImg}}" class="tui-goods-img"></image>
  14. <view class="tui-goods-center">
  15. <view class="tui-goods-name">{{item.productName}}</view>
  16. <view class="tui-goods-attr">
  17. 进货价(元):<text class="text-red">¥{{filter.toDecimal2Penny(item.productPrice)}}</text>
  18. </view>
  19. <view class="tui-goods-attr">
  20. 门店库存:{{item.skuStock}}
  21. </view>
  22. <view class="tui-goods-attr">
  23. 订货数量:<tui-numberbox value="{{item.productNum}}" bind:change="productNumChange" data-index="{{index}}" data-item="{{item}}"></tui-numberbox>
  24. </view>
  25. </view>
  26. <view class="tui-price-right">
  27. <checkbox-group bindchange="checkboxChange" data-index="{{index}}" data-item="{{item}}">
  28. <checkbox value="true" checked="{{item.checkout}}"></checkbox>
  29. </checkbox-group>
  30. </view>
  31. </view>
  32. </tui-list-cell>
  33. <view class="tui-tabbar">
  34. <view class="tui-flex-end tui-color-red tui-pr-20">
  35. <view class="tui-black">合计金额: </view>
  36. <view class="tui-size-26">¥</view>
  37. <view class="tui-price-large">{{filter.toDecimal2Penny(totalPrice)}}</view>
  38. </view>
  39. <view class="tui-pr25">
  40. <tui-button width="200rpx" height="70rpx" type="danger" shape="circle" bindtap="btnPay">提交订单</tui-button>
  41. </view>
  42. </view>
  43. <!--弹出-->
  44. <time-picker pickerShow="{{isPickerShow}}" id="picker" wx:if="{{isPickerRender}}" bind:hidePicker="pickerHide"
  45. bind:setPickerTime="setPickerTime" config="{{pickerConfig}}"></time-picker>
  46. <!--弹出-->
  47. </view>