Fix:5805 【商城小程序】【商户入驻-入驻申请须知】用户未勾选“我已仔细阅读并同意”时,点击弹窗空白区域即可关闭弹窗,不符合逻辑
This commit is contained in:
@@ -417,7 +417,7 @@
|
||||
:show="show"
|
||||
mode="center"
|
||||
round="10"
|
||||
@close="show=false"
|
||||
@close="handlePopupClose"
|
||||
>
|
||||
<view class="popup-body">
|
||||
<view class="tc bold">
|
||||
@@ -440,7 +440,6 @@
|
||||
<u-button
|
||||
type="error"
|
||||
text="确定"
|
||||
:disabled="!isAgree"
|
||||
@click="savePopup"
|
||||
/>
|
||||
</view>
|
||||
@@ -583,6 +582,23 @@ export default {
|
||||
this.isAgree = e.detail.value.includes('yes')
|
||||
},
|
||||
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
|
||||
},
|
||||
stringToMapArr(str, split = ',') {
|
||||
|
||||
Reference in New Issue
Block a user