order-detail.wxml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!--pages/orders/order-detail.wxml-->
  2. <view class="container">
  3. <navigation-bar title="{{ goodsInfo.orderNo ? '待付款' : '确认订单' }}"></navigation-bar>
  4. <scroll-view class="record-list" type="list" scroll-y>
  5. <view class="scroll-container">
  6. <!-- 添加地址 -->
  7. <view wx:if="{{ hasInstrument }}" class="addBuyer" bind:tap="onSelectAddress">
  8. <view class="addBuyer-left">
  9. <view class="info selected {{ goodsInfo.orderNo ? 'selectedOrderNo' : '' }}" wx:if="{{ receiveAddress }}">
  10. <view class="address">
  11. <image src="./images/icon-address.png" class="icon-man {{ receiveAddress ? 'selected' : '' }}"></image>
  12. <text class="userName">{{ receiveAddressInfo.name }}</text>
  13. <text>{{ receiveAddressInfo.phoneNumber }}</text>
  14. </view>
  15. <view class="users">
  16. {{ receiveAddressInfo.addressDetail }}
  17. </view>
  18. </view>
  19. <view class="info" wx:else>
  20. <view class="users">
  21. <image src="./images/icon-address.png" class="icon-man {{ receiveAddress ? 'selected' : '' }}"></image>
  22. 添加收货地址
  23. </view>
  24. <!-- <view class="address">请填写您的收货地址与信息</view> -->
  25. </view>
  26. </view>
  27. <image wx:if="{{ !goodsInfo.orderNo }}" src="./images/icon-arrow-right.png" class="arrow-right"></image>
  28. </view>
  29. <view class="order-content">
  30. <view class="item-content" wx:for="{{ goodsInfo.goodsList }}" wx:key="index">
  31. <image class='goods-icon' src="{{ item.pic }}" mode="" />
  32. <view class="goods-desc">
  33. <view class="goodsInfo">
  34. <view class="goods-name">{{ item.name }}</view>
  35. <view class="goods-current-price">¥<text>{{ item.integerPart }}.{{ item.decimalPart }}</text></view>
  36. </view>
  37. <view class="goods-type">
  38. <view>
  39. <text class="goods-card" wx:if="{{ item.typePeriod }}">{{ item.typePeriod }}</text>
  40. </view>
  41. <block wx:if="{{ item.originalPrice > item.salePrice }}">
  42. <view class="goods-num">优惠前 ¥<text>{{ item.originalPrice }}</text></view>
  43. </block>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="goodsInfos">
  48. <view class="qrcode-line"></view>
  49. <view class="goodsInfo-count">
  50. <view class="goods-price">
  51. <text class="before">共{{ goodsInfo.goodsList.length }}件 <block wx:if="{{ goodsInfo.allDiscountPrice >0 }}">,共减</block></text>
  52. <block wx:if="{{ goodsInfo.allDiscountPrice >0 }}">
  53. <text class="stuff red">¥</text>
  54. <text class="priceZ">{{ goodsInfo.discountIntegerPart }}.{{ goodsInfo.discountDecimalPart }}</text>
  55. </block>
  56. <!-- <text class="priceF">.{{ goodsInfo.decimalPart }}</text> -->
  57. <text class="afterTxt">应付:</text>
  58. <text class="stuff">¥</text>
  59. <text class="afterPrice">{{ goodsInfo.integerPart }}.{{ goodsInfo.decimalPart }}</text>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="buyUsers" wx:if="{{ userBeneficiaryId && goodsInfo.orderNo }}">
  65. <view class="users">
  66. <text class="username">{{ userBeneficiaryInfo.name }}</text>{{ userBeneficiaryInfo.phoneNumber }}
  67. </view>
  68. <view class="detail">{{userBeneficiaryInfo.schoolInfo}}</view>
  69. <image class="buyuser_img" mode="widthFix" src="./images/buyuser.png"></image>
  70. </view>
  71. <view class="order-time" wx:if="{{ goodsInfo.orderNo }}">
  72. <template is="orderInfo" data="{{ goodsInfo }}"></template>
  73. </view>
  74. </view>
  75. <view class="order-btn">
  76. <view class="more">
  77. <view class="price-section">
  78. <view class="price">
  79. <view class="desc">应付:</view>
  80. <view class="currentPrice">
  81. <text class="stuff">¥</text>
  82. <text class="priceZ">{{ goodsInfo.integerPart }}</text>
  83. <text class="priceF">.{{ goodsInfo.decimalPart }}</text>
  84. </view>
  85. </view>
  86. <view class="discountPrice" wx:if="{{ goodsInfo.allDiscountPrice > 0 }}">共减<text>¥</text><text>{{ goodsInfo.allDiscountPrice }}</text></view>
  87. </view>
  88. <button type="primary" bind:tap="onSubmit">{{ goodsInfo.orderNo ? '继续支付' : '立即支付' }}</button>
  89. </view>
  90. </view>
  91. </scroll-view>
  92. <!-- <service popShow="{{ showService }}" bind:changePop="changePop"></service> -->
  93. </view>
  94. <template name="orderInfo">
  95. <view class="order-item">
  96. <view class="title">订单编号</view>
  97. <view class="value">{{ goodsInfo.orderNo }}
  98. <view class="copy cell-line" bind:tap="onCopy" data-orderno="{{goodsInfo.orderNo}}">复制</view>
  99. </view>
  100. </view>
  101. <view class="order-item">
  102. <view class="title">下单时间</view>
  103. <view class="value">{{ goodsInfo.createTime }}</view>
  104. </view>
  105. </template>