|
|
@ -8,21 +8,20 @@ |
|
|
<script> |
|
|
<script> |
|
|
import fuiTabbar from "@/components/firstui/fui-tabbar/fui-tabbar.vue" |
|
|
import fuiTabbar from "@/components/firstui/fui-tabbar/fui-tabbar.vue" |
|
|
export default { |
|
|
export default { |
|
|
|
|
|
name: "AQTabber", |
|
|
components:{ |
|
|
components:{ |
|
|
fuiTabbar |
|
|
fuiTabbar |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
userType:'',//用户类型|1=教练,2=销售,3=学员 |
|
|
userType:'1',//用户类型|1=教练,2=销售,3=学员 |
|
|
current:'0', |
|
|
current:'0', |
|
|
tabBar: [] |
|
|
tabBar: [] |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
onShow(){ |
|
|
|
|
|
//设置缓存 |
|
|
created(){ |
|
|
uni.setStorageSync('userType',1) |
|
|
console.log(123) |
|
|
//获取缓存 |
|
|
|
|
|
this.userType = uni.getStorageSync('userType') |
|
|
|
|
|
this.init() |
|
|
this.init() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -34,26 +33,26 @@ |
|
|
{ |
|
|
{ |
|
|
text: "首页", |
|
|
text: "首页", |
|
|
urlPath:'pages/student/index/index',//自定义页面跳转路径 |
|
|
urlPath:'pages/student/index/index',//自定义页面跳转路径 |
|
|
iconPath: "/static/images/tabbar/assembly_default_3x.png", |
|
|
iconPath: "/static/images/tabbar/home.png", |
|
|
selectedIconPath: "/static/images/tabbar/assembly_selected_3x.png" |
|
|
selectedIconPath: "/static/images/tabbar/home_selected.png" |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
text: "课表", |
|
|
text: "课表", |
|
|
urlPath:'pages/student/timetable/index',//自定义页面跳转路径 |
|
|
urlPath:'pages/student/timetable/index',//自定义页面跳转路径 |
|
|
iconPath: "/static/images/tabbar/assembly_default_3x.png", |
|
|
iconPath: "/static/images/tabbar/my.png", |
|
|
selectedIconPath: "/static/images/tabbar/assembly_selected_3x.png" |
|
|
selectedIconPath: "/static/images/tabbar/my.png" |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
text: "班级", |
|
|
text: "班级", |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
iconPath: "/static/images/tabbar/assembly_default_3x.png", |
|
|
iconPath: "/static/images/tabbar/my.png", |
|
|
selectedIconPath: "/static/images/tabbar/assembly_selected_3x.png" |
|
|
selectedIconPath: "/static/images/tabbar/my.png" |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
text: "我的", |
|
|
text: "我的", |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
iconPath: "/static/images/tabbar/assembly_default_3x.png", |
|
|
iconPath: "/static/images/tabbar/my.png", |
|
|
selectedIconPath: "/static/images/tabbar/assembly_selected_3x.png" |
|
|
selectedIconPath: "/static/images/tabbar/my.png" |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
break; |
|
|
break; |
|
|
@ -62,20 +61,20 @@ |
|
|
{ |
|
|
{ |
|
|
text: "首页", |
|
|
text: "首页", |
|
|
urlPath:'pages/student/index/index',//自定义页面跳转路径 |
|
|
urlPath:'pages/student/index/index',//自定义页面跳转路径 |
|
|
iconPath: "/static/images/tabbar/assembly_default_3x.png", |
|
|
iconPath: "/static/images/tabbar/my.png", |
|
|
selectedIconPath: "/static/images/tabbar/assembly_selected_3x.png" |
|
|
selectedIconPath: "/static/images/tabbar/my.png" |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
text: "线索", |
|
|
text: "线索", |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
iconPath: "/static/images/tabbar/assembly_default_3x.png", |
|
|
iconPath: "/static/images/tabbar/my.png", |
|
|
selectedIconPath: "/static/images/tabbar/assembly_selected_3x.png" |
|
|
selectedIconPath: "/static/images/tabbar/my.png" |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
text: "添加", |
|
|
text: "添加", |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
iconPath: "/static/images/tabbar/assembly_default_3x.png", |
|
|
iconPath: "/static/images/tabbar/my.png", |
|
|
selectedIconPath: "/static/images/tabbar/assembly_selected_3x.png", |
|
|
selectedIconPath: "/static/images/tabbar/my.png", |
|
|
midButton: true, |
|
|
midButton: true, |
|
|
width: 96, |
|
|
width: 96, |
|
|
height: 96 |
|
|
height: 96 |
|
|
@ -83,14 +82,14 @@ |
|
|
{ |
|
|
{ |
|
|
text: "数据", |
|
|
text: "数据", |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
iconPath: "/static/images/tabbar/assembly_default_3x.png", |
|
|
iconPath: "/static/images/tabbar/my.png", |
|
|
selectedIconPath: "/static/images/tabbar/assembly_selected_3x.png" |
|
|
selectedIconPath: "/static/images/tabbar/my.png" |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
text: "我的", |
|
|
text: "我的", |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
iconPath: "/static/images/tabbar/assembly_default_3x.png", |
|
|
iconPath: "/static/images/tabbar/my.png", |
|
|
selectedIconPath: "/static/images/tabbar/assembly_selected_3x.png" |
|
|
selectedIconPath: "/static/images/tabbar/my.png" |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
break; |
|
|
break; |
|
|
@ -99,20 +98,20 @@ |
|
|
{ |
|
|
{ |
|
|
text: "首页", |
|
|
text: "首页", |
|
|
urlPath:'pages/student/index/index',//自定义页面跳转路径 |
|
|
urlPath:'pages/student/index/index',//自定义页面跳转路径 |
|
|
iconPath: "/static/images/tabbar/assembly_default_3x.png", |
|
|
iconPath: "/static/images/tabbar/my.png", |
|
|
selectedIconPath: "/static/images/tabbar/assembly_selected_3x.png" |
|
|
selectedIconPath: "/static/images/tabbar/my.png" |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
text: "课表", |
|
|
text: "课表", |
|
|
urlPath:'pages/student/timetable/index',//自定义页面跳转路径 |
|
|
urlPath:'pages/student/timetable/index',//自定义页面跳转路径 |
|
|
iconPath: "/static/images/tabbar/assembly_default_3x.png", |
|
|
iconPath: "/static/images/tabbar/my.png", |
|
|
selectedIconPath: "/static/images/tabbar/assembly_selected_3x.png" |
|
|
selectedIconPath: "/static/images/tabbar/my.png" |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
text: "我的", |
|
|
text: "我的", |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
urlPath:'pages/student/my/my',//自定义页面跳转路径 |
|
|
iconPath: "/static/images/tabbar/assembly_default_3x.png", |
|
|
iconPath: "/static/images/tabbar/my.png", |
|
|
selectedIconPath: "/static/images/tabbar/assembly_selected_3x.png" |
|
|
selectedIconPath: "/static/images/tabbar/my.png" |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
break; |
|
|
break; |
|
|
|