index.wxml 6.3 KB

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