index.wxml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <view class="container">
  2. <view class="sec-wrap">
  3. <view class="order-status">
  4. <view class="icon-box">
  5. <image wx:if="{{orderDetail.orderInfo.status==-1}}" class="icon" src="/images/order-details/icon-ddgb.png"></image>
  6. <image wx:elif="{{orderDetail.orderInfo.status==0}}" class="icon" src="/images/order-details/icon-ddfk.png"></image>
  7. <image wx:elif="{{orderDetail.orderInfo.status==1}}" class="icon" src="/images/order-details/icon-ddfh.png"></image>
  8. <image wx:elif="{{orderDetail.orderInfo.status==2}}" class="icon" src="/images/order-details/icon-ddsh.png"></image>
  9. <image wx:elif="{{orderDetail.orderInfo.status==3 || orderDetail.orderInfo.status==4}}" class="icon" src="/images/order-details/icon-jycg.png"></image>
  10. </view>
  11. <view class="right-text">
  12. <view class="status red">{{orderDetail.orderInfo.statusStr}}</view>
  13. <view class="des" hidden="true">请于11时59分59秒内付款,超时订单将自动关闭</view>
  14. </view>
  15. </view>
  16. <block wx:if="{{orderDetail.logistics}}">
  17. <view wx:if="{{orderDetail.logisticsTraces}}" class="wuliu-box">
  18. <view class="icon-box">
  19. <image class="icon" src="/images/order-details/icon-wuliu.png"></image>
  20. </view>
  21. <view class="right-text" bindtap="wuliuDetailsTap" data-id="{{orderDetail.orderInfo.id}}">
  22. <view class="order-number">快递单号:{{orderDetail.logistics.trackingNumber}}</view>
  23. <block wx:if="{{orderDetail.logisticsTraces}}">
  24. <view class="wuliu-text">{{orderDetail.logisticsTraces[orderDetail.logisticsTraces.length-1].AcceptStation}}</view>
  25. <view class="wuliu-date">{{orderDetail.logisticsTraces[orderDetail.logisticsTraces.length-1].AcceptTime}}</view>
  26. </block>
  27. </view>
  28. <view class="arrow-right">
  29. <van-icon name="arrow" />
  30. </view>
  31. </view>
  32. <view wx:else class="wuliu-box">
  33. <view class="icon-box">
  34. <image class="icon" src="/images/order-details/icon-wuliu.png"></image>
  35. </view>
  36. <view class="right-text">
  37. <view class="order-number">快递单号:{{orderDetail.logistics.trackingNumber}}</view>
  38. <view class="wuliu-text">暂无物流信息</view>
  39. </view>
  40. </view>
  41. <view class="address-sec">
  42. <view class="icon-box">
  43. <image class="icon" src="/images/order-details/icon-address.png"></image>
  44. </view>
  45. <view class="right-box">
  46. <view class="name-tel">{{orderDetail.logistics.linkMan}} {{orderDetail.logistics.mobile}}</view>
  47. <view class="text">
  48. {{orderDetail.logistics.provinceStr}} {{orderDetail.logistics.cityStr}} {{orderDetail.logistics.areaStr}} {{orderDetail.logistics.address}}
  49. </view>
  50. </view>
  51. </view>
  52. </block>
  53. </view>
  54. <view wx:if="{{orderDetail.orderInfo.hxNumber && orderDetail.orderInfo.status > 0}}" class="goods-list">
  55. <view class="list-title hx-title">核销码</view>
  56. <canvas class="hx-canvas" canvas-id="qrcode" />
  57. </view>
  58. <view class="goods-list">
  59. <view class="list-title">商品信息</view>
  60. <form bindsubmit="submitReputation">
  61. <block wx:for="{{orderDetail.goods}}" wx:key="id">
  62. <van-card
  63. num="{{item.number}}"
  64. price="{{item.amount}}"
  65. desc="{{item.property}}"
  66. title="{{item.goodsName}}"
  67. thumb="{{item.pic}}"
  68. thumb-link="/pages/goods-details/index?id={{item.goodsId}}"
  69. centered
  70. lazy-load
  71. />
  72. <van-cell-group wx:if="{{orderDetail.orderInfo.status==3}}" title="评价">
  73. <input name="orderGoodsId{{index}}" value="{{item.id}}" style="display:none;" />
  74. <van-cell title="满意度">
  75. <van-rate name="goodReputation{{index}}" value="{{ 5 }}" />
  76. </van-cell>
  77. <van-field
  78. name="goodReputationRemark{{index}}"
  79. value="{{ message }}"
  80. type="textarea"
  81. placeholder="从多个角度评价宝贝,可以帮助更多想买对人"
  82. autosize
  83. />
  84. <view style="margin-top:16rpx;padding-left:16rpx;">
  85. <van-uploader
  86. accept="image"
  87. multiple
  88. upload-text="买家秀"
  89. image-fit="aspectFill"
  90. file-list="{{ picsList[index] }}"
  91. data-idx="{{ index }}"
  92. bind:after-read="afterPicRead"
  93. bind:delete="afterPicDel"
  94. />
  95. </view>
  96. </van-cell-group>
  97. </block>
  98. <view class="btn-row" wx:if="{{orderDetail.orderInfo.status==3}}">
  99. <button style="float:right;" class="confirm-btn" formType="submit">提交评价</button>
  100. </view>
  101. </form>
  102. <form bindsubmit="confirmBtnTap" report-submit="true">
  103. <view class="btn-row" wx:if="{{orderDetail.orderInfo.status==2}}">
  104. <button class="confirm-btn" formType="submit">确认收货</button>
  105. </view>
  106. </form>
  107. </view>
  108. <view class="peisong-way" hidden="true">
  109. <view class="row-box">
  110. <view class="row-label">配送方式</view>
  111. <view class="right-text">顺丰快递</view>
  112. </view>
  113. <view class="row-box">
  114. <view class="row-label">留言</view>
  115. <view class="right-text">
  116. <input name="remark" type="text" class="liuyan" placeholder="如需留言请输入" />
  117. </view>
  118. </view>
  119. </view>
  120. <view wx:if="{{orderDetail.goodsCoupons}}" class="goods-info" style="margin-bottom:32rpx;">
  121. <view wx:for="{{orderDetail.goodsCoupons}}" wx:key="{{item.id}}" class="row-box">
  122. <view wx:if="{{item.type == 0}}" class="row-label">优惠券</view>
  123. <view wx:if="{{item.type == 0}}" class="right-text">{{item.coupon}}</view>
  124. <image mode="widthFix" wx:if="{{item.type == 1}}" src="{{item.coupon}}" style="max-width:100%;"></image>
  125. </view>
  126. </view>
  127. <view class="goods-info">
  128. <view class="row-box">
  129. <view class="row-label">商品金额</view>
  130. <view class="right-text">¥ {{orderDetail.orderInfo.amount}}</view>
  131. </view>
  132. <view class="row-box">
  133. <view class="row-label">运费</view>
  134. <view class="right-text">+ ¥ {{orderDetail.orderInfo.amountLogistics}}</view>
  135. </view>
  136. <view class="row-box">
  137. <view class="row-label">应付总额</view>
  138. <view class="right-text">¥ {{orderDetail.orderInfo.amountReal}}</view>
  139. </view>
  140. </view>
  141. </view>