This commit is contained in:
pengxiaolong
2025-05-13 16:03:28 +08:00
parent c45c7c4de1
commit 37da6765b8
15 changed files with 281 additions and 242 deletions

View File

@@ -35,7 +35,7 @@ const _sfc_main = {
selectedIconPath: "../../static/Messageclick.png",
text: "消息",
// text: '社区',
pagePath: ""
pagePath: "../../pages/Message/Message"
},
{
iconPath: "../../static/Mine.png",
@@ -50,9 +50,9 @@ const _sfc_main = {
});
common_vendor.index.getSystemInfo({
success: function(res) {
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:89", "机型", res.deviceType);
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:85", "机型", res.deviceType);
if (res.safeArea.top > 40) {
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:91", "苹果的底部栏大小", res.safeArea.top);
common_vendor.index.__f__("log", "at components/tabBar/tabBar.vue:87", "苹果的底部栏大小", res.safeArea.top);
}
}
});
@@ -68,6 +68,13 @@ const _sfc_main = {
const disabledScroll = () => {
return false;
};
function handlePush(item, index) {
if (item.pagePath) {
common_vendor.index.switchTab({
url: item.pagePath
});
}
}
return (_ctx, _cache) => {
return {
a: common_vendor.f(common_vendor.unref(tabList), (item, index, i0) => {
@@ -76,7 +83,7 @@ const _sfc_main = {
b: common_vendor.t(item.text),
c: __props.tabIndex == index ? "#1DD2F9" : "#A7A3A3",
d: common_vendor.n("list-item flex flex-column flex-middle " + item.middleClass),
e: common_vendor.o(($event) => _ctx.handlePush(item, index), index),
e: common_vendor.o(($event) => handlePush(item), index),
f: index
};
}),