From 35a2b4697483f0eb4949b43127eac6d15b4dbef5 Mon Sep 17 00:00:00 2001
From: LLL <15374889135@163.com>
Date: Tue, 11 Mar 2025 12:21:38 +0800
Subject: [PATCH] zhjw
---
App.vue | 26 +--
pages.json | 121 +++++------
pages/student/index/index.vue | 8 +
pages/student/my/my1.vue | 374 ++++++++++++++++++++++++++++++++++
static/images/tabbar/bai.png | Bin 0 -> 171 bytes
5 files changed, 446 insertions(+), 83 deletions(-)
create mode 100644 pages/student/my/my1.vue
create mode 100644 static/images/tabbar/bai.png
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 @@
+
+
+
+
+
+
+
+
+
+
+
+ 昵称:{{username}}
+
+
+
+
+
+ 置顶提醒:{{drug}}
+
+
+
+
+
+ 置顶提醒:{{drug}}
+
+
+
+
+
+
+
+
+
+
+ 用药数量
{{pharmacy}}
+
+
+
+
+
+
+
+
+ 提醒
{{remind}}
+
+
+
+
+
+
+
+
+
+ 作品数量
{{works}}
+
+
+
+
+
+
+
+
+
+
+
+ 我的收藏
+
+
+
+
+
+
+
+
+
+ 帮助中心
+
+
+
+
+
+ 设置
+
+
+
+
+
+
+
+
+
+
\ 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 0000000000000000000000000000000000000000..65c97dbf3555083b26220639c086cecd059f64db
GIT binary patch
literal 171
zcmeAS@N?(olHy`uVBq!ia0vp^T0pGM!3HENV{f$rDaPU;cPEB*=VV?2IV|apzK#qG
z8~eHcB(eheoCO|{#S9F5he4R}c>anMprC`Ni(^QH``dGlybJ~cEDL{`?=?O6e3Bz$
wzPrfPt}NHBi=qP8t_Ta!UL}f!yY?-!U}pUT?T3fufMzjxy85}Sb4q9e0No5VNB{r;
literal 0
HcmV?d00001