order-detail.wxml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <!--pages/orders/order-detail.wxml-->
  2. <view class="container">
  3. <navigation-bar title="核对订单"></navigation-bar>
  4. <scroll-view class="record-list" type="list" scroll-y>
  5. <!-- <view class="order-status">
  6. <view class="status">
  7. <image src="{{ statusList[status].logo }}"></image>
  8. <text>{{ statusList[status].title }}</text>
  9. </view>
  10. <view class="tips">{{ statusList[status].content }}</view>
  11. </view> -->
  12. <!-- 添加权益人 -->
  13. <view class="addBuyer" bind:tap="onSelectAddress" wx:if="{{ hasInstrument }}">
  14. <image src="./images/address-top.png" mode="widthFix" class="addressTop"></image>
  15. <view class="addBuyer-left">
  16. <image src="./images/icon-address.png" class="icon-man"></image>
  17. <view class="info" wx:if="{{ receiveAddress }}">
  18. <view class="users">
  19. {{ receiveAddressInfo.addressDetail }}
  20. </view>
  21. <view class="address">
  22. <text>{{ receiveAddressInfo.name }}</text>
  23. <text>{{ receiveAddressInfo.phoneNumber }}</text>
  24. </view>
  25. </view>
  26. <view class="info" wx:else>
  27. <view class="users">
  28. 新建收货地址
  29. </view>
  30. <view class="address">请填写您的收货地址与信息</view>
  31. </view>
  32. </view>
  33. <image src="./images/icon-arrow-right.png" class="arrow-right"></image>
  34. </view>
  35. <view class="order-content">
  36. <view class="item-content" wx:for="{{ goodsInfo.goodsList }}" wx:key="index">
  37. <image class='goods-icon' src="{{ item.pic }}" mode="" />
  38. <view class="goods-desc">
  39. <view class="goodsInfo">
  40. <view class="goods-name">{{ item.name }}</view>
  41. <view class="goods-current-price">¥<text>{{ item.integerPart }}.{{ item.decimalPart }}</text></view>
  42. </view>
  43. <view class="goods-type">
  44. <view>
  45. <text class="goods-card" wx:if="{{ item.typePeriod }}">{{ item.typePeriod }}</text>
  46. </view>
  47. <view class="goods-num">x 1</view>
  48. </view>
  49. </view>
  50. </view>
  51. <view class="goodsInfos">
  52. <view class="goodsInfo-item">
  53. <text class="title">商品总额</text>
  54. <view class="goods-price">
  55. <text class="stuff">¥</text>
  56. <text class="priceZ">{{ goodsInfo.integerPart }}</text>
  57. <text class="priceF">.{{ goodsInfo.decimalPart }}</text>
  58. </view>
  59. </view>
  60. <view class="goodsInfo-item" wx:if="{{ goodsInfo.allOriginPrice > goodsInfo.allSalePrice }}">
  61. <text class="title">惊喜优惠</text>
  62. <!-- <view class="calc-price">-¥ {{ goodsInfo.allDiscountPrice }}</view> -->
  63. <view class="goods-price calc-price">
  64. <text class="stuff">¥</text>
  65. <text class="priceZ">{{ goodsInfo.discountIntegerPart }}</text>
  66. <text class="priceF">.{{ goodsInfo.discountDecimalPart }}</text>
  67. </view>
  68. </view>
  69. <view class="qrcode-line"></view>
  70. <view class="goodsInfo-count">
  71. <view class="goods-price">
  72. <text class="before">共{{ goodsInfo.goodsList.length }}件:</text>
  73. <text class="stuff">¥</text>
  74. <text class="priceZ">{{ goodsInfo.integerPart }}</text>
  75. <text class="priceF">.{{ goodsInfo.decimalPart }}</text>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <view class="wechat-section">
  81. <view class="wechat-left">
  82. <image src="./images/icon-wechat.png"></image>
  83. 微信支付
  84. </view>
  85. <image src="./images/icon-checkbox.png" class="checkbox"></image>
  86. </view>
  87. <!-- <view class="order-time">
  88. <view class="order-item">
  89. <view class="title">订单号</view>
  90. <view class="value">2133442226668</view>
  91. </view>
  92. <view class="order-item">
  93. <view class="title">下单时间</view>
  94. <view class="value">2023-07-12 18:12:45</view>
  95. </view>
  96. </view> -->
  97. </scroll-view>
  98. <view class="order-btn">
  99. <view class="more">
  100. <view class="price-section">
  101. <view class="price">
  102. <view class="desc">共计</view>
  103. <view class="currentPrice">
  104. <text class="stuff">¥</text>
  105. <text class="priceZ">{{ goodsInfo.integerPart }}</text>
  106. <text class="priceF">.{{ goodsInfo.decimalPart }}</text>
  107. </view>
  108. <text class="line"></text>
  109. <text class="discountPrice">优惠 ¥{{ goodsInfo.allDiscountPrice }}</text>
  110. </view>
  111. </view>
  112. <button type="primary" bind:tap="onSubmit">{{ goodsInfo.orderNo ? '继续支付' : '提交' }}</button>
  113. </view>
  114. </view>
  115. <van-popup show="{{ addressShow }}" safe-area-inset-bottom="{{false}}" lock-scroll="{{true}}" bind:close="onCloseAddress" position="bottom" round z-index="101" bind:after-leave="onAddressAfterLeave">
  116. <view class="addressContainer" wx:if="{{ !addressAfterLeave }}">
  117. <image src="./images/icon-close1.png" class="icon-close" bind:tap="onCloseAddress" />
  118. <view class="pop-address-title">
  119. {{ id ? '修改收货地址' : '新建收货地址' }}
  120. </view>
  121. <van-cell-group border="{{ false }}" class="cell-group">
  122. <van-field model:value="{{ name }}" label="收货人" placeholder="请填写收货人姓名" placeholder-style="color: #bbb" />
  123. <van-field model:value="{{ phoneNumber }}" label="电话号码" type="number" placeholder-style="color: #bbb" placeholder="请输入手机号码" maxlength="11" />
  124. <van-field value="{{ provinceName ? provinceName + '/' + cityName + '/' + regionName : '' }}" label="选择地区" placeholder-style="color: #bbb" placeholder="请选择省/市/区" readonly is-link bind:tap="onShowAreaList" />
  125. <van-field model:value="{{ detailAddress }}" label="详细地址" type="textarea" placeholder-style="color: #bbb" placeholder="请填写小区/楼号/单元/门牌号" input-class="textarea" autosize />
  126. </van-cell-group>
  127. <view class="pop-btn-group">
  128. <button class="submit-btn" bind:tap="onOperationAddress">确认</button>
  129. </view>
  130. </view>
  131. </van-popup>
  132. <!-- 地区 -->
  133. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{103}}" show="{{showArea}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseAreaList">
  134. <van-area id='area1' areaList="{{areaList}}" visible-item-count="9" item-height="46" value="{{ regionCode }}" bind:cancel="onCloseAreaList" bind:confirm="submitArea" />
  135. </van-popup>
  136. <!-- <service popShow="{{ showService }}" bind:changePop="changePop"></service> -->
  137. </view>