index.wxml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <nav type="back" background-color="{{activeColor}}" title="申请退款" frontColor="#ffffff" />
  2. <view class="page-continer text">
  3. <view class="box page-section page-section-spacing">
  4. <view class="order-number">
  5. <view class="number">订单号:{{order.orderNum}}</view>
  6. </view>
  7. <view class="order-txt" catchtap="orderpay">
  8. <block wx:if="{{order.room}}">
  9. <image class="order-image" src="{{order.room.images[0]}}" />
  10. <view class="order-text">
  11. <view class="order-name">{{order.room.name}}</view>
  12. <view class="order-price" style="color: {{activeColor}};">¥{{order.price}}</view>
  13. <view class="order-time">{{order.startTime}} - {{order.endTime}}</view>
  14. </view>
  15. </block>
  16. <block wx:else>
  17. <image class="order-image" src="{{order.image}}" />
  18. <view class="order-text">
  19. <view class="order-name">{{order.name}}</view>
  20. <view class="order-price">¥{{order.price}}</view>
  21. <view class="order-time">{{order.shopStore.workingTime}}</view>
  22. </view>
  23. </block>
  24. </view>
  25. </view>
  26. <view class="page-section page-section-spacing flex-justify-between" bind:tap="showPopup">
  27. <view class="">
  28. 退款原因
  29. </view>
  30. <view class="" >
  31. <block wx:if="{{causeVal != ''}}">{{causeVal}}</block>
  32. <block wx:else><text class="grey">请选择</text></block>
  33. <van-icon name="arrow"></van-icon>
  34. </view>
  35. </view>
  36. <view class="page-section page-section-spacing flex-justify-between">
  37. <view class="">
  38. 退款金额
  39. </view>
  40. <view class="red" style="color: {{activeColor}};">
  41. ¥{{order.price}}
  42. </view>
  43. </view>
  44. <view class="page-section page-section-spacing ">
  45. <view class="">
  46. 退款说明
  47. </view>
  48. <textarea model:value="{{explain}}" border="{{true}}" class="explain" rows="12" autosize placeholder="补充说明,有助于商家更好的处理问题"></textarea>
  49. </view>
  50. </view>
  51. <view class="footer">
  52. <van-button bind:tap="submit" color="{{activeColor}}" block size="large"><text class="submit-text">提交申请</text></van-button>
  53. </view>
  54. <van-popup show="{{ show }}" bind:close="onClose" position="bottom" custom-style="height: 600rpx;">
  55. <view class="popup-cause">
  56. <view class="title text-center">退款原因</view>
  57. <view class="cause-list">
  58. <radio-group bindchange="causeChange">
  59. <view class="cause" wx:for="{{causes}}" wx:key="index">
  60. <text class="cause-text">{{item.label}}</text>
  61. <radio color="{{activeColor}}" value="{{item.value}}" checked="{{item.checked}}"></radio>
  62. </view>
  63. </radio-group>
  64. </view>
  65. <van-button size="large" fixed color="{{activeColor}}" bind:tap="onClose" >确定</van-button>
  66. </view>
  67. </van-popup>