入驻流程优化

This commit is contained in:
丁杰 2026-06-09 13:54:44 +08:00
parent b542e85624
commit 5578a25653
3 changed files with 25 additions and 15 deletions

View File

@ -634,7 +634,17 @@ export default {
const idType = this.userInfo.id_type; const idType = this.userInfo.id_type;
const credentialsState = this.userInfo.credentials_state; const credentialsState = this.userInfo.credentials_state;
if (idType === 0 && credentialsState === 0) { if (idType < 0 && credentialsState === 0) {
// +
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=2'
});
} else if (idType < 0 && credentialsState === 1) {
// +
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=1'
});
} else if (idType === 0 && credentialsState === 0) {
// //
uni.navigateTo({ uni.navigateTo({
url: '/pages/ruzhu/ruzhu' url: '/pages/ruzhu/ruzhu'
@ -654,11 +664,6 @@ export default {
uni.navigateTo({ uni.navigateTo({
url: '/pages/shop/qualification_sj_change' url: '/pages/shop/qualification_sj_change'
}); });
} else if (idType < 0 && credentialsState === 1) {
// +
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=1'
});
} }
}, },

View File

@ -923,12 +923,17 @@ export default {
toruzhu() { toruzhu() {
const idType = this.userInfo.id_type; const idType = this.userInfo.id_type;
const credentialsState = this.userInfo.credentials_state; const credentialsState = this.userInfo.credentials_state;
if (idType < 0 && credentialsState <= 1) { if (idType < 0 && credentialsState === 0) {
// // +
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=2'
});
} else if (idType < 0 && credentialsState === 1) {
// +
uni.navigateTo({ uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=1' url: '/pages/ruzhu/ruzhu?type=1'
}); });
} else if (idType <= 0 && credentialsState === 0) { } else if (idType === 0 && credentialsState === 0) {
// //
uni.navigateTo({ uni.navigateTo({
url: '/pages/ruzhu/ruzhu' url: '/pages/ruzhu/ruzhu'
@ -948,11 +953,6 @@ export default {
uni.navigateTo({ uni.navigateTo({
url: '/pages/shop/qualification_sj_change' url: '/pages/shop/qualification_sj_change'
}); });
} else if (idType < 0 && credentialsState === 1) {
// +
uni.navigateTo({
url: '/pages/ruzhu/ruzhu?type=1'
});
} }
}, },
closeSetupModal() { closeSetupModal() {

View File

@ -124,7 +124,6 @@ export default {
textData: {}, textData: {},
loading: false, loading: false,
error: null, error: null,
navTitle: '商家入驻', //
qualificationData: null, // qualificationData: null, //
storeInfoData: null, // storeInfoData: null, //
successData: {}, // successData: {}, //
@ -143,6 +142,9 @@ export default {
if (this.currentStep === 3) return 2; if (this.currentStep === 3) return 2;
if (this.currentStep === 4) return 2; if (this.currentStep === 4) return 2;
return 0; return 0;
},
navTitle() {
return this.currentStep === 3 ? '资质认证' : '商家入驻';
} }
}, },
async onLoad(options) { async onLoad(options) {
@ -154,6 +156,9 @@ export default {
if (options.type == 1) { if (options.type == 1) {
this.currentStep = 4 this.currentStep = 4
} }
if (options.type == 2) {
this.currentStep = 2
}
// step // step
if (options.step) { if (options.step) {