Commit 8f213def by 潘琦

生育全程签约乌当和张家港功能BUG修复及功能变更;

parent 6cdabcc7
......@@ -1241,7 +1241,7 @@ export default {
createSignZJG(params).then(res => {
this.btnDisabled = false
this.$Indicator.close()
if (res.data.code === 200 && res.data.value) {
if (res.code === 200 && res.value) {
if (this.pageType === 0) {
this.$toast({
message: '审核周期约三天,请您耐心等待!',
......@@ -1263,12 +1263,18 @@ export default {
path: '/home'
})
}
} else {
} else if (res.data.code !== 200) {
this.$toast({
message: res.data.message,
position: 'center',
duration: 3000
})
} else {
this.$toast({
message: res.message,
position: 'center',
duration: 3000
})
}
}).catch((error) => {
this.btnDisabled = false
......
......@@ -776,6 +776,22 @@ export default {
this.tab1Form.state = data.bs[0].state
}
}
// 0=待审核 1=审核通过 2=审核不通过 3=审核已取消
if (data.state === '1') { // 审核通过跳转至首页
this.$router.push({
path: '/home'
})
} else if (data.state === '0') {
this.$toast({
message: '审核周期约三天,请您耐心等待!',
position: 'center',
duration: 3000
})
setTimeout(function () {
wx.closeWindow()
}, 2500)
}
}).catch((error) => {
this.$Indicator.close()
this.$toast({
......@@ -1116,17 +1132,36 @@ export default {
this.btnDisabled = false
this.$Indicator.close()
if (res.code === 200 && res.value) {
if (this.pageType === 0) {
this.$toast({
message: '审核周期约三天,请您耐心等待!',
position: 'center',
duration: 3000
})
if (this.signState === '2' || this.signState === '') { // 签约驳回、第一次签约
setTimeout(function () {
wx.closeWindow()
}, 2500)
}
} else if (this.pageType === 1) {
this.$toast({
message: '保存成功!',
position: 'center',
duration: 3000
})
this.$router.push({
path: '/home'
})
}
} else if (res.data.code !== 200) {
this.$toast({
message: '签约成功!',
message: res.data.message,
position: 'center',
duration: 3000
})
this.$router.push({
path: '/home'
})
} else {
this.$toast({
message: '保存失败',
message: res.message,
position: 'center',
duration: 3000
})
......
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