applyRefund.wxml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <!--pages/applyRefund/applyRefund.wxml-->
  2. <view class="applyRefund">
  3. <view class="notice">
  4. <image class="icon" src="../../images/icon/warn.png" mode=""/>
  5. 部分退款时,有积分消费的,优先返还积分。
  6. </view>
  7. <view class="apply-type box">
  8. <view class="title">售后类型</view>
  9. <radio-group bindchange="radioChange">
  10. <view class="item">
  11. <radio class="radio" checked="{{applyType == 1}}" value="1" color="#FF941A" />
  12. <view class="info">
  13. <view class="title">我要退款</view>
  14. <view class="desc">没收到货,货已收到货与商家协商后无需退货只退款</view>
  15. </view>
  16. </view>
  17. <view class="item">
  18. <radio class="radio" value="2" checked="{{applyType == 2}}" color="#FF941A"/>
  19. <view class="info">
  20. <view class="title">我要退货退款</view>
  21. <view class="desc">已收到货,需要退还已收到的商品</view>
  22. </view>
  23. </view>
  24. </radio-group>
  25. </view>
  26. <view class="refund-goods box">
  27. <view class="title-box">
  28. <view class="title">退款商品</view>
  29. <view class="price">退款金额:¥{{total}}</view>
  30. </view>
  31. <view class="good-list">
  32. <view class="all">
  33. <checkbox bindtap='onSelectedAll' checked="{{isAll}}" color="#105c3e" />全选
  34. </view>
  35. <view class="good-item" wx:for="{{refundItem.orderItemDtos}}">
  36. <checkbox bindtap='onSelectedItem' data-index="{{index}}" value="{{index}}" checked="{{item.checked}}" color="#105c3e" />
  37. <image src="{{item.pic}}" mode="" class="img"/>
  38. <view class="info">
  39. <view class="good-name">{{item.prodName}}</view>
  40. <view class="desc">{{item.skuName}}</view>
  41. <view class="price">单价:¥{{item.price}}</view>
  42. </view>
  43. <view class="price-box">
  44. <view class="price">¥{{item.price*item.num}}</view>
  45. <view class="num-box">
  46. <view class="btn" bind:tap="changeNum" data-index="{{index}}" data-num="{{-1}}">-</view>
  47. <view class="num">{{item.num}}</view>
  48. <view class="btn" bind:tap="changeNum" data-index="{{index}}" data-num="{{1}}">+</view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <!-- <view class="open-btn">
  54. 展开(共7件) <image class="arrow" src="../../images/icon/black-down-arrow.png" mode=""/>
  55. </view> -->
  56. </view>
  57. <view class="reason-box box">
  58. <view class="title-box">
  59. <view class="title">退款原因</view>
  60. <view class="choose" bindtap="choose" >{{reasonList[buyerReason].name||'请选择退款原因'}} <image class="icon" src="../../images/icon/more.png" mode=""/> </view>
  61. </view>
  62. <view class="content">
  63. <textarea class="reason" maxlength="200" placeholder="补充描述和凭证,有助于提高退款效率" bindinput="onInput" value="{{buyerDesc}}"/>
  64. <view class="img-box">
  65. <view class="img-item" wx:for="{{photoFiles}}">
  66. <image src="../../images/icon/del.png" bind:tap="delImg" data-index="{{index}}" mode="" class="del"/>
  67. <image src="{{item.url}}" mode="aspectFit" class="img"/>
  68. </view>
  69. <view class="upload" bindtap="getUploadImg">
  70. <image src="../../images/icon/photo.png" mode="" class="photo"/>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. <van-action-sheet show="{{ show }}" title="" bind:click-overlay="close">
  76. <view class="reason-content">
  77. <view class="title">选择退款原因</view>
  78. <view class="notice" style="position: static;width: 100%;">
  79. <image class="icon" src="../../images/icon/warn.png" mode=""/>
  80. 部分退款时,有积分消费的,优先返还积分。
  81. </view>
  82. <view class="reason-list">
  83. <view class="title-box">
  84. <view class="sub-title">请选择退款原因</view>
  85. <view class="desc">(必选)</view>
  86. </view>
  87. <radio-group bindchange="chooseReason">
  88. <view class="item" wx:for="{{reasonList}}" wx:key="{{index}}">
  89. <radio class="radio" checked="{{buyerReason === index}}" value="{{index}}" color="#FF941A" />
  90. <view class="text">{{item.name}}</view>
  91. </view>
  92. </radio-group>
  93. </view>
  94. <view class="submit-box">
  95. <view class="btn" bind:tap="submitReason">确认</view>
  96. </view>
  97. </view>
  98. </van-action-sheet>
  99. <view class="submit-box">
  100. <view class="btn" bind:tap="apply">提交</view>
  101. </view>
  102. </view>