orderDetail.wxml 6.4 KB

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