Selaa lähdekoodia

赏金入口更换为招聘入口

Xiao_123 1 kuukausi sitten
vanhempi
commit
0d353307fd

+ 1 - 1
components/PositionList/index.vue

@@ -116,7 +116,7 @@ const toDetail = (item) =>{
 //招聘会
 const handleToJobFair = () => {
 	uni.navigateTo({
-		url: '/pagesB/jobFair/index'
+		url: '/pages/index/jobFair'
 	})
 }
 

+ 4 - 4
custom-tab-bar/index.js

@@ -25,10 +25,10 @@ Component({
 				"selectedIconPath": "/static/img/welfare.png"
 			},
 			{
-				"pagePath": "/pages/index/crowdsourcing",
-				"text": "赏金",
-				"iconPath": "/static/img/pin.png",
-				"selectedIconPath": "/static/img/pin-fill.png"
+				"pagePath": "/pages/index/jobFair",
+				"text": "招聘会",
+				"iconPath": "/static/img/jobFair.png",
+				"selectedIconPath": "/static/img/jobFair-fill.png"
 			},
 			{
 				"pagePath": "/pages/index/my",

+ 12 - 12
pages.json

@@ -39,6 +39,12 @@
 				"navigationBarTitleText": "最近联系人"
 			}
 		},
+		{
+			"path": "pages/index/jobFair",
+			"style": {
+				"navigationBarTitleText": "招聘会"
+			}
+		},
 		{
 			"path": "pages/addWebView/index",
 			"style": {
@@ -349,12 +355,6 @@
 						"navigationBarTitleText": "优选集团"
 					}
 				},
-				{
-					"path": "jobFair/index",
-					"style": {
-						"navigationBarTitleText": "招聘会"
-					}
-				},
 				{
 					"path": "jobFair/jobFairShare",
 					"style": {
@@ -370,13 +370,13 @@
 				{
 					"path": "jobFair/enterprisesClassification",
 					"style": {
-						"navigationBarTitleText": "招聘会/企业"
+						"navigationBarTitleText": "招聘会"
 					}
 				},
 				{
 					"path": "jobFair/positionClassification",
 					"style": {
-						"navigationBarTitleText": "招聘会/职位"
+						"navigationBarTitleText": "招聘会"
 					}
 				}
 			]
@@ -416,10 +416,10 @@
 				"selectedIconPath": "/static/img/welfare.png"
 			},
 			{
-				"pagePath": "pages/index/crowdsourcing",
-				"text": "赏金",
-				"iconPath": "/static/img/pin.png",
-				"selectedIconPath": "/static/img/pin-fill.png"
+				"pagePath": "pages/index/jobFair",
+				"text": "招聘会",
+				"iconPath": "/static/img/jobFair.png",
+				"selectedIconPath": "/static/img/jobFair-fill.png"
 			},
 			{
 				"pagePath": "pages/index/my",

+ 10 - 2
pagesB/jobFair/index.vue → pages/index/jobFair.vue

@@ -14,11 +14,19 @@
   </view>
 </template>
 <script setup>
-import { onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
+import { onShow, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
 import { ref }  from 'vue'
 import { getJobFairList } from '@/api/jobFair'
 import { timesTampChange } from '@/utils/date'
 
+// 设置自定义tabbar选中值
+onShow(() => {
+  const currentPage = getCurrentPages()[0];  // 获取当前页面实例
+  const currentTabBar = currentPage?.getTabBar?.();
+  // 设置当前tab页的下标index
+  currentTabBar?.setData({ selected: 3 });
+})
+
 const items = ref([])
 
 // 获得招聘会列表
@@ -41,7 +49,7 @@ const handleToJobFairEnterprises = (val) => {
 const getShareParams = () => {
   return {
     title: '门墩儿-招聘会',
-    path: '/pagesB/jobFair/index',
+    path: '/pages/index/jobFair',
   }
 }
 

+ 1 - 1
pages/index/position.vue

@@ -110,7 +110,7 @@ const gridList = [
   { label: '精选企业', icon: '/static/img/enterprise.png', path: '/pagesB/recommendEnterprise/index' },
   { label: '酒店英语', icon: '/static/img/group.png', weiXinPublicUrl: 'https://mp.weixin.qq.com/s/zta8NvNaJOFhPxq9NAE9pw' },
   // { label: '早报资讯', icon: '/static/img/information.png', id: 'morningNews' },
-  { label: '招聘会', icon: '/static/img/information.png', path: '/pagesB/jobFair/index' },
+  { label: '招聘会', icon: '/static/img/information.png', path: '/pages/index/jobFair' },
   { label: '了解门墩儿', icon: '/static/img/contact.png', path: '/pagesB/about/index' }
 ]
 

+ 1 - 1
pagesB/jobFair/enterprisesClassification.vue

@@ -221,7 +221,7 @@ const toDetail = (item) =>{
 }
 // const goBack = () => {
 // 	uni.navigateTo({
-// 		url: '/pagesB/jobFair/index'
+// 		url: '/pages/index/jobFair'
 // 	})
 // }
 

BIN
static/img/jobFair-fill.png


BIN
static/img/jobFair.png


BIN
static/img/message-fill.png


BIN
static/img/my-fill.png


BIN
static/img/pin-fill.png


BIN
static/img/pin.png


BIN
static/img/position-fill.png