|
@@ -63,7 +63,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import { ref, computed } from 'vue'
|
|
|
|
|
|
+import { ref, computed, watch } from 'vue'
|
|
import ResumeStatus from '@/components/ResumeStatus'
|
|
import ResumeStatus from '@/components/ResumeStatus'
|
|
import { userStore } from '@/store/user'
|
|
import { userStore } from '@/store/user'
|
|
import { getUserAvatar } from '@/utils/avatar'
|
|
import { getUserAvatar } from '@/utils/avatar'
|
|
@@ -85,6 +85,7 @@ const useUserStore = userStore()
|
|
const baseInfo = computed(() => useUserStore?.baseInfo)
|
|
const baseInfo = computed(() => useUserStore?.baseInfo)
|
|
const userInfo = computed(() => useUserStore?.userInfo)
|
|
const userInfo = computed(() => useUserStore?.userInfo)
|
|
const vip = computed(() => new Date().getTime() < useUserStore?.userInfo?.vipExpireDate)
|
|
const vip = computed(() => new Date().getTime() < useUserStore?.userInfo?.vipExpireDate)
|
|
|
|
+
|
|
const popup = ref()
|
|
const popup = ref()
|
|
const shareQrCodePopup = ref()
|
|
const shareQrCodePopup = ref()
|
|
const itemList = [
|
|
const itemList = [
|
|
@@ -92,14 +93,25 @@ const itemList = [
|
|
{ title:'关注我的', path:'/pagesA/seenMe/index', icon:'staff' }
|
|
{ title:'关注我的', path:'/pagesA/seenMe/index', icon:'staff' }
|
|
]
|
|
]
|
|
|
|
|
|
-const list = [
|
|
|
|
|
|
+const list = ref([
|
|
{ title: '我的分享码', path: 'shareQrCode' },
|
|
{ title: '我的分享码', path: 'shareQrCode' },
|
|
{ title: '在线简历', path: '/pagesA/resumeOnline/index' },
|
|
{ title: '在线简历', path: '/pagesA/resumeOnline/index' },
|
|
{ title: '附件简历', path: '/pagesA/resume/index' },
|
|
{ title: '附件简历', path: '/pagesA/resume/index' },
|
|
|
|
+ // { title: '简历模板', path: '/pagesA/resume/index' },
|
|
|
|
+ // { title: '屏蔽企业', path: '/pagesA/resume/index' },
|
|
{ title: '面试管理', path: '/pagesA/interview/index' },
|
|
{ title: '面试管理', path: '/pagesA/interview/index' },
|
|
{ title: '门墩儿商城', appId: 'wx6decdf12f9e7a061' },
|
|
{ title: '门墩儿商城', appId: 'wx6decdf12f9e7a061' },
|
|
{ title: '我要招聘', key: 'recruit' }
|
|
{ title: '我要招聘', key: 'recruit' }
|
|
-]
|
|
|
|
|
|
+])
|
|
|
|
+watch(
|
|
|
|
+ () => vip.value,
|
|
|
|
+ (newVal) => {
|
|
|
|
+ if (newVal) list.value.splice(1, 0, { title: 'vip权益', key: 'vip', path: '/pagesA/vip/index' })
|
|
|
|
+ else list.value = list.value.filter(e => !e.key || e.key !== 'vip')
|
|
|
|
+ },
|
|
|
|
+ { immediate: true },
|
|
|
|
+ // { deep: true }
|
|
|
|
+)
|
|
|
|
|
|
// 列表跳转
|
|
// 列表跳转
|
|
const handleToLink = (item) => {
|
|
const handleToLink = (item) => {
|