submit-order.wxml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <!--pages/submit-order/submit-order.wxml-->
  2. <view class='container'>
  3. <view class='submit-order'>
  4. <!-- 收货地址 -->
  5. <view class='delivery-addr ' bindtap='toAddrListPage'>
  6. <view class='addr-bg ' wx:if="{{!userAddr}}">
  7. <view class='add-addr'>
  8. <view class='plus-sign-img'>
  9. <image src='../../images/icon/plus-sign.png'></image>
  10. </view>
  11. <text>新增收货地址</text>
  12. </view>
  13. <view class='arrow empty'></view>
  14. </view>
  15. <view class='addr-bg whole' wx:if="{{userAddr}}">
  16. <view class='addr-icon'>
  17. <image src='../../images/icon/addr.png'></image>
  18. </view>
  19. <view class='user-info'>
  20. <text class='item'>{{userAddr.receiver}}</text>
  21. <text class='item'>{{userAddr.mobile}}</text>
  22. </view>
  23. <view class='addr'>{{userAddr.province}}{{userAddr.city}}{{userAddr.area}}{{userAddr.addr}}</view>
  24. <view class='arrow'></view>
  25. </view>
  26. </view>
  27. <!-- 商品详情 -->
  28. <view class='prod-item'>
  29. <block wx:for="{{orderItems}}" wx:key=''>
  30. <view class='item-cont' bindtap='toOrderDetailPage' data-ordernum="{{item.primaryOrderNo}}">
  31. <view class='prod-pic'>
  32. <image src='{{item.pic}}'></image>
  33. </view>
  34. <view class='prod-info'>
  35. <view class='prodname'>
  36. {{item.prodName}}
  37. </view>
  38. <view class='prod-info-cont'>{{item.skuName}}</view>
  39. <view class='price-nums'>
  40. <text class='prodprice'><text class='symbol'>¥</text>
  41. <text class='big-num'>{{wxs.parsePrice(item.price)[0]}}</text>
  42. <text class='small-num'>.{{wxs.parsePrice(item.price)[1]}}</text></text>
  43. <text class="prodcount">x{{item.prodCount}}</text>
  44. </view>
  45. </view>
  46. </view>
  47. </block>
  48. <!-- <view class='item-cont' bindtap='toOrderDetailPage' data-ordernum="{{item.primaryOrderNo}}">
  49. <view class='prod-pic'>
  50. <image src='../../images/prod/pic09.jpg'></image>
  51. </view>
  52. <view class='prod-info'>
  53. <view class='prodname'>
  54. THE BEAST/野兽派 易烊千玺同款
  55. </view>
  56. <view class='prod-info-cont'>经典杯型升级,杯型更细长优雅</view>
  57. <view class='price-nums'>
  58. <text class='prodprice'><text class='symbol'>¥</text>
  59. <text class='big-num'>{{wxs.parsePrice(40.00)[0]}}</text>
  60. <text class='small-num'>.{{wxs.parsePrice(40.00)[1]}}</text></text>
  61. <text class="prodcount">x1</text>
  62. </view>
  63. </view>
  64. </view> -->
  65. <view class='total-num'>
  66. <text class="prodcount">共{{totalCount}}件商品</text>
  67. <view class='prodprice'>合计:
  68. <text class='symbol'>¥</text>
  69. <text class='big-num'>{{wxs.parsePrice(total)[0]}}</text>
  70. <text class='small-num'>.{{wxs.parsePrice(total)[1]}}</text>
  71. </view>
  72. </view>
  73. </view>
  74. <!-- 订单详情 -->
  75. <view class='order-msg'>
  76. <view class='msg-item'>
  77. <view class='item coupon' bindtap='showCouponPopup'>
  78. <text class='item-tit'>优惠券:</text>
  79. <text class='item-txt' wx:if="{{!coupons.canUseCoupons}}">暂无可用</text>
  80. <text class='coupon-btn'>{{coupons.totalLength? coupons.totalLength: 0}}张</text>
  81. <text class='arrow'></text>
  82. </view>
  83. <view class='item'>
  84. <text>买家留言:</text>
  85. <input value='{{remarks}}' placeholder='给卖家留言' bindinput="onRemarksInput"></input>
  86. </view>
  87. </view>
  88. </view>
  89. <view class='order-msg'>
  90. <view class='msg-item'>
  91. <view class='item'>
  92. <view class='item-tit'>订单总额:</view>
  93. <view class='item-txt price'>
  94. <text class='symbol'>¥</text>
  95. <text class='big-num'>{{wxs.parsePrice(total)[0]}}</text>
  96. <text class='small-num'>.{{wxs.parsePrice(total)[1]}}</text>
  97. </view>
  98. </view>
  99. <view class='item'>
  100. <view class='item-tit'>运费:</view>
  101. <view class='item-txt price'>
  102. <text class='symbol'>¥</text>
  103. <text class='big-num'>{{wxs.parsePrice(transfee)[0]}}</text>
  104. <text class='small-num'>.{{wxs.parsePrice(transfee)[1]}}</text>
  105. </view>
  106. </view>
  107. <view class='item'>
  108. <view class='item-tit'>优惠金额:</view>
  109. <view class='item-txt price'>
  110. <text class='symbol'>-¥</text>
  111. <text class='big-num'>{{wxs.parsePrice(shopReduce)[0]}}</text>
  112. <text class='small-num'>.{{wxs.parsePrice(shopReduce)[1]}}</text>
  113. </view>
  114. </view>
  115. <view class='item payment'>
  116. <view class='item-txt price'>
  117. 小计:
  118. <text class='symbol'>¥</text>
  119. <text class='big-num'>{{wxs.parsePrice(actualTotal)[0]}}</text>
  120. <text class='small-num'>.{{wxs.parsePrice(actualTotal)[1]}}</text>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. <!-- 底部栏 -->
  127. <view class='submit-order-footer'>
  128. <view class='sub-order'>
  129. <view class='item-txt'>
  130. 合计:
  131. <view class='price'>
  132. <text class='symbol'>¥</text>
  133. <text class='big-num'>{{wxs.parsePrice(actualTotal)[0]}}</text>
  134. <text class='small-num'>.{{wxs.parsePrice(actualTotal)[1]}}</text>
  135. </view>
  136. </view>
  137. </view>
  138. <view class='footer-box' bindtap='toPay'>
  139. 提交订单
  140. </view>
  141. </view>
  142. </view>
  143. <!-- 选择优惠券弹窗 -->
  144. <view class="popup-hide" wx:if="{{popupShow}}">
  145. <view class="popup-box">
  146. <view class="popup-tit">
  147. <text>优惠券</text>
  148. <text class="close" bindtap='closePopup'></text>
  149. </view>
  150. <view class="coupon-tabs">
  151. <view class="coupon-tab {{couponSts==1?'on':''}}" bindtap='changeCouponSts' data-sts='1'>可用优惠券({{coupons.canUseCoupons.length?coupons.canUseCoupons.length:0}})</view>
  152. <view class="coupon-tab {{couponSts==2?'on':''}}" bindtap='changeCouponSts' data-sts='2'>不可用优惠券({{coupons.unCanUseCoupons.length?coupons.unCanUseCoupons.length:0}})</view>
  153. </view>
  154. <view class='popup-cnt'>
  155. <block wx:for="{{coupons.canUseCoupons}}" wx:if="{{couponSts == 1}}" wx:key="couponId">
  156. <coupon item="{{item}}" order="{{true}}" bind:checkCoupon="checkCoupon" canUse="{{true}}"></coupon>
  157. </block>
  158. <block wx:for="{{coupons.unCanUseCoupons}}" wx:if="{{couponSts == 2}}" wx:key="couponId">
  159. <coupon item="{{item}}" order="{{true}}" canUse="{{false}}"></coupon>
  160. </block>
  161. <view class="botm-empty"></view>
  162. </view>
  163. <view class="coupon-ok" wx:if="{{couponSts==1}}">
  164. <text bindtap='choosedCoupon'>确定</text>
  165. </view>
  166. </view>
  167. </view>
  168. <wxs module="wxs" src="../../wxs/number.wxs" />