details.wxml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <view class="bg-f p15 m15 rounded shadow">
  2. <view class="fsz-34 weight text-3 i-flex i-flex-spb">
  3. 用户信息
  4. <i-cashon_delivery paymentCode="{{orders.payment_code}}" codeImg="{{orders.cashondelivery_code_img}}"></i-cashon_delivery>
  5. </view>
  6. <view class="mt10">
  7. <view>昵称:{{orders.username}}</view>
  8. <view>收货人:{{orders.shipping_name}}</view>
  9. <view>手机号:{{orders.shipping_tel}}</view>
  10. <view>商品数量:{{order_goods_count}}</view>
  11. </view>
  12. </view>
  13. <view class="bg-f p15 m15 rounded shadow">
  14. <view class="i-flex pb15">
  15. <view class="fsz-34 weight text-3 pb15 i-flex-item">核销内容</view>
  16. <view bindtap="allHexiao">
  17. <view class="allbtn">全部核销</view>
  18. </view>
  19. </view>
  20. <view class="list">
  21. <view class="item border-bottom" wx:for="{{order_goods_saleshexiao_list}}" wx:key="id">
  22. <view class="i-flex">
  23. <image src="{{item.goods_images}}" class="goodsimg"></image>
  24. <view class="i-flex-item">
  25. <view class="fsz-28 i-flex">
  26. <view class="i-flex-item">{{item.goods_name}}</view>
  27. <view class="bule u-font-24 u-m-l-10" wx:if="{{orders.payment_code=='cashon_delivery'}}">货到付款</view>
  28. </view>
  29. <view class="fsz-24 text-gray mt5">{{item.option_sku}}</view>
  30. <view class="fsz-24 text-gray mt5">x {{item.quantity}}</view>
  31. </view>
  32. </view>
  33. <view class="mt10 fsz-24 text-6">
  34. <view>订单编号:{{item.order_num_alias}}</view>
  35. <view>核销日期:{{item.effect_begin_time}}~{{item.effect_begin_time}}</view>
  36. <view wx:if="{{item.hexiao_type!=1}}">核销类型:订单核销</view>
  37. </view>
  38. <view wx:if="{{item.hexiao_type==1}}" class="mt10 fsz-24 text-6">
  39. <view>核销类型:按次核销</view>
  40. <view>总核销:{{item.hexiao_count}}次</view>
  41. <view>已核销:{{item.has_hexiao_count}}次</view>
  42. <view>可核销:{{item.remain_hexiao_count}}次</view>
  43. </view>
  44. <view wx:if="{{item.is_refund>0}}" class="red fsz-24 text-6">订单状态:{{item.is_refund==1?'已退款':'部分退款'}}</view>
  45. <view wx:if="{{item.is_refund==1}}" class="state mt10 bg-sucess">已退款</view>
  46. <view class="state mt10 bg-sucess" wx:elif="{{item.is_hexiao_over==1}}">已核销</view>
  47. <view class="state mt10 bg-primary" bindtap="goHexiao" data-id="{{item.id}}" data-type="{{item.hexiao_type}}" wx:else>核销</view>
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 核销弹窗 -->
  52. <i-modal scrollUp="{{true}}" visible="{{showHexiaoModal}}" bind:cancel="handleHexiaoModal">
  53. <view class="sku-card">
  54. <view class="weight fsz-32 pb10 text-center">
  55. 商品核销
  56. <text class="iconfont icon-guanbi fsz-34 text-3" bindtap="handleHexiaoModal"></text>
  57. </view>
  58. <scroll-view scroll-y style="max-height: 60vh;" class="pb15">
  59. <view class="i-flex border-bottom pb15">
  60. <image src="{{order_goods_info.goods_images}}" class="goodsimg"></image>
  61. <view class="i-flex-item">
  62. <view class="fsz-28">{{order_goods_info.goods_name}}</view>
  63. <view class="fsz-24 text-gray mt10">x {{order_goods_info.quantity}}</view>
  64. </view>
  65. <view bindtap="allHexiaoBytimes" data-id="{{saleshexiao_info.id}}">
  66. <view class="fsz-28 allbtn">全部核销</view>
  67. </view>
  68. </view>
  69. <!-- 使用记录 -->
  70. <view wx:if="{{hexiao_record_list}}" class="fsz-24 pb15 border-bottom">
  71. <view class="fsz-28 weight mb10 mt10">使用记录</view>
  72. <view class="i-flex mt10" wx:for="{{hexiao_record_list}}" wx:key="index">
  73. <view class="i-flex-item">核销次数:{{item.hexiao_count}}</view>
  74. <view>核销时间:{{item.hx_time}}</view>
  75. </view>
  76. </view>
  77. </scroll-view>
  78. <!-- 剩余可使用 -->
  79. <view class="mt10 i-flex i-flex-alc pb15">
  80. <view class="i-flex-item">使用次数(剩余 <text class="red">{{saleshexiao_info.remain_hexiao_count}}</text> 次)</view>
  81. <i-input-number bind:change="changeNumber" bind:outOfMax="outOfMax" max="{{saleshexiao_info.remain_hexiao_count}}" min="1" value="{{hxNum}}"></i-input-number>
  82. </view>
  83. <view class="state mt10 bg-primary fsz-32" style="height: 74rpx;line-height: 74rpx;" data-id="{{saleshexiao_info.id}}" bindtap="numHexiao">确认使用</view>
  84. </view>
  85. </i-modal>