index.wxml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <navbar parameter="{{parameter}}"></navbar>
  2. <view class="order-submission">
  3. <view class="allAddress" style="{{store_self_mention ? '':'padding-top:10rpx'}}">
  4. <view class="nav acea-row">
  5. <view
  6. class="item font-color {{shippingType == 0 ? 'on' : 'on2'}}"
  7. data-index="0"
  8. bindtap="addressType"
  9. wx:if="{{store_self_mention}}"
  10. ></view>
  11. <view
  12. class="item font-color {{shippingType == 1 ? 'on' : 'on2'}}"
  13. data-index="1"
  14. bindtap="addressType"
  15. wx:if="{{store_self_mention}}"
  16. ></view>
  17. </view>
  18. <view class="address acea-row row-between-wrapper" bindtap="onAddress" wx:if="{{shippingType == 0}}">
  19. <view class="addressCon" wx:if="{{addressInfo.real_name}}">
  20. <view class="name"
  21. >{{addressInfo.real_name}}
  22. <text class="phone">{{addressInfo.phone}}</text>
  23. </view>
  24. <view>
  25. <text class="default font-color" wx:if="{{addressInfo.is_default}}">[默认]</text
  26. >{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.detail}}
  27. </view>
  28. <!-- <view class='setaddress'>设置收货地址</view> -->
  29. </view>
  30. <view class="addressCon" wx:else>
  31. <view class="setaddress">设置收货地址</view>
  32. </view>
  33. <view class="iconfont icon-jiantou"></view>
  34. </view>
  35. <view class="address acea-row row-between-wrapper" wx:else bindtap="showStoreList">
  36. <view class="addressCon" wx:if="{{storeList.length!==0}}">
  37. <view class="name"
  38. >{{system_store.name}}
  39. <text class="phone">{{system_store.phone}}</text>
  40. </view>
  41. <view> {{system_store.address}}{{", " + system_store.detailed_address}}</view>
  42. </view>
  43. <view class="iconfont icon-jiantou"></view>
  44. </view>
  45. <view class="line">
  46. <image src="/images/line.jpg"></image>
  47. </view>
  48. </view>
  49. <orderGoods cartInfo="{{cartInfo}}"></orderGoods>
  50. <view class="wrapper">
  51. <view
  52. class="item acea-row row-between-wrapper"
  53. bindtap="coupon"
  54. wx:if="{{!pinkId && !BargainId && !combinationId && !seckillId}}"
  55. >
  56. <view>优惠券</view>
  57. <view class="discount"
  58. >{{couponTitle}}
  59. <text class="iconfont icon-jiantou"></text>
  60. </view>
  61. </view>
  62. <view class="item acea-row row-between-wrapper" wx:if="{{!pinkId && !BargainId && !combinationId && !seckillId}}">
  63. <view>积分抵扣</view>
  64. <view class="discount acea-row row-middle">
  65. <view>
  66. {{useIntegral ? "剩余积分":"当前积分"}}
  67. <text class="num font-color">{{integral || 0}}</text>
  68. </view>
  69. <checkbox-group bindchange="ChangeIntegral">
  70. <checkbox checked="{{useIntegral ? true : false}}" />
  71. </checkbox-group>
  72. </view>
  73. </view>
  74. <view
  75. class="item acea-row row-between-wrapper"
  76. wx:if="{{priceGroup.vipPrice > 0 && userInfo.vip && !pinkId && !BargainId && !combinationId && !seckillId}}"
  77. >
  78. <view>会员优惠</view>
  79. <view class="discount">-¥{{priceGroup.vipPrice}}</view>
  80. </view>
  81. <view class="item acea-row row-between-wrapper" wx:if="{{shippingType==0}}">
  82. <view>快递费用</view>
  83. <view class="discount" wx:if="{{priceGroup.storePostage > 0}}">¥{{priceGroup.storePostage}}</view>
  84. <view class="discount" wx:else>免运费</view>
  85. </view>
  86. <view wx:else>
  87. <view class="item acea-row row-between-wrapper">
  88. <view>联系人</view>
  89. <view class="discount">
  90. <input type="text" placeholder="请填写您的联系姓名" placeholder-class="placeholder" bindblur="realName" />
  91. </view>
  92. </view>
  93. <view class="item acea-row row-between-wrapper">
  94. <view>联系电话</view>
  95. <view class="discount">
  96. <input type="text" placeholder="请填写您的联系电话" placeholder-class="placeholder" bindblur="phone" />
  97. </view>
  98. </view>
  99. </view>
  100. <!-- <view class='item acea-row row-between-wrapper' wx:else>
  101. <view>自提门店</view>
  102. <view class='discount'>{{system_store.name}}</view>
  103. </view> -->
  104. <view class="item" wx:if="{{textareaStatus}}">
  105. <view>备注信息</view>
  106. <textarea
  107. wx:if="{{coupon.coupon===false}}"
  108. placeholder-class="placeholder"
  109. bindinput="bindHideKeyboard"
  110. value=""
  111. name="mark"
  112. placeholder="请添加备注(150字以内)"
  113. ></textarea>
  114. </view>
  115. </view>
  116. <view class="wrapper">
  117. <view class="item">
  118. <view>支付方式</view>
  119. <view class="list">
  120. <view
  121. class='payItem acea-row row-middle {{active==index ?"on":""}}'
  122. data-index="{{index}}"
  123. bindtap="payItem"
  124. wx:for="{{cartArr}}"
  125. wx:key="index"
  126. wx:if="{{shippingType==0||(shippingType==1&&index!=2)}}"
  127. >
  128. <view class="name acea-row row-center-wrapper">
  129. <view class='iconfont {{item.icon}} animated {{animated==true&&active==index ?"bounceIn":""}}'> </view
  130. >{{item.name}}
  131. </view>
  132. <view class="tip">{{item.title}}</view>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. <view class="moneyList">
  138. <view class="item acea-row row-between-wrapper">
  139. <view>商品总价:</view>
  140. <view class="money">¥{{priceGroup.totalPrice}}</view>
  141. </view>
  142. <view class="item acea-row row-between-wrapper" wx:if="{{coupon_price > 0}}">
  143. <view>优惠券抵扣:</view>
  144. <view class="money">-¥{{coupon_price}}</view>
  145. </view>
  146. <view class="item acea-row row-between-wrapper" wx:if="{{integral_price > 0}}">
  147. <view>积分抵扣:</view>
  148. <view class="money">-¥{{integral_price}}</view>
  149. </view>
  150. <view class="item acea-row row-between-wrapper" wx:if="{{priceGroup.storePostage > 0}}">
  151. <view>运费:</view>
  152. <view class="money">+¥{{priceGroup.storePostage}}</view>
  153. </view>
  154. </view>
  155. <view style="height: 120rpx"></view>
  156. <view class="footer acea-row row-between-wrapper">
  157. <view
  158. >合计:
  159. <text class="font-color">¥{{totalPrice || 0}}</text>
  160. </view>
  161. <view class="settlement" style="z-index: 100" bindtap="SubOrder">立即结算</view>
  162. </view>
  163. </view>
  164. <coupon-list-window
  165. coupon="{{coupon}}"
  166. bind:ChangCouponsClone="ChangCouponsClone"
  167. openType="{{openType}}"
  168. cartId="{{cartId}}"
  169. bind:ChangCoupons="ChangCoupons"
  170. ></coupon-list-window>
  171. <address-window
  172. bind:changeTextareaStatus="changeTextareaStatus"
  173. address="{{address}}"
  174. pagesUrl="{{pagesUrl}}"
  175. id="address-window"
  176. bind:OnChangeAddress="OnChangeAddress"
  177. ></address-window>
  178. <authorize bind:onLoadFun="onLoadFun"></authorize>
  179. <!-- <home></home> -->