lifanagju_citu 11 miesięcy temu
rodzic
commit
61574dd0c7

+ 2 - 1
src/layout/company/navBar.vue

@@ -13,7 +13,7 @@
         </div>
         
         <div class="d-flex user-nav">
-          <a href="/enterprisePurchasePackage" class="cursor-pointer mr-15" style="font-size: 15px;color: #FB8C00;line-height: 40px;">{{ $t('sys.purchasePackage') }}</a>
+          <a href="/enterprise/purchasePackage'" class="cursor-pointer mr-15" style="font-size: 15px;color: #FB8C00;line-height: 40px;">{{ $t('sys.purchasePackage') }}</a>
           <div class="d-flex align-center cursor-pointer" @click="handleEnterpriseClick">
             <v-img @click="enterpriseClick(2)" rounded width="40" height="40" :src="baseInfo?.logoUrl || 'https://minio.citupro.com/dev/menduner/7.png'" ></v-img>
             <span @click="enterpriseClick(1)" class="ml-3">{{ baseInfo?.enterpriseName || $t('sys.tourist') }}</span>
@@ -118,6 +118,7 @@ const handleLogout = async () => {
 const items = ref([
   { title: t('enterprise.personalInformationSettings'), icon: 'mdi-account-cog', change: () => router.push({ path: '/enterprise/informationSettings' }) },
   { title: t('setting.switchToJobSeeker'), icon: 'mdi-swap-horizontal', change: handleLogout },
+  { title: t('enterprise.account.myAccount'), icon: 'mdi-account', change: router.push({ path: '/enterprise/myAccount' }) },
   { title: t('setting.logOut'), icon: 'mdi-logout', change: handleLogout }
 ])
 

+ 3 - 0
src/locales/en.js

@@ -169,6 +169,9 @@ export default {
       enterpriseVideo: 'Enterprise Video',
       recruitmentQRCode: 'Recruitment QR Code',
     },
+    account: {
+      myAccount: 'Account',
+    },
     personalInformationSettings: 'Personal information settings',
     userManagement: {
       enable: 'Enable',

+ 3 - 0
src/locales/zh-CN.js

@@ -169,6 +169,9 @@ export default {
       enterpriseVideo: '企业视频',
       recruitmentQRCode: '招聘二维码',
     },
+    account: {
+      myAccount: '我的账户',
+    },
     personalInformationSettings: '个人信息设置',
     userManagement: {
       enable: '启用',

+ 21 - 2
src/router/modules/enterprise.js

@@ -222,7 +222,7 @@ const enterprise = [
     ]
   },
   {
-    path: '/enterprisePurchasePackage',
+    path: '/enterprise/purchasePackage',
     component: Layout,
     name: 'enterprisePurchasePackage',
     show: true,
@@ -231,7 +231,7 @@ const enterprise = [
     },
     children: [
       {
-        path: '/enterprisePurchasePackage',
+        path: '/enterprise/purchasePackage',
         component: () => import('@/views/enterprise/purchasePackage/index'),
         meta: {
           title: '购买套餐',
@@ -240,5 +240,24 @@ const enterprise = [
       }
     ]
   },
+  {
+    path: '/enterprise/myAccount',
+    component: Layout,
+    name: 'enterpriseMyAccount',
+    show: true,
+    meta: {
+      title: '我的账户',
+    },
+    children: [
+      {
+        path: '/enterprise/myAccount',
+        component: () => import('@/views/enterprise/myAccount/index'),
+        meta: {
+          title: '我的账户',
+          hideSide: true
+        },
+      }
+    ]
+  },
 ]
 export default enterprise

+ 34 - 0
src/views/enterprise/myAccount/index.vue

@@ -0,0 +1,34 @@
+<!-- 赏金与积分 -->
+<template>
+  <div class="default-width py-3">
+    <v-tabs v-model="tab" align-tabs="start" color="primary" bg-color="#fff" @update:model-value="getPositionList">
+      <v-tab :value="1">{{ $t('publicRecruitment.myRecommendation') }}</v-tab>
+      <v-tab :value="2">{{ $t('publicRecruitment.myRegistration') }}</v-tab>
+    </v-tabs>
+    <div class="mt-3">
+      <!-- 我的推荐 -->
+      <div v-if="tab === 1">
+        <!-- <myRecommendation></myRecommendation> -->
+      </div>
+      <!-- 积分明细 -->
+      <div v-if="tab === 2" class="pa-3 white-bgc" style="min-height: 600px; border-radius: 5px;">
+        <!-- <myRegistration></myRegistration> -->
+      </div>
+    </div>
+  </div>
+</template>
+
+<script setup>
+// import myRecommendation from './myRecommendation.vue'
+// import myRegistration from './myRegistration.vue'
+import { useRoute } from 'vue-router'; const route = useRoute()
+import { useRouter } from 'vue-router'; const router = useRouter()
+import { ref } from 'vue'
+defineOptions({name: 'enterprise-myAccount-index'})
+const tab = ref(+route.query?.tab || 1)
+const getPositionList = () => {
+  if (route.query) router.replace({ path: route.path }) // 不留记录的清除跳转带过来的参数
+}
+</script>
+<style lang="scss" scoped>
+</style>

+ 1 - 1
src/views/enterprise/purchasePackage/index.vue

@@ -30,7 +30,7 @@
 <script setup>
 import packagesDetail from './components/packagesDetail.vue'
 import { ref } from 'vue'
-defineOptions({name: 'enterprise-purchasePackage'})
+defineOptions({name: 'enterprisePurchasePackage'})
 
 const tab = ref(1) 
 const packages = [