|
@@ -114,16 +114,23 @@ onMounted(async () => {
|
|
|
|
|
|
// 获取轮播图、背景图
|
|
// 获取轮播图、背景图
|
|
const logoBgUrl = ref('')
|
|
const logoBgUrl = ref('')
|
|
|
|
+const preferred = ref({})
|
|
const carouselList = ref([])
|
|
const carouselList = ref([])
|
|
const getSystemWebContent = async () => {
|
|
const getSystemWebContent = async () => {
|
|
const data = await getWebContent()
|
|
const data = await getWebContent()
|
|
logoBgUrl.value = data.pcLoginBackground && data.pcLoginBackground.length ? data.pcLoginBackground[0].img : 'https://minio.menduner.com/dev/menduner/login-bgc.jpg'
|
|
logoBgUrl.value = data.pcLoginBackground && data.pcLoginBackground.length ? data.pcLoginBackground[0].img : 'https://minio.menduner.com/dev/menduner/login-bgc.jpg'
|
|
carouselList.value = data.pcLoginCarousel || []
|
|
carouselList.value = data.pcLoginCarousel || []
|
|
|
|
+ preferred.value = data.appPreferredGroup || {}
|
|
}
|
|
}
|
|
getSystemWebContent()
|
|
getSystemWebContent()
|
|
|
|
|
|
const handleClick = (item) => {
|
|
const handleClick = (item) => {
|
|
- if (item.link) window.open(item.link)
|
|
|
|
|
|
+ if (!item.link) return
|
|
|
|
+ if (item.link.includes('http')) return window.open(item.link)
|
|
|
|
+
|
|
|
|
+ // 优选集团
|
|
|
|
+ if (preferred.value && Object.keys(preferred.value).length > 0 && preferred.value[item.link]) window.open(`/recruit/personal/advertisement/${item.link}`)
|
|
|
|
+ else window.open(`/recruit/personal/company/details/${item.link}?key=briefIntroduction`)
|
|
}
|
|
}
|
|
|
|
|
|
const { t } = useI18n()
|
|
const { t } = useI18n()
|