order-result.wxml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <!--pages/orders/order-detail.wxml-->
  2. <view class="container">
  3. <navigation-bar title="{{statusList[status].title}}"></navigation-bar>
  4. <view class="topTitle">
  5. {{statusList[status].content}}
  6. </view>
  7. <scroll-view class="record-list {{ status==='WAIT_PAY'?'waitList':'' }}" type="list" scroll-y>
  8. <!-- <view class="order-status">
  9. <view class="status">
  10. <image src="{{ statusList[status].logo }}"></image>
  11. <text>{{ statusList[status].title }}</text>
  12. </view>
  13. <view class="tips">{{ statusList[status].content }}</view>
  14. </view> -->
  15. <view class="order-content">
  16. <view class="item-content">
  17. <image class='goods-icon' src="{{ goodsInfo.pic }}" mode="" />
  18. <view class="goods-desc">
  19. <view class="goodsInfo">
  20. <view class="goods-name">{{ goodsInfo.name }}</view>
  21. <view class="goods-price">
  22. <text class="stuff">¥</text>
  23. <text class="priceZ">{{ my.formatValue(goodsInfo.salePrice) }}</text>
  24. </view>
  25. </view>
  26. <view class="goods-type">
  27. <view class="goods-card">{{ goodsInfo.typeName }}</view>
  28. <view wx:if="{{(goodsInfo.originalPrice-goodsInfo.salePrice)>0}}" class="goods-num">{{ "原价¥"+my.formatValue(goodsInfo.originalPrice) }}</view>
  29. <view wx:else></view>
  30. </view>
  31. </view>
  32. </view>
  33. <view wx:if="{{ instrumentsInfo.id }}" class="item-content last-item-content">
  34. <image class='goods-icon' src="{{ instrumentsInfo.pic }}" mode="" />
  35. <view class="goods-desc">
  36. <view class="goodsInfo">
  37. <view class="goods-name">{{ instrumentsInfo.name }}</view>
  38. <view class="goods-price">
  39. <text class="stuff">¥</text>
  40. <text class="priceZ">{{ my.formatValue(instrumentsInfo.salePrice) }}</text>
  41. </view>
  42. </view>
  43. <view class="goods-type">
  44. <view class="goods-card"></view>
  45. <view wx:if="{{(instrumentsInfo.originalPrice-instrumentsInfo.salePrice)>0}}" class="goods-num">{{ "原价¥"+my.formatValue(instrumentsInfo.originalPrice) }}</view>
  46. <view wx:else></view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <view class="order-content">
  52. <view class="titTip priceTip">价格明细</view>
  53. <view class="priceDetails">
  54. <view class="priceLeft">
  55. <text>商品总价</text>
  56. <text>{{ "共"+ (instrumentsInfo.id?'2':'1') +"件" }}</text>
  57. </view>
  58. <view class="priceRight">
  59. <text class="stuff">¥</text>
  60. <numberDisplay number="{{ goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) }}" />
  61. </view>
  62. </view>
  63. <view wx:if="{{ goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) - (goodsInfo.salePrice + (instrumentsInfo.salePrice || 0)) > 0 }}" class="priceDetails">
  64. <view class="priceLeft">
  65. <text>优惠金额</text>
  66. </view>
  67. <view class="priceRight discountTip">
  68. <text class="stuff">-¥</text>
  69. <numberDisplay number="{{ goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) - (goodsInfo.salePrice + (instrumentsInfo.salePrice || 0)) }}" />
  70. </view>
  71. </view>
  72. <view class="priceDetails sumTip">
  73. <view class="priceLeft">
  74. </view>
  75. <view class="priceRight">
  76. <text class="titPic">共计:</text>
  77. <text class="stuff">¥</text>
  78. <numberDisplay number="{{ goodsInfo.salePrice + (instrumentsInfo.salePrice || 0) }}" />
  79. </view>
  80. </view>
  81. </view>
  82. <view class="order-content" wx:if="{{ instrumentsInfo.id }}">
  83. <view class="titTip">收货信息</view>
  84. <view class="memberInfo">
  85. <text>收货人</text>
  86. <text>{{ addressInfo.name }}</text>
  87. </view>
  88. <view class="memberInfo">
  89. <text>手机号码</text>
  90. <text>{{ addressInfo.phoneNumber }}</text>
  91. </view>
  92. <view class="memberInfo">
  93. <text>收货地址</text>
  94. <text>{{ addressInfo.addressDes }}</text>
  95. </view>
  96. </view>
  97. <view class="order-content">
  98. <view class="titTip">订单信息</view>
  99. <view class="memberInfo">
  100. <text>会员姓名</text>
  101. <text>{{ memberInfo.name }}</text>
  102. </view>
  103. <view class="memberInfo">
  104. <text>手机号码</text>
  105. <text>{{ memberInfo.phone }}</text>
  106. </view>
  107. <view class="memberInfo">
  108. <text>学校信息</text>
  109. <text>{{ memberInfo.schoolInfo }}</text>
  110. </view>
  111. <view class="memberInfo orderNoCode">
  112. <text>订单编号</text>
  113. <view class="orderInfoRight">
  114. <text>{{ orderInfo.orderNo }}</text>
  115. <view class="copy" bind:tap="onCopy" data-orderno="{{orderInfo.orderNo}}">复制</view>
  116. </view>
  117. </view>
  118. <view class="memberInfo">
  119. <text>创建时间</text>
  120. <text>{{ orderInfo.createTime }}</text>
  121. </view>
  122. </view>
  123. <view class="bottomBlock"></view>
  124. <!-- <view class="order-time">
  125. <view class="order-item">
  126. <view class="title">订单号</view>
  127. <view class="value">2133442226668</view>
  128. </view>
  129. <view class="order-item">
  130. <view class="title">下单时间</view>
  131. <view class="value">2023-07-12 18:12:45</view>
  132. </view>
  133. </view> -->
  134. </scroll-view>
  135. <view wx:if="{{status==='WAIT_PAY'}}" class="order-btn">
  136. <view class="priceCon">
  137. <view class="price">
  138. <view class="goodsNum">{{ "共"+ (instrumentsInfo.id?'2':'1') +"件" }}</view>
  139. <view class="desc">需支付:</view>
  140. <text class="stuff">¥</text>
  141. <numberDisplay number="{{ goodsInfo.salePrice + (instrumentsInfo.salePrice || 0) }}" />
  142. </view>
  143. </view>
  144. <button type="primary" bind:tap="onSubmit">{{ '继续支付' }}</button>
  145. </view>
  146. <!-- 客服 -->
  147. <!-- <service wx:if="{{serviceShow}}"></service> -->
  148. </view>
  149. <wxs module="my">
  150. var formatValue = function (value) {
  151. return parseFloat(value).toFixed(2);
  152. }
  153. module.exports = {
  154. formatValue: formatValue
  155. }
  156. </wxs>