瀏覽代碼

Merge branch 'dev' of https://git.citupro.com/zhengnaiwen_citu/menduner into dev

Xiao_123 10 月之前
父節點
當前提交
48cd24fe92

+ 0 - 54
src/router/modules/publicRecruit.js

@@ -1,54 +0,0 @@
-
-// 门墩儿招聘
-import Layout from '@/layout'
-const recruit = [
-  {
-    path: '/recruit',
-    component: Layout,
-    name: 'recruit',
-    children: [
-      {
-        path: '/recruit/personal/position',
-        component: () => import('@/views/recruit/personal/position'),
-        name: 'recruitPosition',
-        meta: {
-          title: '职位'
-        }
-      },
-      {
-        path: '/recruit/personal/company',
-        component: () => import('@/views/recruit/personal/company'),
-        name: 'recruitCompany',
-        meta: {
-          title: '公司'
-        }
-      },
-      {
-        path: '/recruit/personal/position/details/:id',
-        component: () => import('@/views/recruit/personal/position/components/details'),
-        name: 'recruitPositionDetails',
-        meta: {
-          title: '职位详情'
-        }
-      }
-    ]
-  },
-  {
-    path: '/recruit/personal/company/details/:id',
-    component: Layout,
-    name: 'companyDetails',
-    meta: {
-      title: '企业详情'
-    },
-    children: [
-      {
-        path: '/recruit/personal/company/details/:id',
-        component: () => import('@/views/recruit/enterprise/components/enterpriseDetails.vue'),
-        meta: {
-          title: '企业详情'
-        },
-      }
-    ]
-  }
-]
-export default recruit

+ 5 - 9
src/router/modules/remaining.js

@@ -85,15 +85,11 @@ const remainingRouter = [
   },
   {
     path: '/shareJob',
-    children: [
-      {
-        path: '/shareJob',
-        component: () => import('@/views/mall/index'),
-        meta: {
-          title: '臻选商城'
-        }
-      }
-    ]
+    name: 'shareJob',
+    meta: {
+      title: '分享职位'
+    },
+    component: () => import('@/views/recruit/personal/shareJob/index.vue')
   },
 ]
 

+ 17 - 1
src/views/recruit/personal/position/components/details.vue

@@ -17,7 +17,14 @@
       </div>
       <div class="d-flex justify-end mb-5">
         <div class="banner-tools-btns">
-          <v-btn class="radius mr-2 button-item" variant="outlined" color="error" prepend-icon="mdi-share-outline" style="height: 36px;">分享有礼</v-btn>
+          <v-btn
+            class="radius mr-2 button-item"
+            variant="outlined"
+            color="error"
+            prepend-icon="mdi-share-outline"
+            style="height: 36px;"
+            @click="handleShare"
+          >分享有礼</v-btn>
           <v-btn
             class="button-item radius"
             color="warning" 
@@ -157,6 +164,15 @@ const getCollectionStatus = async () => {
 }
 getCollectionStatus()
 
+// 分享有礼
+const handleShare = async () => {
+  const url = '/shareJob?' + new URLSearchParams({
+      param1: 'value1',
+      param2: 'value2'
+  }).toString()
+  window.open(url, '_blank')
+}
+
 // 收藏&取消收藏职位
 const handleCollection = async () => {
   const api = isCollection.value ? getPersonJobUnfavorite : getPersonJobFavorite

+ 4 - 0
src/views/recruit/personal/shareJob/index.vue

@@ -5,6 +5,10 @@
 
 <script setup>
 defineOptions({name: 'recruit-personal-shareJob-index'})
+const queryParams = new URLSearchParams(window.location.search)
+const param1 = queryParams.get('param1') || ''
+const param2 = queryParams.get('param2') || ''
+console.log('1', param1, '2', param2)
 </script>
 <style lang="scss" scoped>
 </style>