Fix:5805 【商城小程序】【商户入驻-入驻申请须知】用户未勾选“我已仔细阅读并同意”时,点击弹窗空白区域即可关闭弹窗,不符合逻辑

This commit is contained in:
linxi
2026-08-20 10:39:11 +08:00
parent ae72fc0a8f
commit 41d99e95f9
5 changed files with 90 additions and 10 deletions
+18 -2
View File
@@ -417,7 +417,7 @@
:show="show" :show="show"
mode="center" mode="center"
round="10" round="10"
@close="show=false" @close="handlePopupClose"
> >
<view class="popup-body"> <view class="popup-body">
<view class="tc bold"> <view class="tc bold">
@@ -440,7 +440,6 @@
<u-button <u-button
type="error" type="error"
text="确定" text="确定"
:disabled="!isAgree"
@click="savePopup" @click="savePopup"
/> />
</view> </view>
@@ -583,6 +582,23 @@ export default {
this.isAgree = e.detail.value.includes('yes') this.isAgree = e.detail.value.includes('yes')
}, },
savePopup() { savePopup() {
if (!this.isAgree) {
uni.showToast({
title: '请先阅读并同意入驻申请须知',
icon: 'none'
})
return
}
this.show = false
},
handlePopupClose() {
if (!this.isAgree) {
uni.showToast({
title: '请先阅读并同意入驻申请须知',
icon: 'none'
})
return
}
this.show = false this.show = false
}, },
stringToMapArr(str, split = ',') { stringToMapArr(str, split = ',') {
+18 -2
View File
@@ -440,7 +440,7 @@
:show="show" :show="show"
mode="center" mode="center"
round="10" round="10"
@close="show=false" @close="handlePopupClose"
> >
<view class="popup-body"> <view class="popup-body">
<view class="tc bold">入驻申请须知</view> <view class="tc bold">入驻申请须知</view>
@@ -458,7 +458,6 @@
<u-button <u-button
type="error" type="error"
text="确定" text="确定"
:disabled="!isAgree"
@click="handleAgree" @click="handleAgree"
/> />
</view> </view>
@@ -671,6 +670,23 @@ export default {
}, },
methods: { methods: {
handleAgree(){ handleAgree(){
if (!this.isAgree) {
uni.showToast({
title: '请先阅读并同意入驻申请须知',
icon: 'none'
})
return
}
this.show = false
},
handlePopupClose() {
if (!this.isAgree) {
uni.showToast({
title: '请先阅读并同意入驻申请须知',
icon: 'none'
})
return
}
this.show = false this.show = false
}, },
timeRange(e) { timeRange(e) {
+18 -2
View File
@@ -546,7 +546,7 @@
@cancel="changeRemove(false)" @cancel="changeRemove(false)"
@confirm="onRemove" @confirm="onRemove"
/> />
<u-popup :show="show" mode="center" round="10" @close="show=false"> <u-popup :show="show" mode="center" round="10" @close="handlePopupClose">
<view class="popup-body"> <view class="popup-body">
<view class="tc bold">入驻申请须知</view> <view class="tc bold">入驻申请须知</view>
<view class="content"> <view class="content">
@@ -563,7 +563,6 @@
<u-button <u-button
type="error" type="error"
text="确定" text="确定"
:disabled="!isAgree"
@click="handlAgree" @click="handlAgree"
/> />
</view> </view>
@@ -866,6 +865,23 @@ export default {
}, },
methods: { methods: {
handlAgree() { handlAgree() {
if (!this.isAgree) {
uni.showToast({
title: '请先阅读并同意入驻申请须知',
icon: 'none'
})
return
}
this.show = false
},
handlePopupClose() {
if (!this.isAgree) {
uni.showToast({
title: '请先阅读并同意入驻申请须知',
icon: 'none'
})
return
}
this.show = false this.show = false
}, },
timeRange(e) { timeRange(e) {
+18 -2
View File
@@ -344,7 +344,7 @@
{{ '提交审核' }} {{ '提交审核' }}
</view> </view>
</view> </view>
<u-popup :show="show" mode="center" round="10" @close="show=false" <u-popup :show="show" mode="center" round="10" @close="handlePopupClose"
> >
<view class="popup-body"> <view class="popup-body">
<view class="tc bold">入驻申请须知</view> <view class="tc bold">入驻申请须知</view>
@@ -362,7 +362,6 @@
<u-button <u-button
type="error" type="error"
text="确定" text="确定"
:disabled="!isAgree"
@click="save" @click="save"
/> />
</view> </view>
@@ -493,6 +492,23 @@ export default {
this.isAgree = e.detail.value.includes('yes') this.isAgree = e.detail.value.includes('yes')
}, },
save() { save() {
if (!this.isAgree) {
uni.showToast({
title: '请先阅读并同意入驻申请须知',
icon: 'none'
})
return
}
this.show = false
},
handlePopupClose() {
if (!this.isAgree) {
uni.showToast({
title: '请先阅读并同意入驻申请须知',
icon: 'none'
})
return
}
this.show = false this.show = false
}, },
/** /**
+18 -2
View File
@@ -241,7 +241,7 @@
@cancel="changeRemove(false)" @cancel="changeRemove(false)"
@confirm="onRemove" @confirm="onRemove"
/> />
<u-popup :show="show" mode="center" round="10" @close="show=false"> <u-popup :show="show" mode="center" round="10" @close="handlePopupClose">
<view class="popup-body"> <view class="popup-body">
<view class="tc bold">入驻申请须知</view> <view class="tc bold">入驻申请须知</view>
<view class="content"> <view class="content">
@@ -258,7 +258,6 @@
<u-button <u-button
type="error" type="error"
text="确定" text="确定"
:disabled="!isAgree"
@click="save" @click="save"
/> />
</view> </view>
@@ -541,6 +540,23 @@ export default {
this.isAgree = event.detail.value.length > 0 this.isAgree = event.detail.value.length > 0
}, },
save() { save() {
if (!this.isAgree) {
uni.showToast({
title: '请先阅读并同意入驻申请须知',
icon: 'none'
})
return
}
this.show = false
},
handlePopupClose() {
if (!this.isAgree) {
uni.showToast({
title: '请先阅读并同意入驻申请须知',
icon: 'none'
})
return
}
this.show = false this.show = false
} }
} }