createOrder.wxml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <view>
  2. <view class="navbar">
  3. <view bindtap="__e" class="{{['nav-item',tabCurrentIndex===index?'current':'']}}" data-event-opts="{{[ [ 'tap',[ [ 'tabClick',[index] ] ] ] ]}}" wx:for="{{navList}}" wx:key="index">{{item.text}}</view>
  4. </view>
  5. <navigator class="address-section" url="/pages/address/address?source=1" wx:if="{{tabCurrentIndex==0}}">
  6. <view class="order-content" wx:if="{{addressData.real_name}}">
  7. <text class="iconfont iconlocation"></text>
  8. <view class="cen">
  9. <view class="top">
  10. <text class="name">{{addressData.real_name}}</text>
  11. <text class="mobile">{{addressData.phone}}</text>
  12. </view>
  13. <text class="address">{{addressData.province+addressData.city+addressData.district+' '+addressData.detail}}</text>
  14. </view>
  15. <text class="iconfont iconenter"></text>
  16. </view>
  17. <view class="order-content" wx:if="{{!addressData.real_name}}">
  18. <view class="addAddress">
  19. <text class="iconfont iconaddition"></text>
  20. <text>添加收货地址</text>
  21. </view>
  22. </view>
  23. <image class="a-bg" src="{{addressImg}}"></image>
  24. </navigator>
  25. <navigator class="address-section" url="/pages/address/shopList" wx:if="{{tabCurrentIndex==1}}">
  26. <view class="order-content" wx:if="{{shopAddress.name}}">
  27. <text class="iconfont iconlocation"></text>
  28. <view class="cen">
  29. <view class="top">
  30. <text class="name">{{shopAddress.name}}</text>
  31. <text class="mobile">{{shopAddress.phone}}</text>
  32. </view>
  33. <text class="address">{{shopAddress.address}}</text>
  34. </view>
  35. <text class="iconfont iconenter"></text>
  36. </view>
  37. <view class="order-content" wx:if="{{!shopAddress.name}}">
  38. <view class="addAddress">
  39. <text class="iconfont iconaddition"></text>
  40. <text>添加收货地址</text>
  41. </view>
  42. </view>
  43. <image class="a-bg" src="{{addressImg}}"></image>
  44. </navigator>
  45. <view class="goods-section" wx:for="{{$root.l0}}" wx:for-index="ind" wx:for-item="ls" wx:key="ind">
  46. <view class="g-item">
  47. <image src="{{productInfo.image}}"></image>
  48. <view class="right">
  49. <text class="title clamp">{{ls[$orig].productInfo.store_name}}</text>
  50. <text class="spec">{{ls[$orig].productInfo.attrInfo?ls[$orig].productInfo.attrInfo.suk:'默认'}}</text>
  51. <view class="price-box">
  52. <text class="price">{{'¥'+ls.m0}}</text>
  53. <text class="number">{{'x '+cart_num+productInfo.unit_name}}</text>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="yt-list">
  59. <view class="yt-list-cell b-b">
  60. <text class="cell-tit clamp">运费</text>
  61. <text class="cell-tip">{{Postage}}</text>
  62. </view>
  63. <view class="yt-list-cell desc-cell" wx:if="{{tabCurrentIndex==1}}">
  64. <text class="cell-tit clamp">姓名</text>
  65. <input bindinput="__e" class="desc" data-event-opts="{{[ [ 'input',[ [ '__set_model',[ '$0','real_name','$event',[] ],['pickUpInfo'] ] ] ] ]}}" placeholder="收货人姓名" placeholderClass="placeholder" type="text" value="{{pickUpInfo.real_name}}"></input>
  66. </view>
  67. <view class="yt-list-cell desc-cell" wx:if="{{tabCurrentIndex==1}}">
  68. <text class="cell-tit clamp">手机</text>
  69. <input bindinput="__e" class="desc" data-event-opts="{{[ [ 'input',[ [ '__set_model',[ '$0','phone','$event',[] ],['pickUpInfo'] ] ] ] ]}}" placeholder="联系手机号" placeholderClass="placeholder" type="text" value="{{pickUpInfo.phone}}"></input>
  70. </view>
  71. <view class="yt-list-cell b-b">
  72. <text class="cell-tit clamp">备注</text>
  73. <input bindinput="__e" class="desc" data-event-opts="{{[ [ 'input',[ [ '__set_model',[ '','desc','$event',[] ] ] ] ] ]}}" placeholder="备注信息" placeholderClass="placeholder" type="text" value="{{desc}}"></input>
  74. </view>
  75. </view>
  76. <view class="yt-list">
  77. <view class="yt-list-cell b-b">
  78. <text class="cell-tit clamp">商品金额</text>
  79. <text class="cell-tip">{{'¥'+payAllMoney}}</text>
  80. </view>
  81. <view class="yt-list-cell b-b" wx:if="{{$root.m1>0}}">
  82. <text class="cell-tit clamp">VIP优惠</text>
  83. <text class="cell-tip">{{'-¥'+$root.m2}}</text>
  84. </view>
  85. </view>
  86. <view class="footer">
  87. <view class="price-content">
  88. <text>实付款</text>
  89. <text class="price-tip">¥</text>
  90. <text class="price">{{payPrice}}</text>
  91. </view>
  92. <text bindtap="__e" class="{{['submit',!payType?'submitNo':'']}}" data-event-opts="{{[ [ 'tap',[ [ 'e0',['$event'] ] ] ] ]}}">提交订单</text>
  93. </view>
  94. <view bindtap="__e" class="{{['mask',maskState===0?'none':maskState===1?'show':'']}}" data-event-opts="{{[ [ 'tap',[ [ 'toggleMask',['$event'] ] ] ] ]}}">
  95. <view catchtap="__e" class="mask-content" data-event-opts="{{[ [ 'tap',[ [ 'stopPrevent',['$event'] ] ] ] ]}}">
  96. <view bindtap="__e" class="coupon-item" data-event-opts="{{[ [ 'tap',[ [ 'checkedCp',['$0'],[ [ ['couponList','',index] ] ] ] ] ] ]}}" wx:for="{{$root.l1}}" wx:key="index">
  97. <view class="con">
  98. <view class="left">
  99. <text class="title">{{item[$orig].coupon_title}}</text>
  100. <text class="time">{{'领取时间'+item[$orig].add_time}}</text>
  101. </view>
  102. <view class="right">
  103. <text class="price">{{item.m3}}</text>
  104. <text>{{'满'+item.m4+'可用'}}</text>
  105. </view>
  106. <view class="circle l"></view>
  107. <view class="circle r"></view>
  108. </view>
  109. <text class="tips">{{'有效期至'+item[$orig].end_time}}</text>
  110. </view>
  111. </view>
  112. </view>
  113. </view>