完善页面

This commit is contained in:
wangxiaowei
2025-04-30 16:48:11 +08:00
parent f3990f76ef
commit 012c20271c
61 changed files with 13484 additions and 3407 deletions

View File

@ -326,59 +326,61 @@ export function copy(str) {
}
export function setTabbar() {
const config = store.getters.appConfig;
uni.setTabBarStyle({
color: config.navigation_setting.ust_color,
selectedColor: config.navigation_setting.st_color,
});
// #ifdef APP-PLUS
config.navigation_menu.forEach((item, index) => {
uni.downloadFile({
url: item.un_selected_icon,
success: (res) => {
uni.setTabBarItem({
index,
iconPath: res.tempFilePath,
});
},
});
uni.downloadFile({
url: item.un_selected_icon,
success: (res) => {
uni.setTabBarItem({
index,
iconPath: res.tempFilePath,
});
},
});
uni.downloadFile({
url: item.selected_icon,
success: (res) => {
uni.setTabBarItem({
index,
selectedIconPath: res.tempFilePath,
});
},
});
});
// #endif
// #ifndef APP-PLUS
config.navigation_menu.forEach((item, index) => {
uni.setTabBarItem({
index,
text: item.name,
iconPath: item.un_selected_icon,
selectedIconPath: item.selected_icon,
fail(res) {
console.log('setTabBarItem error=', res);
},
success(res) {
// console.log(res)
},
});
});
// #endif
uni.showTabBar();
// const config = store.getters.appConfig;
// uni.setTabBarStyle({
// color: config.navigation_setting.ust_color,
// selectedColor: config.navigation_setting.st_color,
// });
// // #ifdef APP-PLUS
// config.navigation_menu.forEach((item, index) => {
// uni.downloadFile({
// url: item.un_selected_icon,
// success: (res) => {
// uni.setTabBarItem({
// index,
// iconPath: res.tempFilePath,
// });
// },
// });
// uni.downloadFile({
// url: item.un_selected_icon,
// success: (res) => {
// uni.setTabBarItem({
// index,
// iconPath: res.tempFilePath,
// });
// },
// });
// uni.downloadFile({
// url: item.selected_icon,
// success: (res) => {
// uni.setTabBarItem({
// index,
// selectedIconPath: res.tempFilePath,
// });
// },
// });
// });
// // #endif
// // #ifndef APP-PLUS
// config.navigation_menu.forEach((item, index) => {
// uni.setTabBarItem({
// index,
// text: item.name,
// iconPath: item.un_selected_icon,
// selectedIconPath: item.selected_icon,
// fail(res) {
// console.log('setTabBarItem error=', res);
// },
// success(res) {
// // console.log(res)
// },
// });
// });
// // #endif
// // 隐藏整个tabbar
// uni.hideTabBar();
}
// 忽略登录和tabbar页面路径
@ -387,8 +389,6 @@ export const tabbarList = [
"pages/order/order",
"pages/shop_cart/shop_cart",
"pages/my/my",
"pages/recharge/recharge",
"bundle/pages/setting/setting",
];
// 登录注册相关
export const acountList = [