入驻流程优化
This commit is contained in:
parent
b542e85624
commit
5578a25653
|
|
@ -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'
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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() {
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue