修复+优化

This commit is contained in:
丁杰 2026-06-09 10:38:49 +08:00
parent 2fcfba42ea
commit 128ebf0124
2 changed files with 44 additions and 30 deletions

View File

@ -252,12 +252,14 @@ export default {
url: "https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/4b558456-2e38-4185-8713-d1f0e6645820.png", url: "https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/4b558456-2e38-4185-8713-d1f0e6645820.png",
path: "/pages/artisan/profile", path: "/pages/artisan/profile",
go_id_type: 1, go_id_type: 1,
directAccess: true,
}, },
{ {
title: "财务管理", title: "财务管理",
url: "https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/edafae37-8258-4e1c-9dcc-019484117047.png", url: "https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/edafae37-8258-4e1c-9dcc-019484117047.png",
path: "/pages/wallet/wallet", path: "/pages/wallet/wallet",
go_id_type: 1, go_id_type: 1,
directAccess: true,
}, },
], ],
}, },
@ -834,27 +836,21 @@ export default {
}); });
}, },
async handleFunction(item) { async handleFunction(item) {
// 退 // 1.
if (this.isLogin && item.type === "setting") {
uni.navigateTo({
url: `/pages/settings/index`,
});
return;
}
// 访
if (!this.checkAccess(item)) { if (!this.checkAccess(item)) {
return; return;
} }
// // 2.
if (!this.isLogin) { if (!this.isLogin) {
uni.navigateTo({ uni.showToast({
url: '/pages/blogPopup/blogPopup' title: `您暂未登录,无法使用${item.title || item.text || ''}`,
icon: "none",
}); });
return; return;
} }
// 3.
if (item.path == "/pages/ruzhu/ruzhu") { if (item.path == "/pages/ruzhu/ruzhu") {
request.post("/sj/userSjAuth/details", { request.post("/sj/userSjAuth/details", {
type: 1 type: 1
@ -869,29 +865,47 @@ export default {
}); });
} }
}); });
return;
}
return; // 4. (go_id_type == 1)
} if (item.go_id_type == 1) {
if (item.type) { // 4a.
uni.navigateTo({ if (!this.isSettled) {
url: `${item.path}?type=${item.type}`,
});
} else {
if (item.go_id_type == 1 && (!this.isCertified || !this.hasBusinessTime || !this.hasServiceSkill)) {
this.showSetupModal = true;
return;
}
if (!this.isLogin && item.go_id_type) {
uni.showToast({ uni.showToast({
title: `您暂未登录,无法使用${item.title}`, title: `您暂未入驻,无法使用${item.title || item.text || ''}`,
icon: "none", icon: "none",
}); });
return; return;
} }
uni.navigateTo({
url: `${item.path}`, // 4b.
}); if (item.directAccess) {
uni.navigateTo({ url: item.path });
return;
} }
// 4c.
if (!this.isCertified || !this.hasBusinessTime || !this.hasServiceSkill) {
this.showSetupModal = true;
return;
}
// 4d.
uni.navigateTo({ url: item.path });
return;
}
// 5. type
if (item.type) {
uni.navigateTo({
url: `${item.path}?type=${item.type}`,
});
return;
}
// 6.
uni.navigateTo({ url: item.path });
}, },
goToProfile() { goToProfile() {
// 访 // 访

View File

@ -582,13 +582,13 @@ export default {
/* #endif */ /* #endif */
left: 0; left: 0;
right: 0; right: 0;
background: #fafafa; background: white;
z-index: 99; z-index: 99;
} }
.status-tabs { .status-tabs {
height: 94rpx; height: 94rpx;
background-color: #fafafa; background-color: white;
white-space: nowrap; white-space: nowrap;
} }
@ -624,7 +624,7 @@ export default {
.status-tabs2 { .status-tabs2 {
height: 56rpx; height: 56rpx;
background-color: #fafafa; background-color: white;
white-space: nowrap; white-space: nowrap;
padding-bottom: 30rpx; padding-bottom: 30rpx;
padding-top: 10rpx; padding-top: 10rpx;