tanxue преди 2 месеца
родител
ревизия
c917b2f1ef
променени са 3 файла, в които са добавени 58 реда и са изтрити 13 реда
  1. 1 1
      pages.json
  2. 1 10
      pages/Login/components/loginBox.vue
  3. 56 2
      pages/admin/ShouYe/shouye.vue

+ 1 - 1
pages.json

@@ -9,7 +9,7 @@
 		{
 			"path": "pages/admin/ShouYe/shouye",
 			"style": {
-				"navigationBarTitleText": "总部管理员/跑单员首页"
+				"navigationStyle": "custom"
 			}
 		},
 		{

+ 1 - 10
pages/Login/components/loginBox.vue

@@ -113,19 +113,10 @@
 	
 	// 跳转
 	function gotoPage(){
-		// 客户端
-		// #ifdef H5
-		uni.navigateTo({
-			url: `/pages/client/ShouYe/shouye`
-		})
-		// #endif
-		
-		// 管理端
-		// #ifdef APP-PLUS
 		uni.navigateTo({
 			url: `/pages/admin/ShouYe/shouye`
 		})
-		// #endif
+
 
 	}
 </script>

+ 56 - 2
pages/admin/ShouYe/shouye.vue

@@ -1,6 +1,31 @@
 <template>
   <view>
-    总部管理员/跑单员首页 
+	    <view>管理家政人员</view>
+		<view @click="goToPage('jz')">
+			<icon></icon>
+			<text>家政人员</text>
+		</view>
+		<view>管理考证人员</view>
+		<view @click="goToPage('kz')">
+			<icon></icon>
+			<text>考证管理</text>
+		</view>
+		<view @click="goToPage('ks')">
+			<icon></icon>
+			<text>考试管理</text>
+		</view>
+		<view @click="goToPage('cj')">
+			<icon></icon>
+			<text>成绩管理</text>
+		</view>
+		<view @click="goToPage('lc')">
+			<icon></icon>
+			<text>练习管理</text>
+		</view>
+		<view @click="goToPage('kc')">
+			<icon></icon>
+			<text>课程管理</text>
+		</view>
 	<!-- 页面底端 -->
 	<customTabbarAdminVue :current-tab="0"></customTabbarAdminVue>
   </view>
@@ -8,6 +33,35 @@
 
 <script setup>
 import customTabbarAdminVue from "@/components/custom-tabbar/custom-tabbar-admin.vue";
-
+// 获取用户头像
+	function goToPage(data){
+		switch (data) {
+		    case 'jz':
+		        uni.redirectTo({
+		        	url:'/pages/admin/Jiazheng/index'
+		        })
+		        break;
+		    case 'kz':
+		        uni.redirectTo({
+		        	url:'/pages/admin/Jiazheng/index'
+		        })
+		        break;
+		    case 'ks':
+		        uni.redirectTo({
+		        	url:'/pages/admin/Kaoshi/exam'
+		        })
+		        break;
+			case 'cj':
+			    uni.redirectTo({
+			    	url:'/pages/client/Chengji/lxScoreShijuan'
+			    })
+			    break;
+			case 'kc':
+			    uni.redirectTo({
+			    	url:'/pages/admin/Kecheng/list'
+			    })
+			    break;
+		}
+	}
 </script>