认证步骤逻辑优化

This commit is contained in:
BAKEYi 2026-06-01 17:27:11 +08:00
parent 6d6c279731
commit a800372ad2
2 changed files with 36 additions and 10 deletions

View File

@ -631,14 +631,34 @@
},
navigateToQualification() {
if (this.userInfo.credentials_state == '1') {
const state = this.userInfo.credentials_state;
if (state === 1) {
// === 1. ===
// /
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 {
//
uni.navigateTo({
url: '/pages/ruzhu/ruzhu'
});
}
} else {
// === 3. ===
// /
uni.navigateTo({
url: '/pages/shop/qualification_sj_change'
})
});
}
},

View File

@ -141,6 +141,12 @@
if (options.type == 1) {
this.currentStep = 4
}
// step
if (options.step) {
this.currentStep = Number(options.step);
}
this.identity = 2;
await this.getUserInfoSync()
// 访 identity