|
@@ -93,15 +93,16 @@ const getSystemWebContent = async () => {
|
|
|
swiperAdList.value = data?.appHomeCarousel || []
|
|
|
// 是否展示弹窗广告
|
|
|
showAdvertisePop.value = data && data.appAdvertisement && data.appAdvertisement.length ? true : false
|
|
|
+
|
|
|
+ // 优选集团
|
|
|
+ preferredGroup.value = data?.appPreferredGroup || {}
|
|
|
}
|
|
|
|
|
|
const filterList = ref([
|
|
|
{ label: '城市', multiple: true, dictType: 'areaTreeData', key: 'areaIds', map: { text: 'name', value: 'id' } },
|
|
|
- // { label: '行业', dictType: 'industryTreeData',key: 'industryIds', map: { text: 'nameCn', value: 'id' } },
|
|
|
{ label: '职位', dictType: 'positionTreeData',key: 'positionId', map: { text: 'nameCn', value: 'id' } },
|
|
|
{ label: '求职类型', dictType: 'menduner_job_type', key: 'jobType' },
|
|
|
{ label: '薪资待遇', dictType: 'menduner_pay_scope', key: 'payScope' },
|
|
|
- // { label: '工作经验', dictType: 'menduner_exp_type', key: 'expType' },
|
|
|
])
|
|
|
|
|
|
const gridList = [
|
|
@@ -115,18 +116,15 @@ const gridList = [
|
|
|
// 轮播图链接跳转
|
|
|
const handleToDetails = ({ link, title }) => {
|
|
|
if (!link) return
|
|
|
- // 企业详情
|
|
|
- if (link.includes('/pagesB/companyDetail/index')) {
|
|
|
- uni.navigateTo({ url: link })
|
|
|
- }
|
|
|
- // 优选集团
|
|
|
- else if (link.includes('/pagesB/preferredGroup/index')) {
|
|
|
- console.log(link, 'link')
|
|
|
- const id = link.split('?id=')[1]
|
|
|
- if (preferredGroup.value && Object.keys(preferredGroup.value).length > 0 && preferredGroup.value[id]) uni.navigateTo({ url: link })
|
|
|
+
|
|
|
+ // 公众号链接跳转
|
|
|
+ if (link.includes('http')) uni.navigateTo({ url: `/pages/addWebView/index?url=${link}&title=${title || '门墩儿 专注顶尖招聘'}` })
|
|
|
+ else {
|
|
|
+ // 优选集团
|
|
|
+ if (preferredGroup.value && Object.keys(preferredGroup.value).length > 0 && preferredGroup.value[link]) uni.navigateTo({ url: `/pagesB/preferredGroup/index?id=${link}` })
|
|
|
+ // 企业详情
|
|
|
+ else uni.navigateTo({ url: `/pagesB/companyDetail/index?id=${link}` })
|
|
|
}
|
|
|
- // 公众号链接
|
|
|
- else uni.navigateTo({ url: `/pages/addWebView/index?url=${link}&title=${title || '风尚榜奖投票'}` })
|
|
|
}
|
|
|
|
|
|
const handleGrid = async (e) => {
|
|
@@ -242,19 +240,6 @@ onShow(() => {
|
|
|
currentTabBar?.setData({ selected: 0 });
|
|
|
getSystemWebContent()
|
|
|
getData()
|
|
|
-
|
|
|
- // 优选集团数据
|
|
|
- uni.request({
|
|
|
- url: 'https://minio.menduner.com/dev/8f6f14c642e55254c28098bdbe22c42de33d4673dffd28069c03bf090cf479b9.json',
|
|
|
- method: 'GET',
|
|
|
- success: (res) => {
|
|
|
- // console.log(res.data, 'success-优选集团')
|
|
|
- preferredGroup.value = res.data
|
|
|
- },
|
|
|
- fail: res => {
|
|
|
- log(res, 'fail')
|
|
|
- }
|
|
|
- })
|
|
|
})
|
|
|
|
|
|
const scrollTop = ref(0)
|