zlwu 1 vuosi sitten
vanhempi
commit
70f733e4bd
2 muutettua tiedostoa jossa 54 lisäystä ja 3 poistoa
  1. 32 0
      mobile/src/pages.json
  2. 22 3
      mobile/src/pages/index/index.vue

+ 32 - 0
mobile/src/pages.json

@@ -128,6 +128,38 @@
 				"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"
+			}
+		},
 		{
 			"path": "pages/xgss/sswj/grsswj",
 			"style": {

+ 22 - 3
mobile/src/pages/index/index.vue

@@ -168,7 +168,19 @@
                             />
                         </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>
                     <ServiceItem
                         v-if="hasPermi(['student:dormviolation:list'])"
                         title="宿舍违纪"
@@ -605,7 +617,8 @@ export default {
                 this.hasPermi(['student:counsel:list']) ||
                 this.hasPermi(['student:info:edit']) ||
                 this.hasPermi(['student:internship:list']) ||
-                this.hasPermi(['student:dorm:violation:list'])
+                this.hasPermi(['student:dorm:violation:list']) ||
+                this.hasPermi(['student:visit:list'])
             );
         },
 
@@ -812,7 +825,6 @@ export default {
                 url: '/pages/internship/index',
             });
         },
-
         // 跳转到宿舍违纪页面
         gotoDormViolation() {
             uni.navigateTo({
@@ -820,6 +832,13 @@ export default {
             });
         },
 
+        // 跳转到班主任走访页面
+        gotoVisitManage() {
+            uni.navigateTo({
+                url: '/pages/visit/index',
+            });
+        },
+
         // 图片加载成功处理
         handleImageLoad(event) {
             console.log('✅ 轮播图片加载成功:', event.detail);