refundApply.wxml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <view class="page">
  2. <form bindsubmit="bindSave" report-submit="true">
  3. <view class="page__bd">
  4. <van-notice-bar
  5. wx:if="{{refundApplyDetail && refundApplyDetail.baseInfo.status == 0}}"
  6. left-icon="volume-o"
  7. speed="30"
  8. text="已申请,等待处理"
  9. />
  10. <van-notice-bar
  11. wx:if="{{refundApplyDetail && refundApplyDetail.baseInfo.status == 2}}"
  12. left-icon="volume-o"
  13. speed="30"
  14. text="本次申请已拒绝,请联系客服"
  15. />
  16. <van-notice-bar
  17. wx:if="{{refundApplyDetail && refundApplyDetail.baseInfo.status == 3}}"
  18. left-icon="volume-o"
  19. speed="30"
  20. text="正在处理中"
  21. />
  22. <van-notice-bar
  23. wx:if="{{refundApplyDetail && refundApplyDetail.baseInfo.status == 4}}"
  24. left-icon="volume-o"
  25. speed="30"
  26. text="已成功退换货"
  27. />
  28. <van-radio-group value="{{ type }}" bind:change="typeChange">
  29. <van-cell-group title="选择服务类型">
  30. <van-cell wx:for="{{typeItems}}" wx:key="value" title="{{ item.name }}" clickable data-name="{{ item.value }}" bind:click="typeClick">
  31. <van-radio slot="right-icon" name="{{ item.value }}" />
  32. </van-cell>
  33. </van-cell-group>
  34. </van-radio-group>
  35. <van-radio-group wx:if="{{type == 0}}" value="{{ logisticsStatus }}" bind:change="logisticsStatusChange">
  36. <van-cell-group title="选择货物状态">
  37. <van-cell wx:for="{{logisticsStatusItems}}" wx:key="value" title="{{ item.name }}" clickable data-name="{{ item.value }}" bind:click="logisticsStatusClick">
  38. <van-radio slot="right-icon" name="{{ item.value }}" />
  39. </van-cell>
  40. </van-cell-group>
  41. </van-radio-group>
  42. <van-radio-group value="{{ reason }}" bind:change="reasonChange">
  43. <van-cell-group title="售后原因">
  44. <van-cell wx:for="{{reasons}}" wx:key="value" title="{{ item }}" clickable data-name="{{ item }}" bind:click="reasonClick">
  45. <van-radio slot="right-icon" name="{{ item }}" />
  46. </van-cell>
  47. </van-cell-group>
  48. </van-radio-group>
  49. <van-field
  50. wx:if="{{type != 2}}"
  51. label="退款金额"
  52. model:value="{{ amount }}"
  53. placeholder="请输入申请退款金额"
  54. type="digit"
  55. input-align="right"
  56. clearable
  57. />
  58. <van-cell-group title="售后说明">
  59. <van-field
  60. model:value="{{ remark }}"
  61. placeholder="请输入退款说明"
  62. type="textarea"
  63. autosize="{{ autosize }}"
  64. />
  65. </van-cell-group>
  66. <view style="margin-top:16rpx;padding-left:32rpx;">
  67. <van-uploader
  68. accept="image"
  69. multiple
  70. upload-text="上传图片"
  71. image-fit="aspectFill"
  72. file-list="{{ picsList }}"
  73. bind:after-read="afterPicRead"
  74. bind:delete="afterPicDel"
  75. />
  76. </view>
  77. <view>
  78. <button wx:if="{{refundApplyDetail && refundApplyDetail.baseInfo.status == 0}}" type="warn" bindtap='refundApplyCancel'>撤回本次申请</button>
  79. <button wx:if="{{refundApplyDetail && refundApplyDetail.baseInfo.status == 3}}" type="warn" disabled>等待处理</button>
  80. <button wx:if="{{refundApplyDetail && refundApplyDetail.baseInfo.status == 4}}" type="primary" disabled>处理完毕</button>
  81. <button wx:else type="warn" formType="submit">立即申请售后</button>
  82. </view>
  83. </view>
  84. </form>
  85. </view>