删除底部导航销冠,调整小程序前端架构

This commit is contained in:
zhonghua.li
2026-02-07 13:17:19 +08:00
parent 4e192fe9f9
commit 11cc4a7664
56 changed files with 6365 additions and 8590 deletions

View File

@@ -12,7 +12,6 @@ if (!Math) {
"./pages/team/team.js";
"./pages/furniture_reception/common_begin_reception.js";
"./pages/furniture_customer/furniture_customer.js";
"./pages/furniture_top_sales/furniture_top_sales.js";
"./uni_modules/uni-feedback/pages/opendb-feedback/opendb-feedback.js";
"./uni_modules/uni-id-pages/pages/userinfo/userinfo.js";
"./uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify.js";
@@ -109,7 +108,7 @@ const _sfc_main = {
}, 500);
},
onShow: function() {
common_vendor.index.__f__("log", "at App.vue:152", "App Show");
common_vendor.index.__f__("log", "at App.vue:149", "App Show");
try {
common_store.mutations.syncUserInfoFromStorage();
} catch (e) {
@@ -117,13 +116,52 @@ const _sfc_main = {
this.checkCurrentPageLogin();
},
onHide: function() {
common_vendor.index.__f__("log", "at App.vue:165", "App Hide");
common_vendor.index.__f__("log", "at App.vue:174", "App Hide");
this.stopTabBarMonitor();
if (this.urlProtectionInterval) {
clearInterval(this.urlProtectionInterval);
this.urlProtectionInterval = null;
}
},
onError: function(msg) {
common_vendor.index.__f__("error", "at App.vue:171", "[App Global Error]:", msg);
common_vendor.index.__f__("error", "at App.vue:186", "[App Global Error]:", msg);
},
methods: {
/**
* 完美的URL隐藏系统 - 专为uni-app H5设计
*/
setupPerfectUrlHiding() {
},
/**
* 初始化URL隐藏功能
*/
initializeUrlHiding() {
},
/**
* 隐藏当前页面的URL显示
*/
hideCurrentPageUrl(retryCount = 0) {
},
/**
* 设置页面切换监听器
*/
setupPageChangeListener() {
},
/**
* 处理URL变化在history模式下
*/
handleUrlChange() {
},
/**
* 设置浏览器导航监听器
*/
setupBrowserNavigationListener() {
},
/**
* 设置URL保护机制防止意外的URL变化
*/
setupUrlProtection() {
},
/**
* 设置全局路由拦截
*/
@@ -205,15 +243,15 @@ const _sfc_main = {
common_vendor.index.reLaunch({
url: loginPage,
success: () => {
common_vendor.index.__f__("log", "at App.vue:279", "跳转登录页成功");
common_vendor.index.__f__("log", "at App.vue:523", "跳转登录页成功");
},
fail: (err) => {
common_vendor.index.__f__("error", "at App.vue:282", "跳转登录页失败:", err);
common_vendor.index.__f__("error", "at App.vue:526", "跳转登录页失败:", err);
const loginPageWithoutSlash = loginPage.startsWith("/") ? loginPage.substring(1) : loginPage;
common_vendor.index.reLaunch({
url: loginPageWithoutSlash,
fail: (err2) => {
common_vendor.index.__f__("error", "at App.vue:288", "跳转登录页失败(重试):", err2);
common_vendor.index.__f__("error", "at App.vue:532", "跳转登录页失败(重试):", err2);
}
});
}
@@ -251,7 +289,7 @@ const _sfc_main = {
try {
const tokenData = common_vendor.index.getStorageSync("uni_id_token");
if (tokenData && tokenData.roles) {
common_vendor.index.__f__("log", "at App.vue:343", "[App] Setting global role info:", tokenData.roles);
common_vendor.index.__f__("log", "at App.vue:587", "[App] Setting global role info:", tokenData.roles);
this.globalData.roles = tokenData.roles;
this.globalData.roleName = tokenData.roleName || "";
try {
@@ -266,7 +304,7 @@ const _sfc_main = {
}
}
} catch (e) {
common_vendor.index.__f__("warn", "at App.vue:361", "[App] Failed to set global role info:", e);
common_vendor.index.__f__("warn", "at App.vue:605", "[App] Failed to set global role info:", e);
}
},
checkCurrentPageLogin() {