order-result.wxml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <!--pages/orders/order-detail.wxml-->
  2. <view class="container">
  3. <navigation-bar title=""></navigation-bar>
  4. <scroll-view class="record-list {{ status==='WAIT_PAY'?'waitList':'' }}" 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. <view wx:if="{{ instrumentsInfo.id }}" class="memberBox {{isAddressInfoTip?'showMemberInfoTip':''}}">
  13. <view class="memberCon">
  14. <view class="memberInfoCon">
  15. <view class="infoCon">
  16. <image class="tip" src="./images/member.png" />
  17. <text class="name">{{addressInfo.name}}</text>
  18. <text class="phone">{{addressInfo.phoneNumber}}</text>
  19. </view>
  20. <view class="schoolInfoCon">
  21. <text class="schoolInfo">收货地址</text><text class="schoolInfoDes">{{addressInfo.addressDes}}</text>
  22. </view>
  23. </view>
  24. <!-- <image class="chevronImg" src="../index/images/chevron.png"></image> -->
  25. </view>
  26. </view>
  27. <view class="order-content">
  28. <view class="titTip">订单详情</view>
  29. <view class="item-content first-item-content">
  30. <image class='goods-icon' src="{{ goodsInfo.pic }}" mode="" />
  31. <view class="goods-desc">
  32. <view class="goodsInfo">
  33. <view class="goods-name">{{ goodsInfo.name }}</view>
  34. <view class="goods-price">
  35. <text class="stuff">¥</text>
  36. <text class="priceZ">{{ my.formatValue(goodsInfo.originalPrice) }}</text>
  37. </view>
  38. </view>
  39. <view class="goods-type">
  40. <view class="goods-card">{{ goodsInfo.typeName }}</view>
  41. <view class="goods-num">x1</view>
  42. </view>
  43. </view>
  44. </view>
  45. <view wx:if="{{ instrumentsInfo.id }}" class="item-content">
  46. <image class='goods-icon' src="{{ instrumentsInfo.pic }}" mode="" />
  47. <view class="goods-desc">
  48. <view class="goodsInfo">
  49. <view class="goods-name">{{ instrumentsInfo.name }}</view>
  50. <view class="goods-price">
  51. <text class="stuff">¥</text>
  52. <text class="priceZ">{{ my.formatValue(instrumentsInfo.originalPrice) }}</text>
  53. </view>
  54. </view>
  55. <view class="goods-type">
  56. <view class="goods-card"></view>
  57. <view class="goods-num">x1</view>
  58. </view>
  59. </view>
  60. </view>
  61. <view wx:if="{{goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) - (goodsInfo.salePrice + (instrumentsInfo.salePrice || 0)) > 0 }}" class="discountCon">
  62. <view class="discountTip">
  63. <image src="./images/discount.png"></image>
  64. <text>优惠活动</text>
  65. </view>
  66. <view class="discount">
  67. <text>-¥</text>
  68. <text>{{my.formatValue(goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) - (goodsInfo.salePrice + (instrumentsInfo.salePrice || 0)))}}</text>
  69. </view>
  70. </view>
  71. <view class="totalPic">
  72. <text class="titPic">合计</text>
  73. <text class="stuff">¥</text>
  74. <numberDisplay number="{{ goodsInfo.salePrice + (instrumentsInfo.salePrice || 0) }}" />
  75. </view>
  76. </view>
  77. <view class="order-content">
  78. <view class="titTip">会员信息</view>
  79. <view class="memberInfo">
  80. <text>姓名</text>
  81. <text>{{ memberInfo.name }}</text>
  82. </view>
  83. <view class="memberInfo">
  84. <text>联系电话</text>
  85. <text>{{ memberInfo.phone }}</text>
  86. </view>
  87. <view class="memberInfo">
  88. <text>学校信息</text>
  89. <text>{{ memberInfo.schoolInfo }}</text>
  90. </view>
  91. </view>
  92. <view class="order-content">
  93. <view class="titTip">订单信息</view>
  94. <view class="memberInfo">
  95. <text>订单编号</text>
  96. <view class="orderInfoRight">
  97. <text>{{ orderInfo.orderNo }}</text>
  98. <view class="copy" bind:tap="onCopy" data-orderno="{{orderInfo.orderNo}}">复制</view>
  99. </view>
  100. </view>
  101. <view class="memberInfo">
  102. <text>下单时间</text>
  103. <text>{{ orderInfo.createTime }}</text>
  104. </view>
  105. </view>
  106. <view class="bottomBlock"></view>
  107. <!-- <view class="order-time">
  108. <view class="order-item">
  109. <view class="title">订单号</view>
  110. <view class="value">2133442226668</view>
  111. </view>
  112. <view class="order-item">
  113. <view class="title">下单时间</view>
  114. <view class="value">2023-07-12 18:12:45</view>
  115. </view>
  116. </view> -->
  117. </scroll-view>
  118. <view wx:if="{{status==='WAIT_PAY'}}" class="order-btn">
  119. <view class="priceCon">
  120. <view class="price">
  121. <view class="desc">待支付:</view>
  122. <text class="stuff">¥</text>
  123. <numberDisplay number="{{ goodsInfo.salePrice + (instrumentsInfo.salePrice || 0) }}" />
  124. </view>
  125. <text wx:if="{{goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) - (goodsInfo.salePrice + (instrumentsInfo.salePrice || 0)) > 0 }}" class="discountVal">已优惠 ¥{{my.formatValue(goodsInfo.originalPrice + (instrumentsInfo.originalPrice || 0) - (goodsInfo.salePrice + (instrumentsInfo.salePrice || 0)))}}</text>
  126. </view>
  127. <button type="primary" bind:tap="onSubmit">{{ '继续支付' }}</button>
  128. </view>
  129. <!-- 客服 -->
  130. <!-- <service wx:if="{{serviceShow}}"></service> -->
  131. </view>
  132. <wxs module="my">
  133. var formatValue = function (value) {
  134. return parseFloat(value).toFixed(2);
  135. }
  136. module.exports = {
  137. formatValue: formatValue
  138. }
  139. </wxs>