|
@@ -139,7 +139,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="modal-footer">
|
|
<view class="modal-footer">
|
|
|
<button class="modal-btn cancel" @click="closeRefundModal">取消</button>
|
|
<button class="modal-btn cancel" @click="closeRefundModal">取消</button>
|
|
|
- <button class="modal-btn confirm" @click="confirmRefund" :disabled="!refundReason.trim()">确认</button>
|
|
|
|
|
|
|
+ <button class="modal-btn confirm" @click="confirmRefund">确认</button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -326,12 +326,10 @@ const closeRefundModal = () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const confirmRefund = async () => {
|
|
const confirmRefund = async () => {
|
|
|
- if (!refundReason.value.trim()) return
|
|
|
|
|
-
|
|
|
|
|
try {
|
|
try {
|
|
|
const res = await applyRefund({
|
|
const res = await applyRefund({
|
|
|
userId: refundUser.value.userId,
|
|
userId: refundUser.value.userId,
|
|
|
- reason: refundReason.value.trim()
|
|
|
|
|
|
|
+ reason: (refundReason.value || '').trim()
|
|
|
})
|
|
})
|
|
|
if (res && res.code === 200) {
|
|
if (res && res.code === 200) {
|
|
|
closeRefundModal()
|
|
closeRefundModal()
|