integralSubmitOrder.wxml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <!-- 积分商品提交订单页面 -->
  2. <!--pages/integralSubmitOrder/integralSubmitOrder.wxml-->
  3. <view class='container'>
  4. <view class='submit-order'>
  5. <!-- 收货地址 -->
  6. <view class='delivery-addr ' bindtap='toAddrListPage'>
  7. <view class='addr-bg ' wx:if="{{!userAddr}}">
  8. <view class='add-addr'>
  9. <view class='plus-sign-img'>
  10. <image src='../../../images/icon/plus-sign.png'></image>
  11. </view>
  12. <text>新增收货地址</text>
  13. </view>
  14. <view class='arrow empty'></view>
  15. </view>
  16. <view class='addr-bg whole' wx:if="{{userAddr}}">
  17. <view class='addr-icon'>
  18. <image src='../../../images/icon/addr.png'></image>
  19. </view>
  20. <view class='user-info'>
  21. <text class='item'>{{userAddr.receiver}}</text>
  22. <text class='item'>{{userAddr.mobile}}</text>
  23. </view>
  24. <view class='addr'>{{userAddr.province}}{{userAddr.city}}{{userAddr.area}}{{userAddr.addr}}</view>
  25. <view class='arrow'></view>
  26. </view>
  27. </view>
  28. <!-- <view class="shop-item" wx:for="{{shopCartOrders}}" wx:for-item="shopCart"> -->
  29. <!-- 店铺信息 -->
  30. <!-- <view class="shop-box">
  31. <view class="shop-icon">
  32. <image src="../../images/icon/shop.png"></image>
  33. </view>
  34. <view class="shop-name">{{shopCart.shopName}}</view>
  35. </view> -->
  36. <!-- /店铺信息 -->
  37. <!-- 店铺商品明细 -->
  38. <view class='prod-item'>
  39. <!-- <block wx:for="{{shopCart.shopCartItemDiscounts}}" wx:for-item="shopCartItem"> -->
  40. <!-- <block wx:for="{{productItemDto}}" wx:key=''> -->
  41. <view class="item-box">
  42. <!-- 商品信息 -->
  43. <view class='item-cont'>
  44. <view class='prod-pic'>
  45. <image src='{{productItemDto.pic}}'></image>
  46. </view>
  47. <view class='prod-info'>
  48. <view class='prodname'>
  49. {{productItemDto.prodName}}
  50. </view>
  51. <view class='prod-info-cont'>{{productItemDto.skuName}}</view>
  52. <view class="show-price">
  53. <view class='price-nums'>
  54. <text class='prodprice' wx:if="{{productItemDto.price}}"><text class='symbol'>¥</text>
  55. <text class='big-num' wx:if="{{productItemDto.price}}">{{wxs.parsePrice(productItemDto.price)[0]}}</text>
  56. <text class='small-num' wx:if="{{productItemDto.price}}">.{{wxs.parsePrice(productItemDto.price)[1]}}</text>
  57. <text class='small-num' decode="{{true}}" wx:if="{{productItemDto.price}}">&ensp;+&ensp;</text>
  58. </text>
  59. <text class="prodcount">x{{productItemDto.prodCount}} </text>
  60. </view>
  61. <!-- 积分 -->
  62. <view class="integral-num">
  63. <text decode="{{true}}"> {{productItemDto.scorePrice}} 积分</text>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <!-- </block> -->
  70. <!-- </block> -->
  71. <!-- <view class='total-num'>
  72. <text class="prodcount">共{{totalCount}}件商品</text>
  73. <view class='prodprice'>合计:
  74. <text class='symbol'>¥</text>
  75. <text class='big-num'>{{wxs.parsePrice(total)[0]}}</text>
  76. <text class='small-num'>.{{wxs.parsePrice(total)[1]}}</text>
  77. </view>
  78. </view> -->
  79. </view>
  80. <!-- /店铺商品明细 -->
  81. <!-- 店铺优惠券和买家留言 -->
  82. <view class='order-msg'>
  83. <view class='msg-item'>
  84. <!-- <view class='item coupon' bindtap='showCouponPopup' data-index="{{index}}">
  85. <text class='item-tit'>优惠券:</text>
  86. <text class='coupon-btn' wx:if="{{shopCart.showCoupons.totalLength==0}}">暂无可用</text>
  87. <text class='coupon-btn' wx:else>{{shopCart.showCoupons.totalLength}}张可用</text>
  88. <text class="coupon-amount" wx:if="{{shopCart.showCoupons.couponAmount>0}}">-{{wxs.toPrice(shopCart.showCoupons.couponAmount)}}</text>
  89. <text class='arrow'></text>
  90. </view> -->
  91. <view class='item'>
  92. <text>买家备注:</text>
  93. <input placeholder='选填,给商家留言' value="{{remarks}}" data-index="{{index}}" bindinput="onRemarkIpt"></input>
  94. </view>
  95. </view>
  96. </view>
  97. <!-- /店铺优惠券和买家留言 -->
  98. <!-- </view> -->
  99. <!-- 总金额计算 -->
  100. <view class='order-msg'>
  101. <view class='msg-item'>
  102. <!-- 商品总额 -->
  103. <view class='item'>
  104. <view class='item-tit'>商品总额:</view>
  105. <view class='item-txt price'>
  106. <text class='symbol'>¥</text>
  107. <text class='big-num'>{{wxs.parsePrice(total)[0]}}</text>
  108. <text class='small-num'>.{{wxs.parsePrice(total)[1]}}</text>
  109. </view>
  110. </view>
  111. <!-- 运费 -->
  112. <view class='item'>
  113. <view class='item-tit'>运费:</view>
  114. <view class='item-txt price'>
  115. <text class='symbol'>¥</text>
  116. <text class='big-num'>{{wxs.parsePrice(transfee)[0]}}</text>
  117. <text class='small-num'>.{{wxs.parsePrice(transfee)[1]}}</text>
  118. </view>
  119. </view>
  120. <!-- 优惠金额 -->
  121. <view class='item'>
  122. <view class='item-tit'>优惠金额:</view>
  123. <view class='item-txt price'>
  124. <text class='symbol'>-¥</text>
  125. <text class='big-num'>{{wxs.parsePrice(orderReduce)[0]}}</text>
  126. <text class='small-num'>.{{wxs.parsePrice(orderReduce)[1]}}</text>
  127. </view>
  128. </view>
  129. <!-- <view class='item payment'>
  130. <view class='item-txt price'>
  131. 小计:
  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>
  139. <!-- /总金额计算 -->
  140. </view>
  141. <!-- 底部栏 -->
  142. <view class='submit-order-footer'>
  143. <view class='sub-order'>
  144. <view class='item-txt'>
  145. 合计:
  146. <view class='price'>
  147. <text class='symbol' wx:if="{{actualTotal}}">¥</text>
  148. <text class='big-num' wx:if="{{actualTotal}}">{{wxs.parsePrice(actualTotal)[0]}}</text>
  149. <text class='small-num' wx:if="{{actualTotal}}">.{{wxs.parsePrice(actualTotal)[1]}}</text>
  150. <text class='small-num' decode="{{true}}" wx:if="{{actualTotal}}">&ensp;+&ensp;</text>
  151. </view>
  152. <!-- 积分 -->
  153. <view class="integral-num">
  154. <text decode="{{true}}">{{scorePrice}} 积分</text>
  155. </view>
  156. </view>
  157. </view>
  158. <view class='footer-box' bindtap='toPay'>
  159. 提交订单
  160. </view>
  161. </view>
  162. </view>
  163. <!-- 选择优惠券弹窗 -->
  164. <!-- <view class="popup-hide" wx:if="{{popupShow}}">
  165. <view class="popup-box">
  166. <view class="popup-tit">
  167. <text>优惠券</text>
  168. <text class="close" bindtap='closePopup'></text>
  169. </view>
  170. <view class="coupon-tabs">
  171. <view class="coupon-tab {{couponSts==1?'on':''}}" bindtap='changeCouponSts' data-sts='1'>可用优惠券({{coupons.canUseCoupons.length}})</view>
  172. <view class="coupon-tab {{couponSts==2?'on':''}}" bindtap='changeCouponSts' data-sts='2'>不可用优惠券({{coupons.unCanUseCoupons.length}})</view>
  173. </view>
  174. <view class='popup-cnt'>
  175. <block wx:for="{{coupons.canUseCoupons}}" wx:if="{{couponSts == 1}}" wx:key="couponId">
  176. <coupon item="{{item}}" order="{{true}}" bind:checkCoupon="checkCoupon" canUse="{{true}}"></coupon>
  177. </block>
  178. <block wx:for="{{coupons.unCanUseCoupons}}" wx:if="{{couponSts == 2}}" wx:key="couponId">
  179. <coupon item="{{item}}" order="{{true}}" canUse="{{false}}"></coupon>
  180. </block>
  181. <view class="botm-empty" wx:if="{{couponSts==1 && !coupons.canUseCoupons.length}}">这里还没有优惠券,快去领券吧~</view>
  182. <view class="botm-empty" wx:if="{{couponSts==2 && !coupons.canUseCoupons.length}}">暂无相关优惠券</view>
  183. </view>
  184. <view class="coupon-ok" wx:if="{{couponSts==1}}">
  185. <text bindtap='choosedCoupon'>确定</text>
  186. </view>
  187. </view>
  188. </view> -->
  189. <wxs module="wxs" src="../../../wxs/number.wxs" />