|
@@ -40,7 +40,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
- <view v-if="showShareBtn" class="shareButtonBox" @tap="handleShare">
|
|
|
|
|
|
+ <view class="shareButtonBox" @tap="handleShare">
|
|
<uni-icons type="redo-filled" size="20" color="#fff" />
|
|
<uni-icons type="redo-filled" size="20" color="#fff" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -55,7 +55,6 @@ import PositionList from '@/components/PositionList'
|
|
import SwiperAd from '@/components/SwiperAd'
|
|
import SwiperAd from '@/components/SwiperAd'
|
|
|
|
|
|
const more = ref('more')
|
|
const more = ref('more')
|
|
-const showShareBtn = ref(false)
|
|
|
|
const listData = ref([])
|
|
const listData = ref([])
|
|
const query = reactive({
|
|
const query = reactive({
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
@@ -95,8 +94,8 @@ const getJobFairDetail = async () => {
|
|
const { data } = await getJobFair(query.jobFairId)
|
|
const { data } = await getJobFair(query.jobFairId)
|
|
// tab
|
|
// tab
|
|
if (data?.tag?.length) {
|
|
if (data?.tag?.length) {
|
|
- tabList.value = data.tag
|
|
|
|
- tabIndex.value = 0
|
|
|
|
|
|
+ tabList.value = data?.tag || []
|
|
|
|
+ if (tabList.value?.length) handClickTab(0)
|
|
}
|
|
}
|
|
// 轮播图
|
|
// 轮播图
|
|
if (data?.headImg?.length) {
|
|
if (data?.headImg?.length) {
|
|
@@ -106,8 +105,6 @@ const getJobFairDetail = async () => {
|
|
if (data?.backgroundColour) {
|
|
if (data?.backgroundColour) {
|
|
backgroundColor.value = data.backgroundColour || '#fff'
|
|
backgroundColor.value = data.backgroundColour || '#fff'
|
|
}
|
|
}
|
|
- showShareBtn.value= true
|
|
|
|
- getEntPositionList()
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// 切换类型
|
|
// 切换类型
|
|
@@ -125,10 +122,10 @@ const getEntPositionList = async () => {
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
const params = { ...query }
|
|
const params = { ...query }
|
|
- const positionIdValue = tabIndex.value !== -1 ? tabList.value[tabIndex.value]?.value : []
|
|
|
|
- positionIdValue?.length && positionIdValue.forEach((value, index) => {
|
|
|
|
- params[`positionId[${index}]`] = value
|
|
|
|
- })
|
|
|
|
|
|
+ // tab对应的职位类型id列表
|
|
|
|
+ const idList = tabIndex.value !== -1 ? tabList.value[tabIndex.value]?.value : []
|
|
|
|
+ idList?.length && idList.forEach((value, index) => { params[`positionId[${index}]`] = value })
|
|
|
|
+ //
|
|
const res = await getJobFairEntJobPage(params)
|
|
const res = await getJobFairEntJobPage(params)
|
|
const list = res?.data?.list || []
|
|
const list = res?.data?.list || []
|
|
list.forEach(e => {
|
|
list.forEach(e => {
|
|
@@ -136,7 +133,6 @@ const getEntPositionList = async () => {
|
|
e.enterprise = { ...e.enterprise, ...dealDictObjData({}, e.enterprise)}
|
|
e.enterprise = { ...e.enterprise, ...dealDictObjData({}, e.enterprise)}
|
|
})
|
|
})
|
|
listData.value = listData.value.concat(list)
|
|
listData.value = listData.value.concat(list)
|
|
- // showShareBtn.value = true
|
|
|
|
if (listData.value?.length === +res?.data?.total) {
|
|
if (listData.value?.length === +res?.data?.total) {
|
|
more.value = 'noMore'
|
|
more.value = 'noMore'
|
|
return
|
|
return
|
|
@@ -171,7 +167,7 @@ const loadingMore = () => {
|
|
const handleShare = () => {
|
|
const handleShare = () => {
|
|
// 分享招聘会
|
|
// 分享招聘会
|
|
let url = `/pagesB/jobFair/${query.enterpriseId ? 'jobFairEntShare' : 'jobFairShare'}?jobFairId=${query.jobFairId}`
|
|
let url = `/pagesB/jobFair/${query.enterpriseId ? 'jobFairEntShare' : 'jobFairShare'}?jobFairId=${query.jobFairId}`
|
|
- // 分享招聘会-企业
|
|
|
|
|
|
+ // 分享招聘会企业
|
|
if (query.enterpriseId) url = url + `&enterpriseId=${query.enterpriseId}`
|
|
if (query.enterpriseId) url = url + `&enterpriseId=${query.enterpriseId}`
|
|
//
|
|
//
|
|
uni.navigateTo({ url })
|
|
uni.navigateTo({ url })
|