Fix:4462 【旅居商城小程序】订单-申请退款页面,退款原因修改为必填项
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 其他原因输入框 -->
|
||||
<view class="other-reason-section v12-mt-3">
|
||||
<view class="other-reason-section v12-mt-3" v-if="selectedReason === '其他'">
|
||||
<view class="other-reason-title">其他个人原因</view>
|
||||
<textarea
|
||||
class="reason-input"
|
||||
@@ -102,7 +102,21 @@ export default {
|
||||
const refundData = {
|
||||
orderId: this.key,
|
||||
refundReasonWap: this.selectedReason,
|
||||
refundReasonWapExplain: this.otherReason
|
||||
refundReasonWapExplain: this.selectedReason === '其他' ? this.otherReason : ''
|
||||
}
|
||||
if(!this.selectedReason) {
|
||||
uni.showToast({
|
||||
title: '请选择退款原因',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(this.selectedReason === '其他' && !this.otherReason) {
|
||||
uni.showToast({
|
||||
title: '请输入其他退款原因',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
|
||||
Reference in New Issue
Block a user