Fix:4462 【旅居商城小程序】订单-申请退款页面,退款原因修改为必填项
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
</view>
|
</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>
|
<view class="other-reason-title">其他个人原因</view>
|
||||||
<textarea
|
<textarea
|
||||||
class="reason-input"
|
class="reason-input"
|
||||||
@@ -102,7 +102,21 @@ export default {
|
|||||||
const refundData = {
|
const refundData = {
|
||||||
orderId: this.key,
|
orderId: this.key,
|
||||||
refundReasonWap: this.selectedReason,
|
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({
|
uni.showLoading({
|
||||||
title: '加载中...',
|
title: '加载中...',
|
||||||
|
|||||||
Reference in New Issue
Block a user