order-result.wxml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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="scroll-container">
  6. <view class="order-status" wx:if="{{statusList[status]}}">
  7. <view class="status">
  8. <image src="{{ statusList[status].logo }}"></image>
  9. <text>{{ statusList[status].title }}</text>
  10. </view>
  11. <view class="tips" wx:if="{{ statusList[status].content }}">{{ statusList[status].content }}</view>
  12. </view>
  13. <view class="order-content">
  14. <view class="item-content" wx:for="{{ goodsInfo.goods }}" wx:key="index">
  15. <image class='goods-icon' src="{{ item.goodsUrl }}" mode="" />
  16. <view class="goods-desc">
  17. <view class="goodsInfo">
  18. <view class="goods-name">{{ item.goodsName }}</view>
  19. <view class="goods-price">¥<text>{{item.originalPrice}}</text></view>
  20. </view>
  21. <view class="goods-type">
  22. <view class="goods-card">{{ item.typeName }}</view>
  23. <view class="goods-num">x1</view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="goodsInfos">
  28. <view class="goodsInfo-item">
  29. <text class="title">商品总额</text>
  30. <view class="goods-price">
  31. <text class="stuff">¥</text>
  32. <text class="priceZ">{{ goodsInfo.integerPart }}</text>
  33. <text class="priceF">.{{ goodsInfo.decimalPart }}</text>
  34. </view>
  35. </view>
  36. <view class="goodsInfo-item" wx:if="{{ goodsInfo.allOriginPrice > goodsInfo.allSalePrice }}">
  37. <text class="title">惊喜优惠</text>
  38. <!-- <view class="calc-price">-¥ {{ goodsInfo.allDiscountPrice }}</view> -->
  39. <view class="goods-price calc-price">
  40. <text class="stuff">¥</text>
  41. <text class="priceZ">{{ goodsInfo.discountIntegerPart }}</text>
  42. <text class="priceF">.{{ goodsInfo.discountDecimalPart }}</text>
  43. </view>
  44. </view>
  45. <view class="qrcode-line"></view>
  46. <view class="goodsInfo-count">
  47. <view class="goods-price">
  48. <text class="before">共{{ goodsInfo.goodsList.length }}件:</text>
  49. <text class="stuff">¥</text>
  50. <text class="priceZ">{{ goodsInfo.integerPart }}</text>
  51. <text class="priceF">.{{ goodsInfo.decimalPart }}</text>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. <!-- <canvas class='my_draw_canvas only_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas> -->
  57. <view class="order-time">
  58. <view class="order-item">
  59. <view class="title">订单号</view>
  60. <view class="value">{{ goodsInfo.orderNo }}
  61. <view class="copy" bind:tap="onCopy" data-orderno="{{goodsInfo.orderNo}}">复制</view>
  62. </view>
  63. </view>
  64. <view class="order-item">
  65. <view class="title">下单时间</view>
  66. <view class="value">{{ goodsInfo.createTime }}</view>
  67. </view>
  68. </view>
  69. <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' || goodsInfo.wechatStatus == 'REFUNDING' }}">
  70. <view class="order-item">
  71. <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
  72. <view class="value">{{ goodsInfo.refundTime }}</view>
  73. </view>
  74. <view class="order-item">
  75. <view class="title">退款金额</view>
  76. <view class="value red">¥{{ goodsInfo.refundAmount }}</view>
  77. </view>
  78. <view class="order-item" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' }}">
  79. <view class="title">退款路径</view>
  80. <view class="value">{{ goodsInfo.refundStyleStr }}</view>
  81. </view>
  82. </view>
  83. <view class="btn-refound" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' && tabIdx == 5 }}">申请退款</view>
  84. </view>
  85. </scroll-view>
  86. <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
  87. <view class="orders" bind:tap="onService">
  88. <image src="./images/icon-service.png" />
  89. <text>客服</text>
  90. </view>
  91. <!-- <button type="primary" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">申请退款</button>
  92. <block wx:else> -->
  93. <button type="primary" bind:tap="cancelRefound" disabled="{{cancelRefoundStatus}}" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}">取消退款</button>
  94. <button type="primary" wx:else bind:tap="onSubmit">再来一单</button>
  95. <!-- </block> -->
  96. </view>
  97. <service popShow="{{ showService }}" bind:changePop="changePop"></service>
  98. <!-- 退费 -->
  99. <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound>
  100. </view>