submitBuy.wxml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <wxs src="../../utils/filter.wxs" module="filter"></wxs>
  2. <view class="container">
  3. <form bindsubmit="formSubmit" bindreset="formReset">
  4. <tui-list-cell hover="{{false}}">
  5. <view class="tui-line-cell">
  6. <view class="text-lg text-bold">收货人基本信息</view>
  7. </view>
  8. </tui-list-cell>
  9. <tui-list-cell hover="{{false}}">
  10. <view class="tui-line-cell">
  11. <view class="tui-title">收货人</view>
  12. <input placeholder-class="phcolor" class="tui-input" name="receiver" placeholder="请填写收货人" maxlength="50" type="text" value="{{values.receiver}}" data-name="values.receiver" catchinput="inputedit" bindblur="inputedit"/>
  13. </view>
  14. </tui-list-cell>
  15. <tui-list-cell hover="{{false}}">
  16. <view class="tui-line-cell">
  17. <view class="tui-title">收货电话</view>
  18. <input placeholder-class="phcolor" class="tui-input" name="receiverPhone" placeholder="请填写收货人电话" maxlength="50" type="text" value="{{values.receiverPhone}}" catchinput="inputedit" bindblur="inputedit" data-name="values.receiverPhone"/>
  19. </view>
  20. </tui-list-cell>
  21. <tui-list-cell hover="{{false}}">
  22. <view class="tui-line-cell">
  23. <view class="tui-title">地区</view>
  24. <!-- <picker value="{{value}}" mode="multiSelector" bindchange="picker" bindcolumnchange="columnPicker"
  25. range="{{multiArray}}">
  26. <input placeholder-class="phcolor" class="tui-input" name="receiverArea" placeholder="请选择地区" maxlength="50" disabled="true" type="text" value="{{values.receiverArea}}" />
  27. </picker> -->
  28. <picker mode="region" name="receiverArea" bindchange="bindRegionChange" value="{{region}}">
  29. <text class="tui-input" wx:if="{{region==''}}">请选择所在地区</text>
  30. <text class="tui-input" wx:if="{{region!=''}}">{{region[0]}}{{region[1]}}{{region[2]}}</text>
  31. </picker>
  32. </view>
  33. </tui-list-cell>
  34. <tui-list-cell hover="{{false}}">
  35. <view class="tui-line-cell">
  36. <view class="tui-title">详细地址</view>
  37. <input placeholder-class="phcolor" class="tui-input" name="recevierAddress" placeholder="请填写详细地址" maxlength="50" type="text" value="{{values.recevierAddress}}" catchinput="inputedit" bindblur="inputedit" data-name="values.recevierAddress"/>
  38. </view>
  39. </tui-list-cell>
  40. <tui-list-cell padding="0" hover="{{false}}" wx:for="{{values.productOrderDetailList}}">
  41. <view class="tui-goods-item">
  42. <image src="{{item.productImg}}" class="tui-goods-img"></image>
  43. <view class="tui-goods-center">
  44. <view class="tui-goods-name">{{item.productName}}</view>
  45. <view class="tui-goods-attr">
  46. 进货价(元):<text class="text-red">¥{{filter.toDecimal2Penny(item.productPrice)}}</text>
  47. </view>
  48. <view class="tui-goods-attr">
  49. 门店库存:{{item.skuStock}}
  50. </view>
  51. <view class="tui-goods-attr">
  52. 订货数量:<tui-numberbox value="{{item.productNum}}" bind:change="productNumChange" data-index="{{index}}" data-item="{{item}}"></tui-numberbox>
  53. </view>
  54. </view>
  55. </view>
  56. </tui-list-cell>
  57. <view class="tui-tabbar">
  58. <view class="tui-flex-end tui-color-red tui-pr-20">
  59. <view class="tui-black">合计金额: </view>
  60. <view class="tui-size-26">¥</view>
  61. <view class="tui-price-large">{{filter.toDecimal2Penny(totalPrice)}}</view>
  62. </view>
  63. <view class="tui-pr25">
  64. <tui-button width="200rpx" height="70rpx" type="danger" shape="circle" bindtap="submitPay">确认支付</tui-button>
  65. </view>
  66. </view>
  67. </form>
  68. </view>