diff --git a/HSLink-app/manifest.json b/HSLink-app/manifest.json index 81dbaca..eaa213c 100644 --- a/HSLink-app/manifest.json +++ b/HSLink-app/manifest.json @@ -2,8 +2,8 @@ "name" : "HSLink", "appid" : "__UNI__7C9492E", "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", + "versionName" : "1.0.4", + "versionCode" : 104, "transformPx" : false, "app-plus" : { "usingComponents" : true, diff --git a/HSLink-app/pages.json b/HSLink-app/pages.json index 11d4ff4..b16c742 100644 --- a/HSLink-app/pages.json +++ b/HSLink-app/pages.json @@ -224,6 +224,46 @@ } } } + ,{ + "path" : "pages/components/avatar/avatar", + "style" : {} + } + ,{ + "path" : "pages/tabbar/my/collection/collection", + "style": { + "enablePullDownRefresh": true, + "navigationBarTitleText": "收藏列表",//顶部名称 + "navigationBarBackgroundColor": "#333",//顶部背景色 + "navigationBarTextStyle": "white" //文字颜色,目前只支持white和black这两种颜色(小程序) + } + } + ,{ + "path" : "pages/tabbar/my/article-management/article-management", + "style": { + "enablePullDownRefresh": true, + "navigationBarTitleText": "文章管理",//顶部名称 + "navigationBarBackgroundColor": "#333",//顶部背景色 + "navigationBarTextStyle": "white" //文字颜色,目前只支持white和black这两种颜色(小程序) + } + } + ,{ + "path" : "pages/tabbar/my/people-management/people-management", + "style": { + "enablePullDownRefresh": true, + "navigationBarTitleText": "人员管理",//顶部名称 + "navigationBarBackgroundColor": "#333",//顶部背景色 + "navigationBarTextStyle": "white" //文字颜色,目前只支持white和black这两种颜色(小程序) + } + } + ,{ + "path" : "pages/tabbar/my/help-answer/help-answer", + "style": { + "enablePullDownRefresh": true, + "navigationBarTitleText": "帮助答复",//顶部名称 + "navigationBarBackgroundColor": "#333",//顶部背景色 + "navigationBarTextStyle": "white" //文字颜色,目前只支持white和black这两种颜色(小程序) + } + } ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/HSLink-app/pages/login/login.vue b/HSLink-app/pages/login/login.vue index 4901375..490aada 100644 --- a/HSLink-app/pages/login/login.vue +++ b/HSLink-app/pages/login/login.vue @@ -38,7 +38,7 @@ data() { return { //角色列表 - roleList: ["教师","家长","学生"], + roleList: [], //角色序号 roleIndex: -1, //角色 @@ -96,9 +96,9 @@ }) } else { request.post('/hs/login',{ - role:this.role, + role: this.role, username: this.username, - password:this.password + password: this.password }).then(res => { console.log("登录信息",res) if (res.data === null) { @@ -106,6 +106,16 @@ icon: 'none', title: '账号或密码错误' }) + } else if (res.data.frozen_state === "1") { + uni.showToast({ + icon: 'none', + title: '该账号已冻结' + }) + } else if (res.data.user_type !== this.role) { + uni.showToast({ + icon: 'none', + title: '角色不匹配' + }) } else { uni.setStorageSync("userInfo", res.data); uni.switchTab({ diff --git a/HSLink-app/pages/notice-edit/notice-edit.vue b/HSLink-app/pages/notice-edit/notice-edit.vue index af9730b..2096e55 100644 --- a/HSLink-app/pages/notice-edit/notice-edit.vue +++ b/HSLink-app/pages/notice-edit/notice-edit.vue @@ -103,7 +103,7 @@ id: this.noticeInfo.id, label: this.noticeInfo.label, title: this.noticeInfo.title, - content: this.noticeInfo.content + content: this.noticeInfo.content, }).then(res => { console.log("保存文章",res); if (res.data === 1) { @@ -135,11 +135,14 @@ .title{ padding-top: 0; } - .title textarea, .label textarea, .content textarea{ + .title, .label, .content{ background-color: #F1F1F1; - padding: 20rpx; - width: 100%; border-radius: 10rpx; + padding: 20rpx; + margin: 20rpx; + } + .title textarea, .label textarea, .content textarea{ + width: 100%; } .title textarea{ height: 128rpx; @@ -148,9 +151,6 @@ .label textarea{ height: 80rpx; } - .content textarea{ - text-indent: 40rpx; - } .page{ background-color: #FFFFFF; } diff --git a/HSLink-app/pages/person-info-page/person-info-page.vue b/HSLink-app/pages/person-info-page/person-info-page.vue index d640542..4415190 100644 --- a/HSLink-app/pages/person-info-page/person-info-page.vue +++ b/HSLink-app/pages/person-info-page/person-info-page.vue @@ -2,30 +2,21 @@ - - {{userInfo.headerPhoto}} - +