index.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. <view class='top'>
  2. <view class='address' bindtap='chooseAddress'>
  3. <image class='left' src='/static/img/location2.png'></image>
  4. <view class='center' wx:if='{{isUseAddress}}'>
  5. <text>{{addrObj.userName}}</text>
  6. <text>{{addrObj.provinceName+addrObj.cityName+addrObj.countyName+addrObj.detailInfo}}</text>
  7. <text>{{addrObj.telNumber}}</text>
  8. </view>
  9. <view class='tips' wx:else><text>使用微信地址</text></view>
  10. <image class='right' src='/static/img/item-right.png'></image>
  11. <!--兼容授权提醒-->
  12. <authdialog id='authdialog' title='授权提示' content='小程序需要您的授权才能提供更好的服务哦' confirmText='知道了'></authdialog>
  13. </view>
  14. <view class='address_line'></view>
  15. <view class='order' wx:for='{{list}}' wx:key='{{index}}' data-id='{{item.product.id}}' bindlongtap='delOrder'>
  16. <text class='title'>{{item.product.name}}</text>
  17. <view class='oper'>
  18. <text class='price'>¥ {{item.product.price}}</text>
  19. <view class='edit-num'>
  20. <image class='sub' src='/static/img/carts-sub.png' data-id='{{item.product.id}}' bindtap='doSub'></image>
  21. <view class='num'>{{item.num}}</view>
  22. <image class='add' src='/static/img/carts-add.png' data-id='{{item.product.id}}' bindtap='doAdd'></image>
  23. </view>
  24. </view>
  25. <view class='split_line'/>
  26. </view>
  27. </view>
  28. <view class='bottom'>
  29. <view class='left'>合计 ¥{{settlement}} 元</view>
  30. <view class='right' bindtap='doPay'>立即支付</view>
  31. </view>