|
|
@@ -156,18 +156,18 @@
|
|
|
<view class="gwList flex justify-center" v-if="dataList.length>0">
|
|
|
<view class="gwList-box">
|
|
|
<scroll-view scroll-y="true" style="width: 100%;height: 100%;">
|
|
|
- <view class="box" v-for="(item,index) in dataList" :key="index">
|
|
|
- <view class="gwList-box-item company" @click="gotoInfo(item.postPushId)">
|
|
|
+ <view class="box" v-for="(item,index) in dataList" :key="'company'+index">
|
|
|
+ <view class="gwList-box-item company" @click="goTo('/my/enterpriseInfo/enterpriseInfo?companyId=' + item.companyId)">
|
|
|
<view class="gwList-box-item-box">
|
|
|
<view class="gwList-box-item-box-title flex justify-between align-center">
|
|
|
- <u-avatar src="../../static/images/index/jipinIcom.svg" class="jipin-icon" ></u-avatar>
|
|
|
+ <u-avatar :src="item.companyLogo?item.companyLogo:'../../static/images/index/jipinIcom.svg'" class="jipin-icon" ></u-avatar>
|
|
|
<view class="gwList-box-item-box-info-l">
|
|
|
- <view class="companyTitle">{{item.companyName}}</view>
|
|
|
+ <view class="companyTitle">{{item.companyAllName}}</view>
|
|
|
<view class="company-info-text">
|
|
|
{{item.companyPeople}} · {{item.companyScope}}
|
|
|
</view>
|
|
|
<view class="company-info-text">
|
|
|
- {{item.workTime}} · <text v-for="we in item.welfare">{{we}} · </text>
|
|
|
+ {{item.workTime}} <text v-if="item.welfare.length>0">·</text> <text v-for="(we,i) in item.welfare" :key="'welfare'+i">{{we}} <text v-if="i<item.welfare.length-1">·</text> </text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="goRight">
|
|
|
@@ -176,8 +176,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="gwList-box-item companyPost" v-for="(it,ind) in item.postPushList" :key="index">
|
|
|
- <view class="gwList-box-item-box">
|
|
|
+ <view class="gwList-box-item companyPost" v-for="(it,ind) in item.postPushList" :key="'post'+ind">
|
|
|
+ <view class="gwList-box-item-box" @click="goTo('/pages/index/game/order?postPushId=' + it.postPushId)">
|
|
|
<!-- 标题-薪资 -->
|
|
|
<view class="gwList-box-item-box-info flex justify-between align-center">
|
|
|
<view class="gwList-box-item-box-info-l">
|
|
|
@@ -196,7 +196,7 @@
|
|
|
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if="item.postPushList.length>3" class="gwList-box-item companyPost">
|
|
|
+ <view v-if="item.postPushList.length>3" class="gwList-box-item companyPost" @click="goTo('/my/enterpriseInfo/enterpriseInfo?companyId=' + item.companyId)">
|
|
|
<view class="gwList-box-item-box">
|
|
|
<!-- 标题-薪资 -->
|
|
|
<view class="morePost">查看更多职位</view>
|
|
|
@@ -282,12 +282,14 @@
|
|
|
],
|
|
|
showSortModalFlag: false,
|
|
|
selectedSort: 0,
|
|
|
- sortOptions: ['综合排序', '最新优先', '距离优先']
|
|
|
+ sortOptions: ['综合排序', '最新优先', '距离优先'],
|
|
|
+ filter:'筛选'
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
currentSx(newData, oldData) {
|
|
|
this.page = 1
|
|
|
+ this.dataList=[]
|
|
|
this.getUserList();
|
|
|
},
|
|
|
},
|
|
|
@@ -385,6 +387,8 @@
|
|
|
|
|
|
//判断岗位名称与职位名称是否相同(不区分大小写)
|
|
|
isSameName(className, name) {
|
|
|
+ if(!className||!name)
|
|
|
+ return;
|
|
|
let str1 = className.trim();
|
|
|
let str2 = name.trim();
|
|
|
if (str1.length !== str2.length) {
|
|
|
@@ -406,6 +410,20 @@
|
|
|
}
|
|
|
|
|
|
},
|
|
|
+ goTo(action){
|
|
|
+ if (uni.getStorageSync('token')) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: action,
|
|
|
+ success(e) {
|
|
|
+ console.log(e)
|
|
|
+ },fail(e) {
|
|
|
+ console.log(e)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.noLogin()
|
|
|
+ }
|
|
|
+ },
|
|
|
//我的搜索关键词
|
|
|
getMyRecordList() {
|
|
|
this.$Request.get('/app/record/getMyRecordList', {
|
|
|
@@ -477,6 +495,8 @@
|
|
|
lat: this.latitude,
|
|
|
userId: uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
|
|
|
}
|
|
|
+ if(this.currentSx==1)
|
|
|
+ data.keyword=this.keyword
|
|
|
let action=this.currentSx==1?'/app/company/listCompany':'/app/postPush/userGetPostPushList'
|
|
|
|
|
|
this.$Request.get(action, data).then(res => {
|
|
|
@@ -563,16 +583,6 @@
|
|
|
// 这里可以添加排序逻辑
|
|
|
this.getUserList();
|
|
|
},
|
|
|
-
|
|
|
- // 判断分类名称和职位名称是否相同
|
|
|
- isSameName(className, name) {
|
|
|
- let str1 = className.trim();
|
|
|
- let str2 = name.trim();
|
|
|
- if (str1.length !== str2.length) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- return str1.toLowerCase() !== str2.toLowerCase();
|
|
|
- },
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
|
@@ -1099,6 +1109,11 @@
|
|
|
padding: 20rpx;
|
|
|
background:#fff;
|
|
|
margin-bottom:0rpx;
|
|
|
+ .gwList-box-item-box-info-l{
|
|
|
+ width: 80%;
|
|
|
+ margin-left:20rpx;
|
|
|
+ margin-right: 20rpx;
|
|
|
+ }
|
|
|
}
|
|
|
.companyPost{
|
|
|
padding: 20rpx;
|