Commit bd8ef7ee by 潘琦

乌当区生育全程签约现住址判断是否选择完整;

parent 7061c9d4
......@@ -786,7 +786,7 @@ export default {
console.log('cancel')
})
} else {
if (data.state === '1' && (this.pageType === 0 || this.pageType === 1)) { // 审核通过跳转至首页
if (data.state === '1' && (this.pageType === 0)) { // 审核通过跳转至首页
this.$router.push({
path: '/home'
})
......@@ -878,7 +878,11 @@ export default {
if (this.BaseForm.address === '') {
this.BaseValidate.addressState = false
} else {
this.BaseValidate.addressState = true
if (this.addressForm.ProvinceCode !== '' && this.addressForm.CityCode !== '' && this.addressForm.AreaCode !== '' && this.addressForm.StreetCode !== '' && this.addressForm.VillagesCode !== '') {
this.BaseValidate.addressState = true
} else {
this.BaseValidate.addressState = false
}
}
},
BaseValidateStreet () { // 详细地址
......@@ -1189,14 +1193,25 @@ export default {
}, 2500)
}
} else if (this.pageType === 1) {
this.$toast({
message: '审核周期约三天,请您耐心等待!',
position: 'center',
duration: 3000
})
// this.$router.push({
// path: '/home'
// })
if (parseInt(this.signState) === 1) { // 户主信息审核通过,儿童签约则直接跳转至首页
this.$toast({
message: '签约成功!',
position: 'center',
duration: 3000
})
this.$router.push({
path: '/home'
})
} else { // 否则需要提示需要审核
this.$toast({
message: '审核周期约三天,请您耐心等待!',
position: 'center',
duration: 3000
})
setTimeout(function () {
wx.closeWindow()
}, 2500)
}
}
} else if (res.data.code !== 200) {
this.$toast({
......@@ -1232,8 +1247,9 @@ export default {
position: 'center',
duration: 3000
})
let that = this
setTimeout(function () {
this.$router.push({
that.$router.push({
path: '/home'
})
}, 2500)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment