diff --git a/mobile/src/pages.json b/mobile/src/pages.json index 4a01ca34..3bcade61 100644 --- a/mobile/src/pages.json +++ b/mobile/src/pages.json @@ -127,6 +127,14 @@ "navigationBarBackgroundColor": "#0051d9", "navigationBarTextStyle": "white" } + }, + { + "path": "pages/xgss/sswj/grsswj", + "style": { + "navigationBarTitleText": "宿舍违纪", + "navigationBarBackgroundColor": "#0051d9", + "navigationBarTextStyle": "white" + } } ], "globalStyle": { diff --git a/mobile/src/pages/index/index.vue b/mobile/src/pages/index/index.vue index db77be33..cf0d7e35 100644 --- a/mobile/src/pages/index/index.vue +++ b/mobile/src/pages/index/index.vue @@ -168,6 +168,20 @@ /> + + + + @@ -375,7 +389,7 @@ @@ -572,12 +586,12 @@ export default { console.log( this.userInfo.avatar && this.userInfo.avatar.trim() !== '' ? this.userInfo.avatar - : '/static/logo-2.png', + : '/static/111.png', ); // 确保当avatar为空字符串、null或undefined时都显示默认图片 return this.userInfo.avatar && this.userInfo.avatar.trim() !== '' ? this.userInfo.avatar - : '/static/logo-2.png'; + : '/static/111.png'; }, // 检查各模块是否有权限 @@ -590,7 +604,8 @@ export default { this.hasPermi(['student:club:list']) || this.hasPermi(['student:counsel:list']) || this.hasPermi(['student:info:edit']) || - this.hasPermi(['student:internship:list']) + this.hasPermi(['student:internship:list']) || + this.hasPermi(['student:dorm:violation:list']) ); }, @@ -631,7 +646,7 @@ export default { hasSystemServices() { return ( - this.hasPermi(['system:user:list']) || + this.hasPermi(['system:mobileuser:list']) || this.hasPermi(['system:role:list']) || this.hasPermi(['system:menu:list']) || this.hasPermi(['system:dept:list']) || @@ -677,12 +692,12 @@ export default { // 点击用户头像 handleUserClick() { - const info = userManager.getUserInfoString(); - uni.showModal({ - title: '个人信息', - content: info, - showCancel: false, - }); + // const info = userManager.getUserInfoString(); + // uni.showModal({ + // title: '个人信息', + // content: info, + // showCancel: false, + // }); }, // 退出登录 @@ -798,6 +813,13 @@ export default { }); }, + // 跳转到宿舍违纪页面 + gotoDormViolation() { + uni.navigateTo({ + url: '/pages/xgss/sswj/grsswj', + }); + }, + // 图片加载成功处理 handleImageLoad(event) { console.log('✅ 轮播图片加载成功:', event.detail); diff --git a/mobile/src/pages/xgss/sswj/grsswj.vue b/mobile/src/pages/xgss/sswj/grsswj.vue new file mode 100644 index 00000000..78b3c863 --- /dev/null +++ b/mobile/src/pages/xgss/sswj/grsswj.vue @@ -0,0 +1,719 @@ + + + + + diff --git a/mobile/src/static/111.png b/mobile/src/static/111.png new file mode 100644 index 00000000..bc36370f Binary files /dev/null and b/mobile/src/static/111.png differ