refund-confirm-popup.wxml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <t-popup
  2. placement="bottom"
  3. visible="{{visible}}"
  4. show-overlay="{{true}}"
  5. close-on-overlay-click="{{true}}"
  6. bind:visible-change="onPopupVisibleChange"
  7. >
  8. <view class="refund-confirm-popup">
  9. <view class="refund-confirm-popup__header">
  10. <view class="title">确认退款信息</view>
  11. <text class="refund-confirm-popup__close" catchtap="onClose">×</text>
  12. <view class="refund-confirm-popup__header-spacer" />
  13. </view>
  14. <view class="refund-confirm-popup__content">
  15. <view class="goods-card">
  16. <image class="goods-card__icon" src="{{goodsImage}}" mode="aspectFill" wx:if="{{goodsImage}}" />
  17. <view class="goods-card__icon goods-card__icon--placeholder" wx:else>
  18. <text class="placeholder-icon">📦</text>
  19. </view>
  20. <view class="goods-card__main">
  21. <view class="goods-card__name">{{goodsName}}</view>
  22. <view class="goods-card__meta">{{goodsMeta1}}</view>
  23. </view>
  24. <view class="goods-card__right">
  25. <view class="goods-card__price">¥{{goodsPrice || '0.00'}}</view>
  26. <view class="goods-card__count">{{goodsMeta2}}</view>
  27. </view>
  28. </view>
  29. <view class="form-row" wx:if="{{showReceiptStatus}}">
  30. <text class="label">商品状态</text>
  31. <view class="value select" bindtap="onOpenStatusPicker">
  32. {{statusLabel}}
  33. <t-icon name="chevron-right" class="arrow-icon" size="30rpx" color="#b0b0b0" />
  34. </view>
  35. </view>
  36. <view class="form-row" catchtap="onEditReason">
  37. <text class="label">退款原因</text>
  38. <view class="value link">
  39. {{refundReason || '请选择'}}
  40. <t-icon name="chevron-right" class="arrow-icon" size="30rpx" color="#b0b0b0" />
  41. </view>
  42. </view>
  43. <view class="divider"></view>
  44. <view class="form-row" catchtap="onEditAmount">
  45. <text class="label amount-title">退款金额</text>
  46. <view class="value link">
  47. <t-icon name="edit" class="edit-icon" size="28rpx" color="#b0b0b0" />
  48. 修改
  49. </view>
  50. </view>
  51. <view class="form-row">
  52. <text class="label">退回微信</text>
  53. <view class="value amount">¥{{refundAmount}}</view>
  54. </view>
  55. <view class="form-row" catchtap="onEditProof">
  56. <text class="label">上传描述和凭证<text style="color:red">*</text></text>
  57. <view class="value link red">
  58. {{proofImages.length ? '已上传' + proofImages.length + '张' : '上传有助处理退款'}}
  59. <t-icon name="chevron-right" class="arrow-icon" size="30rpx" color="#b0b0b0" />
  60. </view>
  61. </view>
  62. </view>
  63. <view class="refund-confirm-popup__footer">
  64. <view class="refund-amount-line"><text>退回微信¥</text><text class="wechat-price">{{refundAmount}}</text></view>
  65. <view class="submit-btn" bindtap="onSubmit">提交申请</view>
  66. </view>
  67. </view>
  68. </t-popup>
  69. <t-picker
  70. visible="{{statusPickerVisible}}"
  71. value="{{statusPickerValue}}"
  72. title=""
  73. use-popup="{{true}}"
  74. header="{{true}}"
  75. cancel-btn="取消"
  76. confirm-btn="确定"
  77. bind:change="onStatusPickerChange"
  78. bind:close="onStatusPickerClose"
  79. z-index="12000"
  80. style="--td-picker-z-index: 12000; --td-popup-z-index: 12000;"
  81. >
  82. <t-picker-item options="{{statusPickerOptions}}" />
  83. </t-picker>
  84. <t-popup
  85. placement="center"
  86. visible="{{amountEditorVisible}}"
  87. show-overlay="{{true}}"
  88. close-on-overlay-click="{{true}}"
  89. bind:visible-change="onAmountPopupVisibleChange"
  90. z-index="12000"
  91. style="--td-popup-z-index: 12000;"
  92. >
  93. <view class="amount-popup">
  94. <view class="amount-popup__header">
  95. <view class="title">请输入退款总金额</view>
  96. </view>
  97. <view class="amount-popup__body">
  98. <view class="hint">最高可退¥{{maxAmount}}元</view>
  99. <input class="amount-input" type="digit" value="{{amountInput}}" bindinput="onAmountInput" />
  100. <view class="actions">
  101. <view class="action-item">
  102. <t-button class="action-btn" block size="medium" variant="outline" theme="primary" catchtap="onAmountClose">取消</t-button>
  103. </view>
  104. <view class="action-item">
  105. <t-button class="action-btn confirm-btn" block size="medium" theme="primary" catchtap="onAmountConfirm">确定</t-button>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </t-popup>