index.wxml 7.1 KB

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