上传
This commit is contained in:
+1
-95
@@ -1,96 +1,2 @@
|
||||
"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);
|
||||
"use strict";const e=require("../../common/vendor.js"),s=require("../../utils/index.js"),i=require("../../utils/auth.js");if(!Array){const o=e.resolveComponent("u-transition"),a=e.resolveComponent("u-tabbar");(o+a)()}const u=()=>"../../uni_modules/uview-pro/components/u-transition/u-transition.js",c=()=>"../../uni_modules/uview-pro/components/u-tabbar/u-tabbar.js";Math||(l+u+_+c)();const l=()=>"./board/index.js",_=()=>"./about/index.js",d={__name:"index",setup(o){e.onShow(()=>{i.isLoggedIn()||(s.toast.error("请先登录"),setTimeout(()=>{s.router.reLaunch("/pages/login/index")},1500))}),e.index.__f__("log","at pages/index/index.vue:30",i.isLoggedIn(),"是否登录");const a=e.ref([{iconPath:"home",selectedIconPath:"home-fill",text:"首页",isDot:!1,customIcon:!1},{iconPath:"account",selectedIconPath:"account-fill",text:"我的",isDot:!1,customIcon:!1}]),t=e.ref(0);return e.watch(t,n=>{switch(n){case 0:e.index.setNavigationBarTitle({title:"首页"});break;case 1:e.index.setNavigationBarTitle({title:"我的"});break}}),(n,m)=>e.e({a:t.value===0},t.value===0?{}:{},{b:e.p({show:t.value===0,name:"slide-right"}),c:t.value===1},t.value===1?{}:{},{d:e.p({show:t.value===1,name:"slide-right"}),e:e.o(r=>t.value=r,"ca"),f:e.p({hideTabBar:!1,"active-color":"var(--u-type-primary)","mid-button-size":"60",list:a.value,"mid-button":!1,modelValue:t.value})})}};wx.createPage(d);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map
|
||||
|
||||
Reference in New Issue
Block a user