Fix:3304 【商城小程序】特色店铺提交入驻,填写完资料提交后仍然出现入驻须知

This commit is contained in:
modendeveloper
2025-03-01 17:02:53 +08:00
parent 2df4d6f286
commit f8e83800bb
+7 -3
View File
@@ -395,7 +395,7 @@
type="error" type="error"
text="确定" text="确定"
:disabled="!isAgree" :disabled="!isAgree"
@click="save" @click="handleAgree"
/> />
</view> </view>
</u-popup> </u-popup>
@@ -553,7 +553,7 @@ export default {
}, },
onLoad(options) { onLoad(options) {
this.partnerId = options.partnerId this.partnerId = options.partnerId
const local_form = uni.getStorageSync('merchantApplyHotel' + '_form') const local_form = uni.getStorageSync('merchantApplyHotel' + '_form') || {}
this.quaPics = uni.getStorageSync('merchantApplyHotel' + '_quaPics') || [] this.quaPics = uni.getStorageSync('merchantApplyHotel' + '_quaPics') || []
if(!local_form.serviceTime) { if(!local_form.serviceTime) {
local_form.serviceTime = '00:00' local_form.serviceTime = '00:00'
@@ -589,6 +589,9 @@ export default {
this.$refs.shopForm.setRules(this.rules) this.$refs.shopForm.setRules(this.rules)
}, },
methods: { methods: {
handleAgree(){
this.show = false
},
timeRange(e) { timeRange(e) {
this.form.serviceTime = e[0] this.form.serviceTime = e[0]
this.form.serviceEndTime = e[1] this.form.serviceEndTime = e[1]
@@ -805,7 +808,8 @@ export default {
} }
this.$refs.shopForm.validate().then(res => { this.$refs.shopForm.validate().then(res => {
// 校验通过 // 校验通过
this.show = true // this.show = true
this.save()
}).catch(errors => { }).catch(errors => {
// 校验失败 // 校验失败
console.log(errors) console.log(errors)