|
@@ -4,40 +4,64 @@
|
|
|
<view class="box" :style="`background-color: ${backgroundColor}`">
|
|
|
<scroll-view class="scrollBox" :scroll-y="true" :scroll-top="scrollTop" @scrolltolower="loadingMore" @scroll="onScroll" style="position:relative;">
|
|
|
<view style="position: relative;">
|
|
|
- <!-- 轮播图 -->
|
|
|
- <SwiperAd v-if="swiperAdList.length && !query.enterpriseId" :list="swiperAdList" margin="0" borderRadius="0"></SwiperAd>
|
|
|
- <view class="stick" :style="`background-color: ${backgroundColor}`">
|
|
|
- <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>
|
|
|
+
|
|
|
+ <!-- 招聘会企业下的职位列表 -->
|
|
|
+ <template v-if="query?.enterpriseId">
|
|
|
+ <view class="enterpriseName" :style="`color: ${entNameColor}`">{{ entName }}</view>
|
|
|
+ <!-- 超长企业名称超长企业名称名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称超长企业名称123 -->
|
|
|
+ <view class="stick ss-p-y-30" :style="`background-color: ${backgroundColor}`">
|
|
|
+ <!-- 搜索条 -->
|
|
|
+ <view style="position: relative;">
|
|
|
+ <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>
|
|
|
- <!-- tab页签 -->
|
|
|
- <scroll-view v-if="tabList?.length && !query.enterpriseId" scroll-x="true" class="scroll-container">
|
|
|
- <view
|
|
|
- class="scroll-item"
|
|
|
- :style="`margin-left: ${index ? '24px' : ''};`"
|
|
|
- v-for="(val, index) in tabList" :key="index+val"
|
|
|
- @tap="handClickTab(index)"
|
|
|
- >
|
|
|
- <view>
|
|
|
- <view class="text">{{ val.title }}</view>
|
|
|
- <view v-if="index === tabIndex" class="choose" style="background-color: #fff;"></view>
|
|
|
- <view v-else class="choose" style="background-color: #ffffff00;"></view>
|
|
|
- </view>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 招聘会职位列表 -->
|
|
|
+ <template v-else>
|
|
|
+ <SwiperAd v-if="swiperAdList.length && !query.enterpriseId" :list="swiperAdList" margin="0" borderRadius="0"></SwiperAd>
|
|
|
+ <view class="stick ss-p-t-30" :style="`background-color: ${backgroundColor}`">
|
|
|
+ <view style="position: relative;">
|
|
|
+ <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>
|
|
|
- </scroll-view>
|
|
|
- <!-- entName 企业》企业内职位列表 -->
|
|
|
- <view v-if="entName && query.enterpriseId" class="enterpriseName" :style="`color: ${entNameColor}`">{{ entName }}</view>
|
|
|
- </view>
|
|
|
+
|
|
|
+ <!-- 横向分类页签 -->
|
|
|
+ <scroll-view v-if="tabList?.length && !query.enterpriseId" scroll-x="true" class="scroll-container">
|
|
|
+ <view
|
|
|
+ class="scroll-item"
|
|
|
+ :style="`margin-left: ${index ? '24px' : ''};`"
|
|
|
+ v-for="(val, index) in tabList" :key="index+val"
|
|
|
+ @tap="handClickTab(index)"
|
|
|
+ >
|
|
|
+ <view>
|
|
|
+ <view class="text">{{ val.title }}</view>
|
|
|
+ <view v-if="index === tabIndex" class="choose" style="background-color: #fff;"></view>
|
|
|
+ <view v-else class="choose" style="background-color: #ffffff00;"></view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </scroll-view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
<view v-if="listData?.length" class="listDataBox">
|
|
|
<PositionList
|
|
|
:list="listData"
|
|
@@ -53,7 +77,7 @@
|
|
|
</view>
|
|
|
<!-- 招聘会分享按钮 -->
|
|
|
<view v-if="showShareBtn" class="shareButtonBox" @tap="handleShare">
|
|
|
- <uni-icons type="redo-filled" size="20" color="#fff" />
|
|
|
+ <uni-icons type="redo-filled" size="23" color="#fff" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
@@ -289,25 +313,11 @@ const handleShare = () => {
|
|
|
}
|
|
|
|
|
|
.enterpriseName {
|
|
|
- position: relative;
|
|
|
- padding: 18px 30rpx;
|
|
|
- padding-left: 39px;
|
|
|
- height: 24px;
|
|
|
- line-height: 24px;
|
|
|
color: #fff;
|
|
|
font-size: 18px;
|
|
|
font-weight: bold;
|
|
|
- &::before {
|
|
|
- display: block;
|
|
|
- content: '';
|
|
|
- width: 4px;
|
|
|
- height: 24px;
|
|
|
- background-color: #fff;
|
|
|
- position: absolute;
|
|
|
- top: 20px;
|
|
|
- left: 25px;
|
|
|
- border-radius: 2px;
|
|
|
- }
|
|
|
+ line-height: 28px;
|
|
|
+ padding: 15px 80px 15px 30px;
|
|
|
}
|
|
|
|
|
|
:deep(.uni-searchbar) {
|