orderDetail.wxml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <!-- pages/goods/orderDetail/orderDetail.wxml -->
  2. <wxs module="tool" src="../../../app.wxs" />
  3. <view class="item margin item-radius current{{current}}">
  4. <view class="item-top flex-align-center">
  5. <text class="flex1 ellipsis" style="font-size: 36rpx;">{{detail.store_name}}</text>
  6. <text class="state">{{detail.status_text}}</text>
  7. </view>
  8. <view class="item-content flex" wx:for="{{detail.good}}" wx:key="index">
  9. <image class="img" src="{{item.cover_url}}"></image>
  10. <view class="content flex-column">
  11. <view class="content-text-box flex">
  12. <text class="good-name">{{item.goods_name}}</text>
  13. </view>
  14. <view class="content-num">
  15. <view wx:if="{{detail.seconds>0}}" class="countDown">剩余支付时间:
  16. <van-count-down format="mm:ss" bind:finish='finishTime' style="margin-left: 10rpx;" time="{{ detail.seconds }}" />
  17. </view>
  18. <view class="num">x{{item.num}}</view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="item-content flex" wx:for="{{detail.plus}}" wx:key="index">
  23. <image class="img" src="{{item.plus_url}}"></image>
  24. <view class="content flex-column">
  25. <view class="content-text-box flex">
  26. <text class="good-name">{{item.project_name}}</text>
  27. </view>
  28. <view class="content-num">
  29. <view class="num">x1</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="item-btn flex-align-center">
  34. <view class="align-left">共{{productNum}}件</view>
  35. <view class="align-right">
  36. <!-- <text style="font-size: 28rpx;color: #999;">预约费用:</text> -->
  37. <text style="font-size: 36rpx;margin-right:28rpx;">¥{{detail.original_price}}</text>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="margin item-radius coupon-code flex-column flex-align-center" style="padding: 20rpx 0;" wx:if="{{detail.status == 1 || detail.status == 2 }}">
  42. <view style="align-self: flex-start;padding: 0 24rpx 30rpx;font-size: 36rpx;font-family: PingFangSC-Semibold, PingFang SC;font-weight: 600;color: #333333;">
  43. 券码信息
  44. </view>
  45. <!-- <image src=""></image> -->
  46. <!-- 二维码 -->
  47. <view wx:if="{{detail.status == 1}}" class="flex-column flex-align-center">
  48. <canvas class="qrcode" canvas-id="qrcode" />
  49. <text style="margin-top:20rpx;font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">·{{detail.coupon_code}}</text>
  50. </view>
  51. <view wx:if="{{detail.status == 2}}" class="flex-align-center" style="width: 100%;">
  52. <text class="flex1" style="margin:0rpx 30rpx;font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">·{{detail.coupon_code}}</text>
  53. <text wx:if="{{detail.status == 2}}" style="margin-right: 30rpx;color: #999999;font-size: 32rpx;">已使用</text>
  54. </view>
  55. </view>
  56. <view class="margin order-info flex-column flex-justify-center item-radius ">
  57. <view class="num flex">
  58. <text class="ellipsis" style="margin-right: 16px;">订单编号:{{detail.order_sn}}</text>
  59. <view class="copy flex-center" bindtap="onCopyOrderNum" data-num="{{detail.order_sn}}">复制</view>
  60. </view>
  61. <text class="time">下单时间:{{detail.create_time}}</text>
  62. <view wx:if="{{detail.status!=0}}" class="pay-time">
  63. <view class="time">支付时间:{{detail.pay_time}}</view>
  64. <view class="time">支付方式:{{detail.pay_way}}</view>
  65. </view>
  66. </view>
  67. <view class="margin order-sum item-radius ">
  68. <view class="top">
  69. <view class="text flex">
  70. <text class="flex1" style="font-size:28rpx;color:#999">商品总价:</text>
  71. <text style="font-size:28rpx;font-family: PingFang-SC-Medium, PingFang-SC;font-weight: 500;color:#333">¥{{detail.original_price}}</text>
  72. </view>
  73. <view class="text flex">
  74. <view class="coupon flex flex1 flex-align-center">
  75. <text style="font-size:28rpx;color:#999">优惠券:</text>
  76. <view class="coupon-text flex-center" wx:if="{{detail.coupon_id!=0}}">已选推荐优惠</view>
  77. </view>
  78. <text style="font-size:28rpx;font-family: PingFang-SC-Medium, PingFang-SC;font-weight: 500;color:#999" wx:if="{{detail.coupon_id==0}}">未选择</text>
  79. <text style="font-size:28rpx;font-family: PingFang-SC-Medium, PingFang-SC;font-weight: 500;color:#333" wx:else="">-¥{{detail.discount}}</text>
  80. </view>
  81. <!-- <view class="text flex" wx:if="{{detail.discount_type==1}}"> -->
  82. <view class="text flex" hidden="{{true}}">
  83. <text class="flex1" style="font-size:28rpx;color:#999">会员抵扣:</text>
  84. <text style="font-size:28rpx;font-family: PingFang-SC-Medium, PingFang-SC;font-weight: 500;color:#333">-¥{{detail.discount}}</text>
  85. </view>
  86. </view>
  87. <view class="bottom flex-align-center">
  88. <text style="font-size: 28rpx;color: #999">合计:</text>
  89. <text style="font-size: 36rpx;color: #E95564;margin-right:28rpx;">¥{{detail.price}}</text>
  90. </view>
  91. </view>
  92. <view style="height:170rpx;"></view>
  93. <view class="buy flex-align-center" wx:if="{{ detail.status == 0 || detail.status == 1}}">
  94. <view class="btn cancel-btn flex-center" bindtap="onCancelOrder" wx:if="{{ detail.status == 0 }}">
  95. 取消订单
  96. </view>
  97. <view class="btn cancel-btn flex-center" bindtap="onRefundOrder" wx:if="{{ detail.status == 1 }}">
  98. 申请退款
  99. </view>
  100. <view class="btn use-btn flex-center" bindtap="onPay" wx:if="{{ detail.status == 0 }}">立即支付</view>
  101. </view>
  102. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ payNow }}" bind:close="onClosePay">
  103. <view class="coupon-popup payType">
  104. <view class="top flex-align-center">
  105. <text style="text-align: center;"></text>
  106. <image src="/images/icon_20.png" class="close-img" bindtap="onClosePay" />
  107. </view>
  108. <view class="moneyShow"><text>¥</text>{{ level?pay_methon==2?levelPrice:detail.price:detail.price }}</view>
  109. <view class="select-pay-methon" catchtap="pay_methonw">
  110. <image class="pay-img" src="/images/wx_pay.png"></image>
  111. <view class="pay-title">微信支付</view>
  112. <!-- <view class="pay-money"><text>¥</text>800</view> -->
  113. <image class="select-activity" src="{{pay_methon==1?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  114. </view>
  115. <view class="select-pay-methon" catchtap="pay_methonc" style="margin-bottom: 15rpx;">
  116. <image class="pay-img" src="/images/joli_pay.png"></image>
  117. <view class="pay-title">储值支付</view>
  118. <view class="pay-money"><text>¥</text>{{inserllAmount}}</view>
  119. <image class="select-activity" src="{{pay_methon==2?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  120. </view>
  121. <view wx:if="{{level!=0}}" class="coup-box-title" style="text-align: left; margin-left: 90rpx;">权益优惠减¥{{toLevelPrice}}</view>
  122. <view class="coupon-popup-btm flex-center">
  123. <view class="coupon-popup-btm-btn flex-center" bindtap="payNow">支付</view>
  124. </view>
  125. </view>
  126. </wux-popup>