Fix:3150 【商城小程序】特色店铺、采购批发商入驻流程未改变为先弹出入驻须知再填写资料
This commit is contained in:
@@ -306,7 +306,7 @@ export default {
|
|||||||
address: {},
|
address: {},
|
||||||
qualificationArr: [],
|
qualificationArr: [],
|
||||||
isAgree: false,
|
isAgree: false,
|
||||||
show: false,
|
show: true,
|
||||||
notice: '',
|
notice: '',
|
||||||
showRemove: false,
|
showRemove: false,
|
||||||
applyType: null,
|
applyType: null,
|
||||||
@@ -436,9 +436,32 @@ export default {
|
|||||||
this.form.areaId = values.district.id
|
this.form.areaId = values.district.id
|
||||||
},
|
},
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
|
if(!this.isAgree) {
|
||||||
|
this.show = true
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$refs.wholesalerForm.validate().then(res => {
|
this.$refs.wholesalerForm.validate().then(res => {
|
||||||
// 校验通过
|
// 校验通过
|
||||||
this.show = true
|
saveWholesaler(this.form).then(res => {
|
||||||
|
if (res.status === 200) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '您的入驻申请已提交成功,请耐心等待审核',
|
||||||
|
icon: 'none',
|
||||||
|
success: () => {
|
||||||
|
this.initInfo()
|
||||||
|
this.show = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}).catch(err => {
|
||||||
|
uni.showToast({
|
||||||
|
title: err.msg,
|
||||||
|
icon: 'none',
|
||||||
|
success: () => {
|
||||||
|
this.show = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
}).catch(errors => {
|
}).catch(errors => {
|
||||||
// 校验失败
|
// 校验失败
|
||||||
console.log(errors)
|
console.log(errors)
|
||||||
@@ -464,27 +487,8 @@ export default {
|
|||||||
this.isAgree = event.detail.value.length > 0
|
this.isAgree = event.detail.value.length > 0
|
||||||
},
|
},
|
||||||
save() {
|
save() {
|
||||||
saveWholesaler(this.form).then(res => {
|
|
||||||
if (res.status === 200) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '您的入驻申请已提交成功,请耐心等待审核',
|
|
||||||
icon: 'none',
|
|
||||||
success: () => {
|
|
||||||
this.initInfo()
|
|
||||||
this.show = false
|
this.show = false
|
||||||
}
|
}
|
||||||
})
|
|
||||||
}
|
|
||||||
}).catch(err => {
|
|
||||||
uni.showToast({
|
|
||||||
title: err.msg,
|
|
||||||
icon: 'none',
|
|
||||||
success: () => {
|
|
||||||
this.show = false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user