diff --git a/App.vue b/App.vue index 67cbdc2..92cb3e8 100644 --- a/App.vue +++ b/App.vue @@ -3,11 +3,11 @@ WxToken } from './common/wx_token.js' import user from '@/api/user.js' - + import Api_url from '@/common/config.js' var wxtoken = new WxToken(); export default { - async onLaunch() { + async onLaunch() { // #ifdef MP-WEIXIN uni.login({ provider: 'weixin', @@ -25,22 +25,22 @@ }) // #endif // #ifdef H5 - var ua = navigator.userAgent.toLowerCase(); - var isWeixin = ua.indexOf('micromessenger') != -1; - if (!isWeixin) { - console.log("非公众号-暂不登陆") - return false; - }else{ - wxtoken.verify('userinfo'); //静默获取openid - } + var ua = navigator.userAgent.toLowerCase(); + var isWeixin = ua.indexOf('micromessenger') != -1; + if (!isWeixin) { + console.log("非公众号-暂不登陆") + return false; + } else { + wxtoken.verify('userinfo'); //静默获取openid + } //微信公众号获取token -必须是认证的服务号 // #endif }, - onShow: function() {}, - onHide: function() {} + onShow: function() {}, + onHide: function() {}, } + \ No newline at end of file diff --git a/pages.json b/pages.json index 57d8446..3d8092a 100644 --- a/pages.json +++ b/pages.json @@ -1,80 +1,61 @@ { "pages": [{ - "path": "pages/student/index/index", - "style": { - "navigationBarTitleText": "首页", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#fff", - "navigationBarTextStyle": "white" + "path": "pages/student/index/index", + "style": { + "navigationBarTitleText": "首页", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#fff", + "navigationBarTextStyle": "white" - } - },{ - "path": "pages/student/timetable/index", - "style": { - "navigationBarTitleText": "课表", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#fff", - "navigationBarTextStyle": "white" - - } - },{ - "path": "pages/student/my/my", - "style": { - "navigationBarTitleText": "我的", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#fff", - "navigationBarTextStyle": "white" + } + }, { + "path": "pages/student/timetable/index", + "style": { + "navigationBarTitleText": "课表", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#fff", + "navigationBarTextStyle": "white" - } - },{ - "path": "pages/student/login/login", - "style": { - "navigationBarTitleText": "", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#fff", - "navigationBarTextStyle": "white" + } + }, { + "path": "pages/student/my/my", + "style": { + "navigationBarTitleText": "我的", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#fff", + "navigationBarTextStyle": "white" - } - }, - { - "path" : "pages/student/login/forgot", - "style": { - "navigationBarTitleText": "找回密码", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#fff", - "navigationBarTextStyle": "black" - - } - }], - "tabBar": { - "color": "#999999", - "selectedColor": "#60ba61", - "borderStyle": "white", - "backgroundColor": "#fff", - "fontSize": "18px", - "iconWidth": "25px", - "list": [{ - "pagePath": "pages/student/index/index", - "iconPath": "static/images/tabbar/home.png", - "selectedIconPath": "static/images/tabbar/home_selected.png", - "text": "首页" + } }, { - "pagePath": "pages/student/timetable/index", - "iconPath": "static/images/tabbar/index.png", - "selectedIconPath": "static/images/tabbar/index_selected.png", - "text": "课表" + "path": "pages/student/my/my1", + "style": { + "navigationBarTitleText": "我的1", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#fff", + "navigationBarTextStyle": "white" + + } }, { - "pagePath": "pages/student/my/my", - "iconPath": "static/images/tabbar/my.png", - "selectedIconPath": "static/images/tabbar/my_selected.png", - "text": "我的" - }] - }, - "share": { - "title": "用药提醒", - "imageUrl": "/static/images/home/tixing.png", - "path": "/pages/my/my" - }, + "path": "pages/student/login/login", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#fff", + "navigationBarTextStyle": "white" + + } + }, + { + "path": "pages/student/login/forgot", + "style": { + "navigationBarTitleText": "找回密码", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#fff", + "navigationBarTextStyle": "black" + + } + } + ], "globalStyle": { "navigationBarTextStyle": "white", "navigationBarTitleText": "", diff --git a/pages/student/index/index.vue b/pages/student/index/index.vue index 180a71f..2e9d66b 100644 --- a/pages/student/index/index.vue +++ b/pages/student/index/index.vue @@ -82,6 +82,14 @@ } }, onLoad() { + wx.hideTabBar({ + success: function() { + console.log('TabBar 已隐藏'); + }, + fail: function(err) { + console.error('隐藏TabBar失败', err); + } + }); const um_id = uni.getStorageSync('um_id'); this.um_id = um_id if (um_id == '') { diff --git a/pages/student/my/my1.vue b/pages/student/my/my1.vue new file mode 100644 index 0000000..8a317b2 --- /dev/null +++ b/pages/student/my/my1.vue @@ -0,0 +1,374 @@ + + + + + \ No newline at end of file diff --git a/static/images/tabbar/bai.png b/static/images/tabbar/bai.png new file mode 100644 index 0000000..65c97db Binary files /dev/null and b/static/images/tabbar/bai.png differ