wuzhen 1 год назад
Родитель
Сommit
03f400f9c9
2 измененных файлов с 56 добавлено и 1 удалено
  1. 32 0
      mobile/src/pages.json
  2. 24 1
      mobile/src/pages/index/index.vue

+ 32 - 0
mobile/src/pages.json

@@ -127,6 +127,38 @@
 				"navigationBarBackgroundColor": "#0051d9",
 				"navigationBarTextStyle": "white"
 			}
+		},
+		{
+			"path": "pages/visit/index",
+			"style": {
+				"navigationBarTitleText": "班主任走访",
+				"navigationBarBackgroundColor": "#0051d9",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/visit/add",
+			"style": {
+				"navigationBarTitleText": "新增走访",
+				"navigationBarBackgroundColor": "#0051d9",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/visit/detail",
+			"style": {
+				"navigationBarTitleText": "走访详情",
+				"navigationBarBackgroundColor": "#0051d9",
+				"navigationBarTextStyle": "white"
+			}
+		},
+		{
+			"path": "pages/visit/edit",
+			"style": {
+				"navigationBarTitleText": "编辑走访",
+				"navigationBarBackgroundColor": "#0051d9",
+				"navigationBarTextStyle": "white"
+			}
 		}
 	],
 	"globalStyle": {

+ 24 - 1
mobile/src/pages/index/index.vue

@@ -168,6 +168,21 @@
                             />
                         </template>
                     </ServiceItem>
+
+                    <ServiceItem
+                        v-if="hasPermi(['student:visit:list'])"
+                        title="班主任走访1"
+                        @click="gotoVisitManage"
+                    >
+                        <template #icon>
+                            <image
+                                src="/static/00115.png"
+                                mode="aspectFit"
+                                style="width: 24px; height: 24px"
+                            />
+                        </template>
+                    </ServiceItem>
+
                 </GridLayout>
             </Card>
 
@@ -590,7 +605,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:visit:list'])
             );
         },
 
@@ -798,6 +814,13 @@ export default {
             });
         },
 
+        // 跳转到班主任走访页面
+        gotoVisitManage() {
+            uni.navigateTo({
+                url: '/pages/visit/index',
+            });
+        },
+
         // 图片加载成功处理
         handleImageLoad(event) {
             console.log('✅ 轮播图片加载成功:', event.detail);