order-result.wxml 5.8 KB

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