完善页面
This commit is contained in:
110
utils/tools.js
110
utils/tools.js
@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user