|
@@ -1,38 +1,38 @@
|
|
|
<template>
|
|
|
<layout-page>
|
|
|
<scroll-view class="scrollBox" scroll-y="true" @scrolltolower="loadingMore" style="position:relative;">
|
|
|
- <view class="content defaultBgc">
|
|
|
- <view class="content-top">
|
|
|
- <view class="content-top-title">
|
|
|
- <view class="content-top-title-label">
|
|
|
- <text class="content-top-title-label-l">全员猎聘</text>
|
|
|
- <text class="content-top-title-label-s">海量岗位 | 推荐有赏</text>
|
|
|
+ <view class="content defaultBgc">
|
|
|
+ <view class="content-top">
|
|
|
+ <view class="content-top-title">
|
|
|
+ <view class="content-top-title-label">
|
|
|
+ <text class="content-top-title-label-l">全员猎聘</text>
|
|
|
+ <text class="content-top-title-label-s">海量岗位 | 推荐有赏</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="content-top-carousel">
|
|
|
- <view class="content-top-carousel-box">
|
|
|
- <SwiperAd :list="swiperAdList"></SwiperAd>
|
|
|
+ <view class="content-top-carousel">
|
|
|
+ <view class="content-top-carousel-box">
|
|
|
+ <SwiperAd :list="swiperAdList"></SwiperAd>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="content-top-recommend">
|
|
|
+ <view class="content-top-recommend-box">
|
|
|
+ <resume-status>
|
|
|
+ <template #header>
|
|
|
+ <view class="content-top-recommend-box-title">
|
|
|
+ <text class="title">我的推荐</text>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </resume-status>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="content-main">
|
|
|
+ <view class="content-main-list">
|
|
|
+ <PositionList class="pb-10" :list="items" :noMore="items.length === total"></PositionList>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="content-top-recommend">
|
|
|
- <view class="content-top-recommend-box">
|
|
|
- <resume-status>
|
|
|
- <template #header>
|
|
|
- <view class="content-top-recommend-box-title">
|
|
|
- <text class="title">我的推荐</text>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </resume-status>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="content-main">
|
|
|
- <view class="content-main-list">
|
|
|
- <PositionList class="pb-10" :list="items" :noMore="items.length === total"></PositionList>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </scroll-view>
|
|
|
+ </scroll-view>
|
|
|
</layout-page>
|
|
|
</template>
|
|
|
|
|
@@ -48,7 +48,16 @@ import { getJobAdvertisedHire } from '@/api/position.js'
|
|
|
import { getDict } from '@/hooks/useDictionaries.js'
|
|
|
import { dealDictArrayData } from '@/utils/position.js'
|
|
|
import PositionList from '@/components/PositionList'
|
|
|
+import { onShow } from '@dcloudio/uni-app'
|
|
|
+// 设置自定义tabbar选中值
|
|
|
+onShow(() => {
|
|
|
+ const currentPage = getCurrentPages()[0]; // 获取当前页面实例
|
|
|
+ const currentTabBar = currentPage?.getTabBar?.();
|
|
|
|
|
|
+ // 设置当前tab页的下标index
|
|
|
+ currentTabBar?.setData({ selected: 3 });
|
|
|
+ getList()
|
|
|
+})
|
|
|
const swiperAdList = ref(swiperAdListTest)
|
|
|
const items = reactive([])
|
|
|
const pageInfo = ref({
|
|
@@ -105,7 +114,7 @@ async function getList () {
|
|
|
|
|
|
}
|
|
|
|
|
|
-getList()
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|