|
@@ -53,6 +53,7 @@ import { dealDictObjData } from '@/utils/position'
|
|
|
import { getJobFairEntJobPage, getJobFair } from '@/api/jobFair'
|
|
|
import PositionList from '@/components/PositionList'
|
|
|
import SwiperAd from '@/components/SwiperAd'
|
|
|
+import { getShareQueryById } from '@/api/jobFair.js'
|
|
|
|
|
|
const more = ref('more')
|
|
|
const showShareBtn = ref(false)
|
|
@@ -65,18 +66,26 @@ const query = reactive({
|
|
|
|
|
|
const entName = ref('')
|
|
|
|
|
|
+let obj = {}
|
|
|
onLoad(async (options) => {
|
|
|
- if (options?.jobFairId) {
|
|
|
- query.jobFairId = options.jobFairId
|
|
|
- if (options.enterpriseId) {
|
|
|
- query.enterpriseId = options.enterpriseId
|
|
|
- entName.value = options.entName
|
|
|
+ // 网站二维码分享
|
|
|
+ if (options?.scene) {
|
|
|
+ const key = decodeURIComponent(options?.scene).split('=')[1]
|
|
|
+ const result = await getShareQueryById({ key })
|
|
|
+ obj = result.data
|
|
|
+ }
|
|
|
+
|
|
|
+ if (options?.jobFairId || obj?.jobFairId) {
|
|
|
+ query.jobFairId = options?.jobFairId || obj?.jobFairId
|
|
|
+ if (options?.enterpriseId || obj?.enterpriseId) {
|
|
|
+ query.enterpriseId = options?.enterpriseId || obj?.enterpriseId
|
|
|
+ entName.value = options?.entName || obj?.entName
|
|
|
getEntPositionList()
|
|
|
} else {
|
|
|
getJobFairDetail()
|
|
|
}
|
|
|
}
|
|
|
- if (options.backgroundColor) backgroundColor.value = options.backgroundColor
|
|
|
+ if (options.backgroundColor || obj?.backgroundColor) backgroundColor.value = options.backgroundColor || obj?.backgroundColor
|
|
|
})
|
|
|
|
|
|
// 招聘会详情
|