소스 검색

会员中心

lifanagju_citu 11 달 전
부모
커밋
7a7241909c

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

@@ -118,7 +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('enterprise.account.myAccount'), icon: 'mdi-account', change: () => router.push({ path: '/enterprise/myAccount' }) },
   { title: t('setting.logOut'), icon: 'mdi-logout', change: handleLogout }
 ])
 

+ 49 - 19
src/router/modules/enterprise.js

@@ -201,6 +201,36 @@ const enterprise = [
       }
     ]
   },
+  {
+    path: '/enterprise/memberCenter',
+    component: Layout,
+    redirect: '/enterprise/memberCenter/myAccount/index.vue',
+    name: 'enterpriseMemberCenter',
+    meta: {
+      title: '会员中心',
+      enName: 'system Management',
+      icon: 'mdi-account',
+      // isAdmin: true // 企业管理员菜单
+    },
+    children: [
+      {
+        path: '/enterprise/memberCenter/myAccount',
+        meta: {
+          title: '我的会员',
+          enName: 'My Account '
+        },
+        component: () => import('@/views/enterprise/memberCenter/myAccount/index.vue')
+      },
+      {
+        path: '/enterprise/memberCenter/myPoints',
+        meta: {
+          title: '我的积分',
+          enName: 'My Points '
+        },
+        component: () => import('@/views/enterprise/memberCenter/myPoints/index.vue')
+      }
+    ]
+  },
   {
     path: '/enterprise/enterpriseCenter',
     component: Layout,
@@ -240,24 +270,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
-        },
-      }
-    ]
-  },
+  // {
+  //   path: '/enterprise/myAccount',
+  //   component: Layout,
+  //   name: 'enterpriseMyAccount',
+  //   show: true,
+  //   meta: {
+  //     title: '我的账户',
+  //   },
+  //   children: [
+  //     {
+  //       path: '/enterprise/myAccount',
+  //       component: () => import('@/views/enterprise/myAccount/index'),
+  //       meta: {
+  //         title: '我的账户',
+  //         hideSide: false
+  //       },
+  //     }
+  //   ]
+  // },
 ]
 export default enterprise

+ 17 - 0
src/views/enterprise/memberCenter/myAccount/index.vue

@@ -0,0 +1,17 @@
+<!--  -->
+<template>
+  <v-card class="card-box pa-5">
+    <div>
+      <span class="mdi mdi-alert font-20"></span>
+      <span class="mb-3">您还未购买任何会员!购买会员享受VIP待遇!</span>
+    </div>
+  </v-card>
+</template>
+
+<script setup>
+defineOptions({name: 'enterprise-memberCenter-myAccount'})
+</script>
+<style lang="scss" scoped>
+.font-13 { font-size: 13px; }
+.font-20 { font-size: 20px; }
+</style>

+ 10 - 0
src/views/enterprise/memberCenter/myPoints/index.vue

@@ -0,0 +1,10 @@
+<!--  -->
+<template>
+  <div>vue3PageInit</div>
+</template>
+
+<script setup>
+defineOptions({name: 'enterprise-memberCenter-myPoints'})
+</script>
+<style lang="scss" scoped>
+</style>

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

@@ -1,34 +0,0 @@
-<!-- 赏金与积分 -->
-<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

@@ -1,6 +1,6 @@
 <!-- 购买套餐 -->
 <template>
-  <div class="default-width white-bgc pa-10 my-n3" style="min-height: 100%;">
+  <div class="default-width white-bgc pa-10 my-n3" style="min-height: ;">
     <!-- 套餐列表 -->
     <div class="d-flex align-center justify-center">
       <div