认证步骤逻辑优化
This commit is contained in:
parent
6d6c279731
commit
a800372ad2
|
|
@ -631,14 +631,34 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
navigateToQualification() {
|
navigateToQualification() {
|
||||||
if (this.userInfo.credentials_state == '1') {
|
const state = this.userInfo.credentials_state;
|
||||||
|
|
||||||
|
if (state === 1) {
|
||||||
|
// === 1. 审核中 ===
|
||||||
|
// 跳转到最新确认的专属进度/客服二维码页面
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/ruzhu/ruzhu?type=1'
|
url: '/pages/ruzhu/submitres'
|
||||||
})
|
});
|
||||||
|
} else if (state === 0) {
|
||||||
|
// === 2. 待完善 / 被驳回 ===
|
||||||
|
// 同步首页逻辑:判断是老手还是纯新手
|
||||||
|
if (this.userInfo.id_type !== 0) {
|
||||||
|
// 已经开启过入驻,直接空降到最后一步(门店信息)
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/ruzhu/ruzhu?step=3'
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
|
// 完全没入驻过的纯新手,老老实实从第一步开始
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/ruzhu/ruzhu'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// === 3. 已认证 ===
|
||||||
|
// 跳转到资质信息的查看/修改页面
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shop/qualification_sj_change'
|
url: '/pages/shop/qualification_sj_change'
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,12 @@
|
||||||
if (options.type == 1) {
|
if (options.type == 1) {
|
||||||
this.currentStep = 4
|
this.currentStep = 4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 如果首页传了 step 参数,就直接空降到对应的流程
|
||||||
|
if (options.step) {
|
||||||
|
this.currentStep = Number(options.step);
|
||||||
|
}
|
||||||
|
|
||||||
this.identity = 2;
|
this.identity = 2;
|
||||||
await this.getUserInfoSync()
|
await this.getUserInfoSync()
|
||||||
// 确保子组件也能访问到 identity
|
// 确保子组件也能访问到 identity
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue