|
|
@@ -34,69 +34,13 @@
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
<!-- 用户端 -->
|
|
|
- <block v-if="userType==1">
|
|
|
- <!-- <view class="topbg"> -->
|
|
|
- <!-- 顶部图片区 -->
|
|
|
- <!-- #ifdef H5 -->
|
|
|
- <!-- <view class="banner flex justify-center" style="padding-top: 20rpx;"
|
|
|
- v-if="bannerListuser.length!=0"> -->
|
|
|
- <!-- #endif -->
|
|
|
- <!-- #ifndef H5 -->
|
|
|
- <!-- <view class="banner flex justify-center" v-if="bannerListuser.length!=0"> -->
|
|
|
- <!-- #endif -->
|
|
|
- <!-- <view class="banner-box">
|
|
|
- <swiper :indicator-dots="false" style="width: 100%;height: 100%;" :autoplay="true"
|
|
|
- :interval="5000" :duration="300">
|
|
|
- <swiper-item v-for="(item,index) in bannerListuser" :key="index"
|
|
|
- @click="goNave(item.url)">
|
|
|
- <view class="swiper-item" style="width: 100%;height: 100%;">
|
|
|
- <image :src="item.imageUrl"
|
|
|
- style="width: 100%;height: 100%;border-radius: 24rpx;"
|
|
|
- mode="scaleToFill">
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- </swiper-item>
|
|
|
- </swiper>
|
|
|
- </view>
|
|
|
- </view> -->
|
|
|
- <!-- 公告区 -->
|
|
|
- <!-- <view class="announcement" v-if="gongao.length!=0">
|
|
|
- <view class="announcementbox">
|
|
|
- <view class="anount">最新公告</view>
|
|
|
- <view class="anounts flex align-center" v-if="gongao.length>0">
|
|
|
- <view class="" style="width: 100%;">
|
|
|
- <u-notice-bar color="#333" bg-color="#e5fff2" padding="0rpx 24rpx 4rpx 24rpx"
|
|
|
- :volume-icon="false" style="height: 100%;" mode="vertical"
|
|
|
- :list="gongao"></u-notice-bar>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="anounts flex align-center" style="padding-left: 30rpx;" v-else>
|
|
|
- 暂无公告
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view> -->
|
|
|
-
|
|
|
- <!-- 企业端 -->
|
|
|
- <!-- <view v-if="gridlist.length!=0">
|
|
|
- <u-grid :col="4" :border="false">
|
|
|
- <u-grid-item bg-color="#00DD9A">
|
|
|
- <view v-for="(item,index) in gridlist" :key="index" style="text-align: center;"
|
|
|
- @click="goNave(item.url)">
|
|
|
- <image :src="item.imageUrl"
|
|
|
- style="width:80rpx;height: 80rpx;border-radius: 50%;">
|
|
|
- </image>
|
|
|
- <view style="color: #FFFFFF;">{{item.name}}</view>
|
|
|
- </view>
|
|
|
- </u-grid-item>
|
|
|
-
|
|
|
- </u-grid>
|
|
|
- </view> -->
|
|
|
- <!-- </view> -->
|
|
|
+ <view v-if="userType==1" class="page-container" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
|
|
|
+
|
|
|
<view class="topbg-sticky">
|
|
|
<image class="top-bg" src="/static/images/index/index-bg.png" mode="widthFix" />
|
|
|
<!-- <view class="top-bg"></view> -->
|
|
|
<!-- 标题-搜索 -->
|
|
|
- <view class="topbg-sticky-box" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
|
|
|
+ <view class="topbg-sticky-box" >
|
|
|
<view class="topbg-sticky-title flex justify-between align-center">
|
|
|
<view class="topbg-sticky-title-left flex align-center">
|
|
|
<image src="../../static/images/index/xingIcon.svg" class="xing-icon" />
|
|
|
@@ -221,7 +165,7 @@
|
|
|
<block v-if="current != typeList.length - 1">
|
|
|
<view class="gwList flex justify-center" v-if="dataList.length>0">
|
|
|
<view class="gwList-box">
|
|
|
- <scroll-view scroll-y="true" style="width: 100%;height: 60vh;">
|
|
|
+ <scroll-view scroll-y="true" style="width: 100%;height: 100%;">
|
|
|
<view class="gwList-box-item flex justify-center" @click="gotoInfo(item.postPushId)"
|
|
|
v-for="(item,index) in dataList" :key="index">
|
|
|
<view class="gwList-box-item-box">
|
|
|
@@ -295,31 +239,12 @@
|
|
|
<view class="gwList" v-if="current == typeList.length - 1 && companList.length==0">
|
|
|
<empty />
|
|
|
</view>
|
|
|
- </block>
|
|
|
+ </view>
|
|
|
<!-- 企业版 -->
|
|
|
- <block v-else>
|
|
|
- <!-- 顶部banner图片 -->
|
|
|
- <!--
|
|
|
- <view class="banner flex justify-center">
|
|
|
- <view class="banner-box">
|
|
|
- <swiper :indicator-dots="false" style="width: 100%;height: 100%;" :autoplay="true"
|
|
|
- :interval="5000" :duration="300">
|
|
|
- <swiper-item v-for="(item,index) in bannerList" :key="index">
|
|
|
- <view class="swiper-item" style="width: 100%;height: 100%;">
|
|
|
- <image :src="item.imageUrl" style="width: 100%;height: 100%;border-radius: 24rpx;"
|
|
|
- mode="scaleToFill"></image>
|
|
|
- </view>
|
|
|
- </swiper-item>
|
|
|
- </swiper>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- -->
|
|
|
-
|
|
|
+ <view v-else class="page-container" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
|
|
|
<view class="topbg-sticky">
|
|
|
- <!-- <image class="top-bg" src="/static/images/index/index-bg1.png" mode="widthFix" /> -->
|
|
|
- <!-- <view class="top-bg"></view> -->
|
|
|
<!-- 标题-搜索 -->
|
|
|
- <view class="topbg-sticky-box" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
|
|
|
+ <view class="topbg-sticky-box">
|
|
|
<view class="topbg-sticky-title flex justify-between align-center">
|
|
|
<view class="topbg-sticky-title-left flex align-center">
|
|
|
<image src="../../static/images/index/xingIcon.svg" class="xing-icon" />
|
|
|
@@ -329,12 +254,7 @@
|
|
|
</view>
|
|
|
<view class="topbg-sticky-subtitle">亿职赞,愿你在逐梦路上找到心仪伙伴</view>
|
|
|
</view>
|
|
|
-
|
|
|
- <!-- tabs和筛选 -->
|
|
|
</view>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<!-- 最新公告 -->
|
|
|
<view class="announcement" v-if="gongao.length!=0">
|
|
|
<view class="announcementbox">
|
|
|
@@ -508,8 +428,7 @@
|
|
|
<empty :isShow="false" v-if="datasList.length==0" />
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
- </block>
|
|
|
+ </view>
|
|
|
</block>
|
|
|
|
|
|
<view v-if="goback==true" class="goback" @click="gotoBack">
|
|
|
@@ -710,7 +629,7 @@
|
|
|
this.statusBarHeight = systemInfo.statusBarHeight || 0;
|
|
|
this.companyId = uni.getStorageSync('companyId');
|
|
|
// #ifdef APP
|
|
|
- this.getAudioPermision()
|
|
|
+ /* this.getAudioPermision() */
|
|
|
// #endif
|
|
|
// 获取邀请码保存到本地
|
|
|
if (e.invitation) {
|
|
|
@@ -723,9 +642,9 @@
|
|
|
}
|
|
|
// #endif
|
|
|
// this.XCXIsSelect = this.$queue.getData("XCXIsSelect");
|
|
|
- uni.showLoading({
|
|
|
- title: '加载中'
|
|
|
- })
|
|
|
+ // uni.showLoading({
|
|
|
+ // title: '加载中'
|
|
|
+ // })
|
|
|
|
|
|
if (uni.getStorageSync('userType')) {
|
|
|
this.userType = uni.getStorageSync('userType');
|
|
|
@@ -744,7 +663,7 @@
|
|
|
})
|
|
|
|
|
|
|
|
|
-
|
|
|
+ this.getLocalJobs();
|
|
|
this.getDomWidth()
|
|
|
this.$Request.getT('/app/common/type/255').then(res => {
|
|
|
if (res.code === 0) {
|
|
|
@@ -879,7 +798,6 @@
|
|
|
}
|
|
|
if (this.token) {
|
|
|
this.getUserInfo();
|
|
|
-
|
|
|
if (this.userType == 1) {
|
|
|
this.getJobType();
|
|
|
} else {
|
|
|
@@ -954,11 +872,14 @@
|
|
|
},
|
|
|
//
|
|
|
async getLocalJobs() {
|
|
|
+ // #ifdef APP
|
|
|
const hasLocation = await this.$queue.checkPermission(
|
|
|
'location',
|
|
|
'获取位置需要定位权限,用于推荐同城的求职岗位'
|
|
|
);
|
|
|
if (!hasLocation) return;
|
|
|
+ // #endif
|
|
|
+ let that = this;
|
|
|
// 权限通过,调用定位API
|
|
|
uni.getLocation({
|
|
|
type: 'wgs84', //wgs84 gcj02
|
|
|
@@ -1301,7 +1222,7 @@
|
|
|
page: this.page,
|
|
|
limit: this.limit,
|
|
|
postType: '', //工作性质
|
|
|
- expectedPosition: this.jobSxTypeList[this.currentJobSx].projectName, //岗位名称
|
|
|
+ expectedPosition: this.jobSxTypeList.length>0?this.jobSxTypeList[this.currentJobSx].projectName:'', //岗位名称
|
|
|
screen: +this.currentJobSxs + 1, //1推荐 2最新
|
|
|
expectedCity: this.city == '全国' ? '' : this.city, //城市
|
|
|
salaryRange: this.salaryRange, //薪资范围
|
|
|
@@ -1467,7 +1388,7 @@
|
|
|
page: this.page,
|
|
|
limit: this.limit,
|
|
|
//postType: this.typeList.length > 0 ? this.typeList[this.current].id : '',
|
|
|
- ruleClassifyName: this.typeList[this.current].name, //岗位名称
|
|
|
+ ruleClassifyName: this.typeList.length>0?this.typeList[this.current].name:'', //岗位名称
|
|
|
screen: +this.currentSx + 1, //1推荐 2最新
|
|
|
county: this.county, //区
|
|
|
city: this.city == '全国' ? '' : this.city, //城市
|
|
|
@@ -1595,11 +1516,11 @@
|
|
|
this.$Request.get("/app/user/selectUserById").then(res => {
|
|
|
if (res.code == 0) {
|
|
|
console.log(res.data)
|
|
|
- this.$queue.setData('weChatNum', res.data.weChatNum)
|
|
|
- if (res.data.companyId) {
|
|
|
- uni.setStorageSync('companyId', res.data.companyId)
|
|
|
+ this.$queue.setData('weChatNum', res.data?.weChatNum)
|
|
|
+ if (res.data && res.data.companyId) {
|
|
|
+ uni.setStorageSync('companyId', res.data?.companyId)
|
|
|
}
|
|
|
- if (res.data.userType == 1 || res.data.userType == null) {
|
|
|
+ if (res.data?.userType == 1 || res.data?.userType == null) {
|
|
|
this.userType = 1
|
|
|
uni.setStorageSync('userType', 1)
|
|
|
} else {
|
|
|
@@ -1814,6 +1735,11 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
+ .page-container{
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ height: calc(100vh - 50px);
|
|
|
+ }
|
|
|
page {
|
|
|
background: #F2F2F7;
|
|
|
}
|
|
|
@@ -2358,8 +2284,9 @@
|
|
|
|
|
|
.gwList {
|
|
|
width: 100%;
|
|
|
- // margin-top: 220rpx;
|
|
|
-
|
|
|
+ flex: 1;
|
|
|
+ overflow: auto;
|
|
|
+ margin-bottom: 10rpx;
|
|
|
.gwList-box {
|
|
|
width: 710rpx;
|
|
|
height: 100%;
|