Ver Fonte

底部菜单调整

Xiao_123 há 2 meses atrás
pai
commit
a910be0bbb

+ 11 - 5
custom-tab-bar/index.js

@@ -6,10 +6,10 @@ Component({
     selectedColor: "#00B760",
     list: [
 			{
-				"pagePath": "/pages/index/resume",
-				"text": "简历",
-				"iconPath": "/static/img/resume.png",
-				"selectedIconPath": "/static/img/resume-fill.png"
+				"pagePath": "/pages/index/search",
+				"text": "找人才",
+				"iconPath": "/static/img/search.png",
+				"selectedIconPath": "/static/img/search-fill.png"
 			},
 			{
 				"pagePath": "/pages/index/position",
@@ -23,9 +23,15 @@ Component({
 				"iconPath": "/static/img/message.png",
 				"selectedIconPath": "/static/img/message-fill.png"
 			},
+			{
+				"pagePath": "/pages/index/jobFair",
+				"text": "招聘会",
+				"iconPath": "/static/img/jobFair.png",
+				"selectedIconPath": "/static/img/jobFair-fill.png"
+			},
 			{
 				"pagePath": "/pages/index/my",
-				"text": "企业",
+				"text": "我的",
 				"iconPath": "/static/img/company.png",
 				"selectedIconPath": "/static/img/company-fill.png"
 			}

+ 20 - 8
pages.json

@@ -1,9 +1,9 @@
 {
 	"pages": [
 		{
-			"path": "pages/index/resume",
+			"path": "pages/index/search",
 			"style": {
-				"navigationBarTitleText": "简历"
+				"navigationBarTitleText": "人才推荐"
 			}
 		},
 		{
@@ -42,10 +42,16 @@
 				"navigationBarTitleText": "最近联系人"
 			}
 		},
+		{
+			"path": "pages/index/jobFair",
+			"style": {
+				"navigationBarTitleText": "招聘会"
+			}
+		},
 		{
 			"path": "pages/index/my",
 			"style": {
-				"navigationBarTitleText": "企业"
+				"navigationBarTitleText": "我的"
 			}
 		},
 		{
@@ -215,10 +221,10 @@
 		"fontSize": "24rpx",
 		"list": [
 			{
-				"pagePath": "pages/index/resume",
-				"text": "简历",
-				"iconPath": "/static/img/resume.png",
-				"selectedIconPath": "/static/img/resume-fill.png"
+				"pagePath": "pages/index/search",
+				"text": "找人才",
+				"iconPath": "/static/img/search.png",
+				"selectedIconPath": "/static/img/search-fill.png"
 			},
 			{
 				"pagePath": "pages/index/position",
@@ -232,9 +238,15 @@
 				"iconPath": "/static/img/message.png",
 				"selectedIconPath": "/static/img/message-fill.png"
 			},
+			{
+				"pagePath": "pages/index/jobFair",
+				"text": "招聘会",
+				"iconPath": "/static/img/jobFair.png",
+				"selectedIconPath": "/static/img/jobFair-fill.png"
+			},
 			{
 				"pagePath": "pages/index/my",
-				"text": "企业",
+				"text": "我的",
 				"iconPath": "/static/img/company.png",
 				"selectedIconPath": "/static/img/company-fill.png"
 			}

+ 21 - 0
pages/index/jobFair.vue

@@ -0,0 +1,21 @@
+<template>
+	<layout-page>招聘会</layout-page>
+</template>
+
+<script setup>
+	import layoutPage from '@/layout'
+	import { onShow } from '@dcloudio/uni-app'
+	
+	// 设置自定义tabbar选中值
+	onShow(() => {
+	    const currentPage = getCurrentPages()[0];  // 获取当前页面实例
+	    const currentTabBar = currentPage?.getTabBar?.();
+	
+	    // 设置当前tab页的下标index
+	    currentTabBar?.setData({ selected: 3 });
+	})
+</script>
+
+<style scoped lang="scss">
+
+</style>

+ 1 - 1
pages/index/my.vue

@@ -67,7 +67,7 @@ onShow(() => {
     const currentTabBar = currentPage?.getTabBar?.();
 
     // 设置当前tab页的下标index
-    currentTabBar?.setData({ selected: 3 });
+    currentTabBar?.setData({ selected: 4 });
 })
 
 const inputDialog = ref()

+ 1 - 1
pages/index/resume.vue → pages/index/search.vue

@@ -1,6 +1,6 @@
 <template>
 	<layout-page>
-		<view @tap="handleTo">企业-简历</view>
+		<view @tap="handleTo">企业-找人</view>
 	</layout-page>
 </template>
 

BIN
static/img/company-fill.png


BIN
static/img/copy/company-fill.png


BIN
static/img/copy/message-fill.png


BIN
static/img/copy/position-fill.png


BIN
static/img/jobFair-fill.png


BIN
static/img/jobFair.png


BIN
static/img/message-fill.png


BIN
static/img/position-fill.png


BIN
static/img/resume-fill.png


BIN
static/img/resume.png


BIN
static/img/search-fill.png


BIN
static/img/search.png