97 lines
2.8 KiB
JavaScript
97 lines
2.8 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
if (!Array) {
|
|
const _easycom_u_transition2 = common_vendor.resolveComponent("u-transition");
|
|
const _easycom_u_tabbar2 = common_vendor.resolveComponent("u-tabbar");
|
|
(_easycom_u_transition2 + _easycom_u_tabbar2)();
|
|
}
|
|
const _easycom_u_transition = () => "../../uni_modules/uview-pro/components/u-transition/u-transition.js";
|
|
const _easycom_u_tabbar = () => "../../uni_modules/uview-pro/components/u-tabbar/u-tabbar.js";
|
|
if (!Math) {
|
|
(Board + _easycom_u_transition + FunModule + About + _easycom_u_tabbar)();
|
|
}
|
|
const Board = () => "./board/index.js";
|
|
const About = () => "./about/index.js";
|
|
const FunModule = () => "./fun/index.js";
|
|
const _sfc_main = {
|
|
__name: "index",
|
|
setup(__props) {
|
|
const list = common_vendor.ref([
|
|
{
|
|
iconPath: "home",
|
|
selectedIconPath: "home-fill",
|
|
text: "首页",
|
|
isDot: false,
|
|
customIcon: false
|
|
},
|
|
{
|
|
iconPath: "grid",
|
|
selectedIconPath: "grid-fill",
|
|
text: "功能",
|
|
midButton: true,
|
|
customIcon: false
|
|
},
|
|
{
|
|
iconPath: "account",
|
|
selectedIconPath: "account-fill",
|
|
text: "我的",
|
|
isDot: false,
|
|
customIcon: false
|
|
}
|
|
]);
|
|
const current = common_vendor.ref(0);
|
|
common_vendor.watch(current, (val) => {
|
|
switch (val) {
|
|
case 0:
|
|
common_vendor.index.setNavigationBarTitle({
|
|
title: "首页"
|
|
});
|
|
break;
|
|
case 1:
|
|
common_vendor.index.setNavigationBarTitle({
|
|
title: "功能"
|
|
});
|
|
break;
|
|
case 2:
|
|
common_vendor.index.setNavigationBarTitle({
|
|
title: "我的"
|
|
});
|
|
break;
|
|
}
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return common_vendor.e({
|
|
a: current.value === 0
|
|
}, current.value === 0 ? {} : {}, {
|
|
b: common_vendor.p({
|
|
show: current.value === 0,
|
|
name: "slide-right"
|
|
}),
|
|
c: current.value === 1
|
|
}, current.value === 1 ? {} : {}, {
|
|
d: common_vendor.p({
|
|
show: current.value === 1,
|
|
name: "slide-right"
|
|
}),
|
|
e: current.value === 2
|
|
}, current.value === 2 ? {} : {}, {
|
|
f: common_vendor.p({
|
|
show: current.value === 2,
|
|
name: "slide-right"
|
|
}),
|
|
g: common_vendor.o(($event) => current.value = $event, "a9"),
|
|
h: common_vendor.p({
|
|
hideTabBar: false,
|
|
["active-color"]: "var(--u-type-primary)",
|
|
["mid-button-size"]: "60",
|
|
list: list.value,
|
|
["mid-button"]: false,
|
|
modelValue: current.value
|
|
})
|
|
});
|
|
};
|
|
}
|
|
};
|
|
wx.createPage(_sfc_main);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|