|
@@ -3,50 +3,60 @@
|
|
|
<view class="cu-bar search bg-gray">
|
|
|
<view class="search-form round text-center">
|
|
|
<text class="cuIcon-search"></text>
|
|
|
- <input v-model="searchval" :adjust-position="false" type="text" placeholder="搜索岗位或公司" confirm-type="search" @confirm="btnSearch()"></input>
|
|
|
+ <input v-model="searchval" :adjust-position="false" type="text" placeholder="请输入关键字"
|
|
|
+ confirm-type="search" @confirm="btnSearch()"></input>
|
|
|
</view>
|
|
|
<view class="action" v-if="searchval!==''">
|
|
|
<button class="cu-btn bg-white shadow-blur round" @click="btnSearch()">搜索</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="filterbg">
|
|
|
<view class="flex justify-between solids-bottom padding bg-white">
|
|
|
- <view class="text-bold"><view class="cu-tag radius bg-red" @tap="resetFilter">重置</view></view>
|
|
|
+ <view class="text-bold">
|
|
|
+ <view class="cu-tag radius bg-red" @tap="resetFilter">重置</view>
|
|
|
+ </view>
|
|
|
<view class="flex justify-end">
|
|
|
- <view class="cu-tag radius bg-green" data-filterbox="rectype" @click="checkRectype('悬赏招聘',1)">悬赏招聘</view>
|
|
|
- <!-- <view class="cu-tag radius bg-green" data-filterbox="rectype" @tap="showFilter">{{rectypelist.title}}</view> -->
|
|
|
- <view class="cu-tag radius bg-green" data-filterbox="wtype" @tap="showFilter">{{wtypelist.title}}</view>
|
|
|
- <view class="cu-tag radius bg-green" data-filterbox="cate" @tap="showFilter">{{catelist.title}}</view>
|
|
|
- <view class="cu-tag radius bg-green" data-filterbox="area" @tap="showFilter">{{arealist.title}}</view>
|
|
|
+ <!-- <view class="cu-tag radius bg-green" data-filterbox="rectype" @tap="showFilter">
|
|
|
+ {{rectypelist.title}}</view> -->
|
|
|
+ <view class="cu-tag radius bg-green" data-filterbox="wtype" @tap="showFilter">{{wtypelist.title}}
|
|
|
+ </view>
|
|
|
+ <view class="cu-tag radius bg-green" data-filterbox="cate" @tap="showFilter">{{catelist.title}}
|
|
|
+ </view>
|
|
|
+ <view class="cu-tag radius bg-green" data-filterbox="area" @tap="showFilter">{{arealist.title}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="filtercon" v-if="filterbox!==null" @click="hideFilter()">
|
|
|
<view class="padding bg-white" v-if="filterbox=='rectype'" @click.stop>
|
|
|
<block v-for="(item,index) in rectypelist.data" :key="index">
|
|
|
- <button class="cu-btn margin-lr-xs margin-tb-xs" @click="checkRectype(item.title,item.value)">{{item.title}}</button>
|
|
|
+ <button class="cu-btn margin-lr-xs margin-tb-xs"
|
|
|
+ @click="checkRectype(item.title,item.value)">{{item.title}}</button>
|
|
|
</block>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="padding bg-white" v-if="filterbox=='wtype'" @click.stop>
|
|
|
<block v-for="(item,index) in wtypelist.data" :key="index">
|
|
|
- <button class="cu-btn margin-lr-xs margin-tb-xs" @click="checkWtype(item.title,item.value)">{{item.title}}</button>
|
|
|
+ <button class="cu-btn margin-lr-xs margin-tb-xs"
|
|
|
+ @click="checkWtype(item.title,item.value)">{{item.title}}</button>
|
|
|
</block>
|
|
|
</view>
|
|
|
<view class="padding bg-white" v-if="filterbox=='cate'" @click.stop>
|
|
|
<block v-for="(item,index) in catelist.data" :key="index">
|
|
|
- <button class="cu-btn margin-lr-xs margin-tb-xs" @click="checkCate(item.title,item.value)">{{item.title}}</button>
|
|
|
+ <button class="cu-btn margin-lr-xs margin-tb-xs"
|
|
|
+ @click="checkCate(item.title,item.value)">{{item.title}}</button>
|
|
|
</block>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="grid margin-bottom text-left col-3 bg-white" v-if="filterbox=='area'" @click.stop>
|
|
|
<view class="solids-right padding-bottom">
|
|
|
<scroll-view scroll-y="true" style="height: 600rpx;">
|
|
|
<view class="solid-bottom text-gray padding-lr-sm padding-tb-sm">选择市</view>
|
|
|
<view class="solid-bottom padding-lr-sm padding-tb-sm" @click="checkArea(4,0)">全部</view>
|
|
|
<block v-for="(item,index) in arealist.data" :key="index">
|
|
|
- <view class="solid-bottom padding-lr-sm padding-tb-sm" @click="checkArea(1,index)">{{item.title}}</view>
|
|
|
+ <view class="solid-bottom padding-lr-sm padding-tb-sm" @click="checkArea(1,index)">
|
|
|
+ {{item.title}}</view>
|
|
|
</block>
|
|
|
</scroll-view>
|
|
|
</view>
|
|
@@ -54,7 +64,8 @@
|
|
|
<scroll-view scroll-y="true" style="height: 600rpx;">
|
|
|
<view class="solid-bottom text-gray padding-lr-sm padding-tb-sm">选择区县</view>
|
|
|
<block v-for="(item,index) in arealist.cityarr" :key="index">
|
|
|
- <view class="solid-bottom padding-lr-sm padding-tb-sm" @click="checkArea(2,index)">{{item.title}}</view>
|
|
|
+ <view class="solid-bottom padding-lr-sm padding-tb-sm" @click="checkArea(2,index)">
|
|
|
+ {{item.title}}</view>
|
|
|
</block>
|
|
|
</scroll-view>
|
|
|
</view>
|
|
@@ -62,35 +73,40 @@
|
|
|
<scroll-view scroll-y="true" style="height: 600rpx;">
|
|
|
<view class="solid-bottom text-gray padding-lr-sm padding-tb-sm">选择镇街</view>
|
|
|
<block v-for="(item,index) in arealist.districtarr" :key="index">
|
|
|
- <view class="solid-bottom padding-lr-sm padding-tb-sm" @click="checkArea(3,index)">{{item.title}}</view>
|
|
|
+ <view class="solid-bottom padding-lr-sm padding-tb-sm" @click="checkArea(3,index)">
|
|
|
+ {{item.title}}</view>
|
|
|
</block>
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="comjobsList">
|
|
|
<view class="listCard" v-for="(item,index) in plist" :key="index" @tap="goDetail(item.id)">
|
|
|
<view class="listCard-item">
|
|
|
- <image class="item-icon" :src="$getImageUrl('static/images/applet/index/cardA.png')" mode="widthFix"></image>
|
|
|
+ <image class="item-icon" :src="$getImageUrl('static/images/applet/index/cardA.png')"
|
|
|
+ mode="widthFix"></image>
|
|
|
<view class="item-content bold">{{item.title}}</view>
|
|
|
</view>
|
|
|
<view class="listCard-item short">
|
|
|
- <image class="item-icon" :src="$getImageUrl('static/images/applet/index/cardA.png')" mode="widthFix"></image>
|
|
|
+ <image class="item-icon" src="../../static/images/comJobs/icon-sum.png"
|
|
|
+ mode="widthFix"></image>
|
|
|
<view class="item-content red">{{item.zwagall}}</view>
|
|
|
</view>
|
|
|
<view class="listCard-item bottom">
|
|
|
- <image class="item-icon" :src="$getImageUrl('static/images/applet/index/cardA.png')" mode="widthFix"></image>
|
|
|
+ <image class="item-icon" :src="$getImageUrl('static/images/applet/index/cardD.png')"
|
|
|
+ mode="widthFix"></image>
|
|
|
<view class="item-content">地点:{{item.address}}</view>
|
|
|
</view>
|
|
|
<view class="listCard-item short bottom">
|
|
|
- <image class="item-icon" :src="$getImageUrl('static/images/applet/index/cardA.png')" mode="widthFix"></image>
|
|
|
+ <image class="item-icon" src="../../static/images/comJobs/icon-pageView.png"
|
|
|
+ mode="widthFix"></image>
|
|
|
<view class="item-content">浏览量:{{item.volume}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<block v-for="(item,index) in plist" :key="index" v-if="false">
|
|
|
<view class="cu-card dynamic no-card solid-bottom echo-comjobs-item padding-top-sm padding-lr-sm radius">
|
|
|
<view class="cu-item shadow padding-top-sm padding-bottom" @tap="goDetail(item.id)">
|
|
@@ -105,11 +121,14 @@
|
|
|
</view>
|
|
|
<view class="basis-sm text-cut text-right text-gray text-sm">
|
|
|
<view><text class="text-red text-bold">{{item.zwagall}}</text></view>
|
|
|
- <view v-if="item.recruitment_cate == 2"><text class="text-red text-bold">悬赏{{item.retmoney}}{{item.is_pay == 1 ? '(已支付)' : ''}}</text></view>
|
|
|
+ <view v-if="item.recruitment_cate == 2"><text
|
|
|
+ class="text-red text-bold">悬赏{{item.retmoney}}{{item.is_pay == 1 ? '(已支付)' : ''}}</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="padding-lr padding-tb-xs text-cut">
|
|
|
- <view v-for="(titem,tindex) in item.tags" :key="tindex" class="cu-tag light bg-blue lg echo-tags-item">{{titem}}</view>
|
|
|
+ <view v-for="(titem,tindex) in item.tags" :key="tindex"
|
|
|
+ class="cu-tag light bg-blue lg echo-tags-item">{{titem}}</view>
|
|
|
</view>
|
|
|
<view class="padding-lr text-cut text-sm flex justify-between align-center">
|
|
|
<view class="basis-lg text-df text-cut">{{item.worker.title}}</view>
|
|
@@ -132,7 +151,7 @@
|
|
|
</block>
|
|
|
<uni-load-more :status="pstatus"></uni-load-more>
|
|
|
<wxContact></wxContact>
|
|
|
-
|
|
|
+
|
|
|
<view class="padding-sm"></view>
|
|
|
<view class="padding-xl"></view>
|
|
|
<view class="cu-bar tabbar bg-white foot">
|
|
@@ -156,14 +175,14 @@
|
|
|
微工作
|
|
|
</view>
|
|
|
<!-- #endif -->
|
|
|
-
|
|
|
+
|
|
|
<view class="action text-gray" @tap="goNavPage('/pages/broker/brokerlist')">
|
|
|
<view class="cuIcon-cu-image">
|
|
|
<image src="../../static/tabbar/broker.png"></image>
|
|
|
</view>
|
|
|
经纪人
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="action text-gray" @tap="goNavPage('/pages/my/my')">
|
|
|
<view class="cuIcon-cu-image">
|
|
|
<image src="../../static/tabbar/my.png"></image>
|
|
@@ -209,7 +228,7 @@
|
|
|
data: [],
|
|
|
community: "",
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
searchval: "",
|
|
|
pstatus: 'more',
|
|
|
ppage: 1,
|
|
@@ -217,7 +236,7 @@
|
|
|
plist: []
|
|
|
};
|
|
|
},
|
|
|
- onLoad: function(option){
|
|
|
+ onLoad: function(option) {
|
|
|
_this = this;
|
|
|
_this.searchval = option.searchval || "";
|
|
|
// _this.rectypelist.value = option.rectypelistID || 0;
|
|
@@ -230,7 +249,7 @@
|
|
|
_this.$req.ajax({
|
|
|
path: "comjobs/pagecomjobs",
|
|
|
}).then((data) => {
|
|
|
- console.log("分类",data)
|
|
|
+ console.log("分类", data)
|
|
|
_this.catelist.data = data.catelist;
|
|
|
_this.wtypelist.data = data.wtypelist;
|
|
|
_this.rectypelist.data = data.rectypelist;
|
|
@@ -257,51 +276,51 @@
|
|
|
return {
|
|
|
title: "企业招聘",
|
|
|
path: "/pages/comjobs/comjobs"
|
|
|
- }
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
showFilter: function(e) {
|
|
|
var nowfilterbox = e.currentTarget.dataset.filterbox;
|
|
|
- if (_this.filterbox == nowfilterbox){
|
|
|
+ if (_this.filterbox == nowfilterbox) {
|
|
|
_this.filterbox = null;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
_this.filterbox = nowfilterbox;
|
|
|
}
|
|
|
uni.pageScrollTo({
|
|
|
- scrollTop: 0,
|
|
|
- duration: 300
|
|
|
+ scrollTop: 0,
|
|
|
+ duration: 300
|
|
|
});
|
|
|
},
|
|
|
hideFilter: function(e) {
|
|
|
_this.filterbox = null;
|
|
|
},
|
|
|
- checkRectype: function(title,value) {
|
|
|
+ checkRectype: function(title, value) {
|
|
|
_this.rectypelist.title = title;
|
|
|
_this.rectypelist.value = value;
|
|
|
- console.log("悬赏聘",_this.rectypelist.title,_this.rectypelist.value)
|
|
|
+ console.log("悬赏聘", _this.rectypelist.title, _this.rectypelist.value)
|
|
|
_this.filterbox = null;
|
|
|
_this.pageRefresh();
|
|
|
},
|
|
|
- checkWtype: function(title,value) {
|
|
|
+ checkWtype: function(title, value) {
|
|
|
_this.wtypelist.title = title;
|
|
|
_this.wtypelist.value = value;
|
|
|
_this.filterbox = null;
|
|
|
_this.pageRefresh();
|
|
|
},
|
|
|
- checkCate: function(title,value) {
|
|
|
+ checkCate: function(title, value) {
|
|
|
_this.catelist.title = title;
|
|
|
_this.catelist.value = value;
|
|
|
_this.filterbox = null;
|
|
|
_this.pageRefresh();
|
|
|
},
|
|
|
checkArea: function(level, index) {
|
|
|
- if (level==1){
|
|
|
+ if (level == 1) {
|
|
|
_this.arealist.cityarr = _this.arealist.data[index].children;
|
|
|
_this.arealist.districtarr = [];
|
|
|
- }else if (level==2){
|
|
|
+ } else if (level == 2) {
|
|
|
_this.arealist.districtarr = _this.arealist.cityarr[index].children;
|
|
|
_this.arealist.area_2 = _this.arealist.cityarr[index].value;
|
|
|
- }else if (level==3){
|
|
|
+ } else if (level == 3) {
|
|
|
_this.arealist.value = _this.arealist.community = "";
|
|
|
_this.arealist.title = _this.arealist.districtarr[index].title;
|
|
|
if (_this.arealist.area_2 == "350582") {
|
|
@@ -315,10 +334,10 @@
|
|
|
//其他区域
|
|
|
_this.arealist.value = _this.arealist.districtarr[index].title;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
_this.filterbox = null;
|
|
|
_this.pageRefresh();
|
|
|
- }else if (level==4){
|
|
|
+ } else if (level == 4) {
|
|
|
_this.arealist.cityarr = [];
|
|
|
_this.arealist.districtarr = [];
|
|
|
_this.arealist.title = "全部";
|
|
@@ -327,7 +346,7 @@
|
|
|
_this.pageRefresh();
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
// 搜索
|
|
|
bindInput: function(e) {
|
|
|
_this.searchval = e.detail.value;
|
|
@@ -357,7 +376,7 @@
|
|
|
_this.arealist.districtarr = [];
|
|
|
_this.pageRefresh();
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
pageRefresh: function() {
|
|
|
_this.pstatus = 'more';
|
|
|
_this.ppage = 1;
|
|
@@ -373,12 +392,12 @@
|
|
|
searchval: _this.searchval,
|
|
|
cateid: _this.catelist.value,
|
|
|
wtype: _this.wtypelist.value,
|
|
|
- rectype: 1,
|
|
|
+ rectype: _this.rectypelist.value,
|
|
|
district: _this.arealist.value,
|
|
|
community: _this.arealist.community
|
|
|
}
|
|
|
}).then((data) => {
|
|
|
- console.log("查看数据",data)
|
|
|
+ console.log("查看数据", data)
|
|
|
_this.pstatus = data.pstatus;
|
|
|
_this.plist = _this.plist.concat(data.plist);
|
|
|
_this.ppage += 1;
|
|
@@ -407,7 +426,7 @@
|
|
|
_this.province = e.province;
|
|
|
_this.pageRefresh();
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
goNavPage: function(pageurl) {
|
|
|
uni.redirectTo({
|
|
|
url: pageurl
|
|
@@ -420,7 +439,7 @@
|
|
|
<style lang="scss">
|
|
|
.comjobsList {
|
|
|
padding: 28rpx 26rpx 0;
|
|
|
-
|
|
|
+
|
|
|
.listCard {
|
|
|
margin-bottom: 40rpx;
|
|
|
padding: 28rpx 24rpx;
|
|
@@ -428,16 +447,17 @@
|
|
|
border-radius: 12rpx;
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
-
|
|
|
+
|
|
|
.listCard-item {
|
|
|
width: 60%;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
-
|
|
|
+
|
|
|
.item-icon {
|
|
|
width: 35rpx;
|
|
|
+ height: 35rpx;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.item-content {
|
|
|
flex: 1;
|
|
|
margin-left: 15rpx;
|
|
@@ -450,28 +470,28 @@
|
|
|
display: -webkit-box;
|
|
|
-webkit-box-orient: vertical;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.bold {
|
|
|
font-size: 28rpx;
|
|
|
font-weight: 600;
|
|
|
color: #383838;
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
.red {
|
|
|
font-size: 28rpx;
|
|
|
font-weight: 500;
|
|
|
color: #CA151C;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.short {
|
|
|
width: 35%;
|
|
|
margin-left: 15rpx;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.bottom {
|
|
|
margin-top: 28rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|