1 Star 0 Fork 2

广东科学技术职业学院-熊君丽/UniAppWe

forked from Mr-Jies/UniAppWe 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
App.vue 1000 Bytes
一键复制 编辑 原始数据 按行查看 历史
Mr-Jies 提交于 2020-06-11 21:07 . init
<script>
export default {
onLaunch: function() {
//登录
const role = uni.getStorageSync('role');//登录角色 enterprise / teacher
console.log('App Launch', role)
if (role == ('student')) {
console.log("student")
uni.setTabBarItem({
index: 1,
"pagePath": "pages/status/status",
"iconPath": "static/img/status.png",
"selectedIconPath": "static/img/select_status.png",
"text": "状态"
})
} else {console.log("!student")
uni.setTabBarItem({
index: 1,
"pagePath": "pages/status02/status02",
"iconPath": "static/img/student.png",
"selectedIconPath": "static/img/select_student.png",
"text": "学生",
})
}
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
},
}
</script>
<style lang="scss">
//首页的轮播图样式
@import './cool/ui/assets/css/index.scss';
</style>
<style>
/* @import './common/qiun.css'; */
</style>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/roadflower/UniAppWe.git
git@gitee.com:roadflower/UniAppWe.git
roadflower
UniAppWe
UniAppWe
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385