|
@@ -3,12 +3,25 @@
|
|
<template>
|
|
<template>
|
|
<view class="box" :style="`background-color: ${backgroundColor}`">
|
|
<view class="box" :style="`background-color: ${backgroundColor}`">
|
|
<scroll-view class="scrollBox" :scroll-y="true" :scroll-top="scrollTop" @scrolltolower="loadingMore" @scroll="onScroll" style="position:relative;">
|
|
<scroll-view class="scrollBox" :scroll-y="true" :scroll-top="scrollTop" @scrolltolower="loadingMore" @scroll="onScroll" style="position:relative;">
|
|
- <view>
|
|
|
|
|
|
+ <view style="position: relative;">
|
|
<!-- 轮播图 -->
|
|
<!-- 轮播图 -->
|
|
<SwiperAd v-if="swiperAdList.length && !query.enterpriseId" :list="swiperAdList" margin="0" borderRadius="0" @click="handleToDetails"></SwiperAd>
|
|
<SwiperAd v-if="swiperAdList.length && !query.enterpriseId" :list="swiperAdList" margin="0" borderRadius="0" @click="handleToDetails"></SwiperAd>
|
|
<view class="stick" :style="`background-color: ${backgroundColor}`">
|
|
<view class="stick" :style="`background-color: ${backgroundColor}`">
|
|
<!-- tab页签 -->
|
|
<!-- tab页签 -->
|
|
<scroll-view v-if="tabList?.length && !query.enterpriseId" scroll-x="true" class="scroll-container">
|
|
<scroll-view v-if="tabList?.length && !query.enterpriseId" scroll-x="true" class="scroll-container">
|
|
|
|
+ <view style="position: relative;" class="ss-m-t-30" >
|
|
|
|
+ <uni-search-bar
|
|
|
|
+ v-model="query.content"
|
|
|
|
+ placeholder="输入职位/公司关键字"
|
|
|
|
+ cancelButton="none"
|
|
|
|
+ :focus="false"
|
|
|
|
+ bgColor="#fff"
|
|
|
|
+ @confirm="onSearch($event.value)"
|
|
|
|
+ @clear="query.content = ''; onSearch()"
|
|
|
|
+ >
|
|
|
|
+ </uni-search-bar>
|
|
|
|
+ <button class="search-btn" @tap.stop="onSearch">搜索</button>
|
|
|
|
+ </view>
|
|
<view
|
|
<view
|
|
class="scroll-item"
|
|
class="scroll-item"
|
|
:style="`margin-left: ${index ? '24px' : ''};`"
|
|
:style="`margin-left: ${index ? '24px' : ''};`"
|
|
@@ -38,12 +51,12 @@
|
|
<view v-else class="nodata-img-parent">
|
|
<view v-else class="nodata-img-parent">
|
|
<uni-load-more class="ss-m-t-50" :color="textColor" status="noMore" :content-text="{'contentnomore': '暂无数据,请切换类型查看~'}" />
|
|
<uni-load-more class="ss-m-t-50" :color="textColor" status="noMore" :content-text="{'contentnomore': '暂无数据,请切换类型查看~'}" />
|
|
</view>
|
|
</view>
|
|
|
|
+ <!-- 招聘会分享按钮 -->
|
|
|
|
+ <view v-if="showShareBtn" class="shareButtonBox" @tap="handleShare">
|
|
|
|
+ <uni-icons type="redo-filled" size="20" color="#fff" />
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
- <!-- 招聘会分享按钮 -->
|
|
|
|
- <view v-if="showShareBtn" class="shareButtonBox" @tap="handleShare">
|
|
|
|
- <uni-icons type="redo-filled" size="20" color="#fff" />
|
|
|
|
- </view>
|
|
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -61,6 +74,7 @@ const listData = ref([])
|
|
const query = reactive({
|
|
const query = reactive({
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
|
|
+ content: '',
|
|
jobFairId: undefined,
|
|
jobFairId: undefined,
|
|
})
|
|
})
|
|
|
|
|
|
@@ -138,6 +152,12 @@ const handClickTab = (index) => {
|
|
getEntPositionList()
|
|
getEntPositionList()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const onSearch = () => {
|
|
|
|
+ query.pageNo = 1
|
|
|
|
+ listData.value = []
|
|
|
|
+ getEntPositionList()
|
|
|
|
+}
|
|
|
|
+
|
|
const getEntPositionList = async () => {
|
|
const getEntPositionList = async () => {
|
|
if (!query.jobFairId) {
|
|
if (!query.jobFairId) {
|
|
uni.showToast({ title: '获取企业岗位失败,请重试!', icon: 'none', duration: 2000 })
|
|
uni.showToast({ title: '获取企业岗位失败,请重试!', icon: 'none', duration: 2000 })
|
|
@@ -205,7 +225,7 @@ const handleShare = () => {
|
|
}
|
|
}
|
|
.shareButtonBox {
|
|
.shareButtonBox {
|
|
z-index: 1;
|
|
z-index: 1;
|
|
- position: fixed;
|
|
|
|
|
|
+ position: absolute;
|
|
right: 20px;
|
|
right: 20px;
|
|
top: 16px;
|
|
top: 16px;
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
@@ -285,4 +305,35 @@ const handleShare = () => {
|
|
border-radius: 2px;
|
|
border-radius: 2px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+:deep(.uni-searchbar) {
|
|
|
|
+ // background-color: #fff !important;
|
|
|
|
+ padding: 0;
|
|
|
|
+ margin: 0 10px;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+:deep(.uni-searchbar__box) {
|
|
|
|
+ width: calc(100% - 100px);
|
|
|
|
+ height: 40px !important;
|
|
|
|
+ // border: 1px solid #00B760;
|
|
|
|
+ padding-right: 20px;
|
|
|
|
+ flex: none;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.search-btn {
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 13px;
|
|
|
|
+ top: 3px;
|
|
|
|
+ width: 106px;
|
|
|
|
+ height: 34px;
|
|
|
|
+ line-height: 34px;
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ // margin: 4px 4px 4px 0;
|
|
|
|
+ background-color: #00B760;
|
|
|
|
+ color: #fff;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+ z-index: 9;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|