Browse Source

跳转商场小程序

Xiao_123 8 tháng trước cách đây
mục cha
commit
a892d9aaf1
1 tập tin đã thay đổi với 11 bổ sung3 xóa
  1. 11 3
      pages/index/my.vue

+ 11 - 3
pages/index/my.vue

@@ -54,13 +54,21 @@ const itemList = [
 ]
 
 const list = [
-	{	title:'附件简历',	path:'/pagesA/resume/index'	},					
-	{ title:'我的收藏', path:'/pagesA/collect/index' },
-	{ title:'切换为招聘者', rightTex: '我要招人' }
+	{	title: '附件简历',	path: '/pagesA/resume/index'	},					
+	{ title: '我的收藏', path: '/pagesA/collect/index' },
+	{ title: '前往门墩儿甄选商城', appId: 'wx6decdf12f9e7a061' },
+	{ title: '切换为招聘者', rightTex: '我要招人' }
 ]
 
 // 列表跳转
 const handleToLink = (item) => {
+	if (item.appId) {
+		uni.navigateToMiniProgram({
+			appId: item.appId,
+			// extraData: {} // 要传递的数据
+		})
+		return
+	}
 	if (!item.path) return
   if (!getAccessToken()) {
 		uni.showToast({