作者 Lijianheng

updata

... ... @@ -25,10 +25,9 @@
"pages/myMessage2/myMessage2",
"pages/myMessage/myMessage",
"pages/index/select/select",
"pages/index/search_5/search_5",
"pages/index/search_4/search_4",
"pages/index/search_2/search_2",
"pages/index/search_3/search_3",
"pages/index/url/url",
"pages/index/index",
... ...
... ... @@ -16,9 +16,10 @@ Page({
* 生命周期函数--监听页面加载
*/
// 跳转岗位信息
toPosition() {
toPosition(e) {
let id = e.currentTarget.dataset.id
wx.navigateTo({
url: '/pages/positionDetails/positionDetails',
url: '/pages/positionDetails/positionDetails?id='+id,
})
},
// 跳转招聘者信息
... ...
... ... @@ -33,7 +33,7 @@
相关岗位
</view>
<view class='item' bindtap='toPosition' wx:for='{{employerJ}}' wx:key=''>
<view class='item' bindtap='toPosition' wx:for='{{employerJ}}' wx:key='' data-id='{{item.id}}'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
... ... @@ -42,7 +42,7 @@
</view>
<view class='item_top_left_text'>
<view class='text_top'>{{item.station_name}}</view>
<view class='text_bottom'>{{item.min_money}}-{{item.max_money}}{{item.unit_id}}</view>
<view class='text_bottom'>{{item.min_money}}-{{item.max_money}}{{item.unit_name}}</view>
</view>
</view>
... ...
... ... @@ -55,7 +55,7 @@ Page({
// wx.navigateTo({
// url: '/pages/mine/mine',
// })
// },1000)
// },1500)
}).catch((err) => {
... ...
... ... @@ -18,8 +18,10 @@ Page({
station_1: '',
education_1: '',
salary_1: '',
categories_id:'',
categories_id: 5,
categories_name:'',
user_id: '',
district:'',
// 获取经纬度
... ... @@ -45,16 +47,25 @@ Page({
indicatorActiveColor: "rgba(255,255,255,1)", //当前选中的指示点颜色
// 导航选择
navbar: [{
name: '地区'
name: '地区',
img:'../../img/aicon_11@2x.png',
img1: "../../img/aicon_59@2x.png"
},
{
name: '岗位'
name: '岗位',
img: '../../img/aicon_11@2x.png',
img1: "../../img/aicon_59@2x.png"
},
{
name: '推荐排序'
name: '推荐排序',
img: '../../img/aicon_11@2x.png',
img1: "../../img/aicon_59@2x.png"
},
{
name: '筛选'
name: '筛选',
img: '../../img/aicon_12@2x.png',
img1: '../../img/aicon_12@2x.png',
}
],
currentTab: 0,
... ... @@ -198,16 +209,28 @@ Page({
mask: true
})
},
mask_close() {
this.setData({
mask: false
})
console.log(222242424)
},
// 点击确定后关闭筛选遮罩层
toConfirm(){
this.setData({
mask: false
})
},
// 跳转岗位信息
toPosition(){
toPosition(e) {
console.log(e)
// 绑定id跳转至工作详情
let that = this;
let id = e.currentTarget.dataset.id;
wx.navigateTo({
url: '/pages/positionDetails/positionDetails',
url: '/pages/positionDetails/positionDetails?id=' + id,
})
},
// 跳转招聘者信息
... ... @@ -216,6 +239,16 @@ Page({
url: '/pages/employerDetails/employerDetails',
})
},
// 跳转至搜索页面
toSearch(){
wx.navigateTo({
url: '/pages/index/search_2/search_2',
})
},
// ----- 更新简历 -----
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -230,11 +263,14 @@ Page({
this.selectSalary()
this.getJobs()
},
getJobs() {
let that = this;
let url = 'index/job/jobs';
let params = {
categories_id: that.data.categories_id,
}
let header = {
"XX-Token": wx.getStorageSync('token'),
... ... @@ -245,8 +281,10 @@ Page({
// 获取值
that.setData({
// personal: res.data
jobs: res.data
jobs: res.data,
industry_id:res.data[0].industry_id
})
}).catch((err) => {
... ... @@ -308,8 +346,10 @@ Page({
job_Tap: function(e) {
console.log(88)
let that = this;
let industry_id = e.currentTarget.dataset.industry_id
this.setData({
jobTab: e.currentTarget.dataset.idjob,
industry_id: industry_id
})
},
// 行业选择
... ... @@ -344,14 +384,42 @@ Page({
scopeTab: e.currentTarget.dataset.idscope,
})
},
// 去报名
toApply() {
let that = this;
let url = 'index/job/job_apply';
// 通过parmas传值给后端
let params = {
city: that.data.city,
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
that.setData({
city_1: res.data
})
}).catch((err) => {
// 报名成功
regSuccess(){
wx.navigateTo({
url: '/pages/regSuccess/regSuccess',
})
},
// 报名成功
// regSuccess(){
// wx.navigateTo({
// url: '/pages/regSuccess/regSuccess',
// })
// },
/**
... ...
... ... @@ -10,11 +10,11 @@
</view>
</view>
<!-- 右边搜索框 -->
<view class='top_right'>
<view class='top_right' bindtap='toSearch'>
<view class='top_right_pic'>
<image src='/img/aicon_02@2x.png'></image>
</view>
<input placeholder='搜索岗位/招聘者'></input>
<view class='top_right_text'>搜索岗位/招聘者</view>
</view>
</view>
<!-- 中部选择 -->
... ... @@ -127,7 +127,7 @@
</view>
<!-- 条目 -->
<view class='items'>
<view class='item' bindtap='toPosition' >
<view class='item' bindtap='toPosition' wx:for='{{jobs}}' wx:key='' data-id="{{item.id}}">
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
... ... @@ -135,12 +135,12 @@
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
<view class='text_top'>{{item.station_name}}</view>
<view class='text_bottom'>{{item.min_money}}-{{item.max_money}}{{item.unit_name}}</view>
</view>
</view>
<view class='item_top_right' bindtap='regSuccess'>
<view class='item_top_right' bindtap='toApply'>
报名
</view>
</view>
... ... @@ -151,112 +151,7 @@
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>王思迪</view>
</view>
<view class='item_bottom_right'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_09@2x.png'></image>
</view>
<view>南开区 3.2km</view>
</view>
</view>
</view>
<view class='item' bindtap='toPosition'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
</view>
</view>
<view class='item_top_right' bindtap='regSuccess'>
报名
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>王思迪</view>
</view>
<view class='item_bottom_right'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_09@2x.png'></image>
</view>
<view>南开区 3.2km</view>
</view>
</view>
</view>
<view class='item' bindtap='toPosition'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
</view>
</view>
<view class='item_top_right' bindtap='regSuccess'>
报名
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>王思迪</view>
</view>
<view class='item_bottom_right'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_09@2x.png'></image>
</view>
<view>南开区 3.2km</view>
</view>
</view>
</view>
<view class='item' bindtap='toPosition'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
</view>
</view>
<view class='item_top_right' bindtap='regSuccess'>
报名
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>王思迪</view>
<view>{{item.describe}}</view>
</view>
<view class='item_bottom_right'>
... ... @@ -267,22 +162,27 @@
</view>
</view>
</view>
</view>
<!------- 筛选弹层------->
<view class='mask' wx:if='{{mask}}'>
<view class='mask' wx:if='{{mask}}' bindtap='mask_close'>
<view class="select mask_select">
<view wx:for="{{navbar}}" data-idx="{{index}}" class="select_list {{currentTab==index ? 'active' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}}
<view wx:for="{{navbar}}" data-idx="{{index}}" class="select_list {{currentTab==index ? 'active' : ''}}" wx:key="unique" catchtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}}
<view class='select_pic'>
<image src="{{currentTab==index?item.img1:item.img}}"></image>
<!-- <image src='../../img/aicon_11@2x.png'></image> -->
</view>
</view>
</view>
<!-- 地区内容 -->
<view class='area' wx:if="{{currentTab==0}}">
<view class="area_item">
<view wx:for="{{city_1}}" data-idarea="{{index}}" class="area_item_name {{areaTab==index ? 'active' : ''}}" wx:key="unique" bindtap="area_Tap" data-categoryid="{{item.id}}">{{item.name}}
<view wx:for="{{city_1}}" data-idarea="{{index}}" class="area_item_name {{areaTab==index ? 'active' : ''}}" wx:key="unique" catchtap="area_Tap" data-categoryid="{{item.id}}">{{item.name}}
</view>
</view>
... ... @@ -311,8 +211,7 @@
<!-- 岗位内容 -->
<view class='job' wx:if="{{currentTab==1}}">
<view class="job_left">
<view wx:for="{{industry_1}}" data-idjob="{{index}}" class="job_left_item {{jobTab==index ? 'pitch_on' : ''}}" wx:key="unique" bindtap="job_Tap" data-categoryid="{{item.id}}">{{item.industry_name}}
<view wx:for="{{industry_1}}" data-idjob="{{index}}" class="job_left_item {{jobTab==index ? 'pitch_on' : ''}}" wx:key="unique" catchtap="job_Tap" data-industry_id='{{item.industry_id}}' data-categoryid="{{item.id}}">{{item.industry_name}}
</view>
</view>
... ... @@ -332,7 +231,7 @@
<view class='job_right'>
<view class='job_right_items' wx:if='{{jobTab==0}}'>
<view wx:for="{{probar}}" data-idpro="{{index}}" class="job_right_item {{proTab==index ? 'yellow_color' : ''}}" wx:key="unique" bindtap="pro_Tap" data-categoryid="{{item.id}}">{{item.pro}}
<view wx:for="{{probar}}" data-idpro="{{index}}" class="job_right_item {{proTab==index ? 'yellow_color' : ''}}" wx:key="unique" catchtap="pro_Tap" data-categoryid="{{item.id}}">{{item.pro}}
</view>
... ... @@ -363,7 +262,7 @@
<!-- 推荐排序 -->
<view class='sort' wx:if="{{currentTab==2}}">
<view wx:for="{{sortbar}}" data-idsort="{{index}}" class="sort_item {{sortTab==index ? 'color_y' : ''}}" wx:key="unique" bindtap="sort_Tap" data-categoryid="{{item.id}}">{{item.sort}}
<view wx:for="{{sortbar}}" data-idsort="{{index}}" class="sort_item {{sortTab==index ? 'color_y' : ''}}" wx:key="unique" catchtap="sort_Tap" data-categoryid="{{item.id}}">{{item.sort}}
</view>
... ... @@ -381,7 +280,7 @@
<view class='screen_item'>
<view class='screen_item_top'> 学历要求
<view class="screen_item_bottom">
<view wx:for="{{education_1}}" data-idscreen="{{index}}" class="screen_item_bottom_i {{screenTab==index ? 'yellow_color' : ''}}" wx:key="unique" bindtap="screen_Tap" data-categoryid="{{item.id}}">{{item.education_name}}
<view wx:for="{{education_1}}" data-idscreen="{{index}}" class="screen_item_bottom_i {{screenTab==index ? 'yellow_color' : ''}}" wx:key="unique" catchtap="screen_Tap" data-categoryid="{{item.id}}">{{item.education_name}}
</view>
</view>
... ... @@ -441,7 +340,7 @@
</view>
<!-- 简历遮盖层 -->
<view class='mask2' style='display:none'>
<view class='mask2' style='display:flex'>
<view class='mask2_mid'>
<!-- 关闭 -->
<view class='mask2_close'>
... ...
... ... @@ -37,6 +37,22 @@ page{
width: 100%;
height: 100%;
}
.select_pic{
margin-left: 8rpx;
width:12rpx;
height:8rpx;
display: flex;
}
.select_pic image{
width: 100%;
height: 100%;
}
.select_list:last-child .select_pic{
width: 18rpx;
height: 18rpx;
display: flex
}
.top_right{
/* margin-left: 30rpx; */
display: flex;
... ... @@ -58,6 +74,14 @@ page{
width: 100%;
height: 100%;
}
.top_right_text{
margin-left: 25rpx;
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(153,153,153,1);
/* line-height:24px; */
}
.top_right input{
margin-left: 25rpx;
width: 100%;
... ... @@ -337,6 +361,7 @@ page{
background:rgba(255,255,255,1);
border-radius:5rpx;
font-size: 26rpx;
/* border: 1px solid transparent; */
}
.sort{
display: flex;
... ...
// pages/index/search_2/search_2.js
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
history_keyword: '',
hot_station: '',
hot_boss: '',
},
// 搜索框传值至search_4
inputText(e) {
console.log(e)
let inputValue = e.detail.value
wx.navigateTo({
url: '/pages/index/search_4/search_4?inputValue=' + inputValue,
})
},
// 点击搜索历史跳转
toSearch(e) {
console.log(e)
let keyWord = e.currentTarget.dataset.keyword
// let station_name = e.currentTarget.dataset.station_name
// let resume_name = e.currentTarget.dataset.resume_name
wx.navigateTo({
url: '/pages/index/search_4/search_4?inputValue=' + keyWord
})
// console.log(resume_name)
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options)
},
// 获取搜索历史记录
history() {
let that = this;
let url = 'index/category/history_keyword';
let params = {
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
// 获取值
that.setData({
history_keyword: res.data
})
}).catch((err) => {
})
},
// 清空历史记录
clear_history() {
let that = this;
let url = 'index/category/history_del';
let params = {
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
// 提示功能
wx.showToast({
title: '删除成功',
icon: 'none',
duration: 1500
})
setTimeout(function(){
// wx.navigateTo({
// url: '/pages/index/search_2/search_2',
// })
that.history()
},1000)
}).catch((err) => {
})
},
// 获取热门搜索
hot_search() {
let that = this;
let url = 'index/category/hot_search';
let params = {
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
that.setData({
hot_station: res.data.hot_station,
hot_boss: res.data.hot_boss,
})
console.log(res.data.hot_boss)
}).catch((err) => {
})
// console.log(that.hot_station)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
... ... @@ -25,8 +130,10 @@ Page({
/**
* 生命周期函数--监听页面显示
*/
// 一进页面就执行此函数
onShow: function () {
this.history()
this.hot_search()
},
/**
... ...
... ... @@ -6,7 +6,7 @@
<view class='top_pic'>
<image src='../../../img/aicon_02@2x.png'></image>
</view>
<input placeholder='搜索岗位/招聘者'></input>
<input placeholder='搜索岗位/招聘者' bindblur='inputText'></input>
</view>
</view>
... ... @@ -14,13 +14,15 @@
<view class='item'>
<view class='item_top'>
<view class='item_top_left'>搜索历史</view>
<view class='item_top_right'>
<view class='item_top_right' bindtap='clear_history'>
<image src='../../../img/aicon_17@2x.png'></image>
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_content'>泥瓦工</view>
<!-- 底部 循环搜索历史-->
<view class='item_bottom' >
<view class='item_bottom_content' wx:for='{{history_keyword}}' wx:key=''
bindtap='toSearch' data-keyword='{{item.keyword}}'>
{{item.keyword}}</view>
</view>
</view>
... ... @@ -30,15 +32,11 @@
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_content'>服务员</view>
<view class='item_bottom_content'>司机</view>
<view class='item_bottom_content'>前台</view>
<view class='item_bottom_content'>快递员</view>
<view class='item_bottom_content'>服务员</view>
<view class='item_bottom_content'>司机</view>
<view class='item_bottom_content'>前台</view>
<view class='item_bottom_content'>快递员</view>
<view class='item_bottom' wx:for='{{hot_station}}' wx:key='' bindtap='toSearch' data-keyword='{{item.station_name}}'>
<view class='item_bottom_content'>{{item.station_name}}</view>
<!-- <view class='item_bottom_content'>司机</view>
<view class='item_bottom_content'>前台</view> -->
</view>
</view>
... ... @@ -48,9 +46,9 @@
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_content'>服务员</view>
<view class='item_bottom_content'>天津银河百荣科技有限公司</view>
<view class='item_bottom' >
<view class='item_bottom_content' wx:for='{{hot_boss}}' wx:key='' bindtap='toSearch' data-keyword='{{item.resume_name}}'>{{item.resume_name}}</view>
<!-- <view class='item_bottom_content'>天津银河百荣科技有限公司</view> -->
</view>
</view>
... ...
// pages/index/search_3/search_3.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "搜索岗位/招聘者"
}
\ No newline at end of file
<view class='container'>
<view class='top'>
<view class='top_box'>
<view class='top_pic'>
<image src='../../../img/aicon_02@2x.png'></image>
</view>
<input placeholder='搜索岗位/招聘者'></input>
</view>
</view>
<!-- 相关岗位 -->
<view class='about'>
相关岗位
</view>
<!-- 条目 -->
<view class='items'>
<view class='item'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
</view>
</view>
<view class='item_top_right'>
报名
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>王思迪</view>
</view>
<view class='item_bottom_right'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_09@2x.png'></image>
</view>
<view>南开区 3.2km</view>
</view>
</view>
</view>
<view class='item'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
</view>
</view>
<view class='item_top_right'>
报名
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>王思迪</view>
</view>
<view class='item_bottom_right'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_09@2x.png'></image>
</view>
<view>南开区 3.2km</view>
</view>
</view>
</view>
<view class='item'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
</view>
</view>
<view class='item_top_right'>
报名
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>王思迪</view>
</view>
<view class='item_bottom_right'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_09@2x.png'></image>
</view>
<view>南开区 3.2km</view>
</view>
</view>
</view>
<view class='item'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
</view>
</view>
<view class='item_top_right'>
报名
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>王思迪</view>
</view>
<view class='item_bottom_right'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_09@2x.png'></image>
</view>
<view>南开区 3.2km</view>
</view>
</view>
</view>
</view>
<!-- 提示 -->
<view class='bottom'>
没有更多内容了
</view>
</view>
page{
line-height: 1;
/* background: #EBEBEB; */
}
.container{
display: flex;
flex-flow: column;
}
.top{
display: flex;
align-items: center;
justify-content: center;
background: #fff;
border-top: 1px solid #EBEBEB;
border-bottom: 1px solid #EBEBEB;
padding: 24rpx 0;
}
.top_box{
display: flex;
align-items: center;
width:686rpx;
height:60rpx;
background:rgba(237,238,242,1);
border-radius:10rpx;
box-sizing: border-box;
padding: 0 24rpx;
}
.top_pic{
width:28rpx;
height:28rpx;
display: flex;
}
.top_pic image{
width: 100%;
height: 100%;
}
.top_box input{
margin-left: 25rpx;
width: 100%;
height: 100%;
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:#000;
}
.about{
font-size:30rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(26,26,26,1);
border-bottom: 1px solid #EBEBEB;
padding: 24rpx 34rpx 24rpx 55rpx;
position: relative;
display: flex;
align-items: center;
}
.about::before{
content: "";
width:6rpx;
height:24rpx;
background:rgba(255,102,0,1);
position: absolute;
left: 34rpx;
}
/* 条目 */
.items{
display: flex;
flex-flow: column;
}
.item{
/* margin-top: 1px; */
display: flex;
flex-flow: column;
background: #fff;
padding: 40rpx;
border-bottom: 1px solid #EBEBEB;
}
.item_top{
display: flex;
justify-content: space-between;
}
.item_top_left{
display: flex;
}
.item_top_left_pic{
width:72rpx;
height:72rpx;
border-radius:2rpx;
display: flex;
}
.item_top_left_pic image{
width: 100%;
height: 100%;
}
.item_top_left_text{
margin-left: 23rpx;
display: flex;
flex-flow: column;
}
.text_top{
font-size:32rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(26,26,26,1);
}
.text_bottom{
margin-top: 17rpx;
font-size:28rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,59,40,1);
}
.item_top_right{
width:140rpx;
height:66rpx;
line-height: 66rpx;
text-align: center;
border:1px solid rgba(255,102,0,1);
border-radius:33rpx;
font-size:28rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,102,0,1);
}
.item_bottom{
margin-top: 20rpx;
margin-left: 80rpx;
display: flex;
align-items: center;
justify-content: space-between;
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(153,153,153,1);
}
.item_bottom_left{
display: flex;
align-items: center;
}
.item_bottom_left_pic{
width:22rpx;
height:22rpx;
display: flex;
margin-right: 13rpx;
}
.item_bottom_left_pic image{
width: 100%;
height: 100%;
}
.item_bottom_right{
display: flex;
align-items: center;
}
.item_bottom_left_pic{
margin-left: 14rpx;
width:20rpx;
height:24rpx;
display: flex;
}
.item_bottom_left_pic image{
width: 100%;
height: 100%;
}
.bottom{
margin-top: 23rpx;
text-align: center;
font-size:24rpx;
font-family:PingFang-SC-Regular;
font-weight:400;
color:rgba(153,153,153,1);
}
\ No newline at end of file
// pages/index/search_4/search_4.js
// pages/index/search_3/search_3.js
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
search: '',
inputValue: '',
page1: '',
page_num1: '',
page2: '',
page_num2: '',
keyword: '',
search_boss: '',
search_job: '',
},
// 搜索功能
inputText(e) {
console.log(e)
let inputValue = e.detail.value
wx.navigateTo({
url: '/pages/index/search_4/search_4?inputValue=' + inputValue,
})
},
// 相关招聘者 -> 详细信息
toPersonal(e){
console.log(e)
let id = e.currentTarget.dataset.id
let user_id = e.currentTarget.dataset.user_id
wx.navigateTo({
url: '/pages/employerDetails/employerDetails?id=' +id + '&user_id=' + user_id,
})
},
toRelated(e){
console.log(e)
let user_id = e.currentTarget.dataset.user_id
wx.navigateTo({
url: '/pages/positionDetails/positionDetails?user_id=' + user_id,
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options)
this.setData({
keyword: options.inputValue,
station_name: options
})
this.search_4()
},
search_4() {
let that = this;
let url = 'index/job/search';
let params = {
// job_id: that.data.job_id,
page1: that.data.page1,
page_num1: that.data.page_num1,
page2: that.data.page2,
page_num2: that.data.page_num2,
keyword: that.data.keyword
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
// 获取值
that.setData({
search_boss: res.data.boss,
search_job: res.data.job
})
}).catch((err) => {
})
},
/**
* 生命周期函数--监听页面初次渲染完成
... ...
<view class='container'>
<view class='top'>
<view class='top_box'>
<view class='top_pic'>
<image src='../../../img/aicon_02@2x.png'></image>
</view>
<input placeholder='搜索岗位/招聘者'></input>
</view>
<input placeholder='搜索岗位/招聘者' value='{{keyword}}' bindblur='inputText'></input>
</view>
</view>
<!-------- 内容 ---------->
<!-- 相关招聘者 -->
<view class='about'>
相关招聘者
</view>
<!-- 条目 -->
<view class='items'>
<view class='item'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom_text'>2个岗位在招</view>
</view>
</view>
<view wx:if="{{search_boss.length==0&&search_job.length==0}}">
<view class='mid'>
<view class='pic'>
<image src='../../../img/aicon_58@2x.png'></image>
</view>
<!-- 文字 -->
<view class='pic_text'>
暂无该岗位/招聘者/内容哦, 请换其他关键词试一试
</view>
</view>
</view>
<block wx:else>
<!-- 颜色条 -->
<view class='color_line'></view>
<view class='about'>
相关招聘者
</view>
<!-- 条目 -->
<view class='items'>
<!-- 相关岗位 -->
<view class='about'>
相关岗位
</view>
<!-- 条目 -->
<view class='items'>
<view class='item'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
<view class='item' wx:for='{{search_boss}}' wx:key='' bindtap='toPersonal' data-id='{{item.id}}' data-user_id='{{item.user_id}}'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='{{item.logo}}'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>{{item.resume_name}}</view>
<view class='text_bottom_text'>{{item.also_some}}个岗位在招</view>
</view>
</view>
</view>
<view class='item_top_right'>
报名
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>王思迪</view>
</view>
<view class='item_bottom_right'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_09@2x.png'></image>
</view>
<view>南开区 3.2km</view>
</view>
</view>
</view>
<view class='item'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
<!-- 颜色条 -->
<view class='color_line'></view>
<!-- 相关岗位 -->
<view class='about'>
相关岗位
</view>
<!-- 条目 -->
<view class='items'>
<view class='item' wx:for='{{search_job}}' wx:key='' data-user_id='{{item.user_id}}' bindtap='toRelated'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>{{item.station_name}}</view>
<view class='text_bottom'>{{item.min_money}}-{{item.max_money}}元/月</view>
</view>
</view>
</view>
<view class='item_top_right'>
报名
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_10@2x.png'></image>
<view class='item_top_right'>
报名
</view>
<!-- 名字 -->
<view>王思迪</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>{{item.resume_name}}</view>
</view>
<view class='item_bottom_right'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_09@2x.png'></image>
<view class='item_bottom_right'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_09@2x.png'></image>
</view>
<view>南开区 3.2km</view>
</view>
<view>南开区 3.2km</view>
</view>
</view>
</view>
</view>
<!-- 提示 -->
<view class='bottom'>
没有更多内容了
</view>
<!-- 提示 -->
<view class='bottom'>
没有更多内容了
</view>
</block>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -191,4 +191,32 @@ page{
width:750rpx;
height:14rpx;
background:rgba(242,242,242,1);
}
\ No newline at end of file
}
/* 搜索无结果时展示图片 */
.mid{
margin-top: 143rpx;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.pic{
width:629rpx;
height:463rpx;
display: flex;
}
.pic image{
width: 100%;
height: 100%;
}
.pic_text{
width: 334rpx;
/* text-align: center; */
position: absolute;
bottom: 0;
font-size:28rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(153,153,153,1);
line-height: 42rpx;
}
... ...
// pages/index/search_5/search_5.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "搜索岗位/招聘者"
}
\ No newline at end of file
<view class='container'>
<view class='top'>
<view class='top_box'>
<view class='top_pic'>
<image src='../../../img/aicon_02@2x.png'></image>
</view>
<input placeholder='搜索岗位/招聘者'></input>
</view>
</view>
<view class='mid'>
<view class='pic'>
<image src='../../../img/aicon_58@2x.png'></image>
</view>
<!-- 文字 -->
<view class='pic_text'>
暂无该岗位/招聘者/内容哦,
请换其他关键词试一试
</view>
</view>
<!-- 提示 -->
<!-- <view class='bottom'>
没有更多内容了
</view> -->
</view>
page{
line-height: 1;
/* background: #EBEBEB; */
}
.container{
display: flex;
flex-flow: column;
}
.top{
display: flex;
align-items: center;
justify-content: center;
background: #fff;
border-top: 1px solid #EBEBEB;
border-bottom: 1px solid #EBEBEB;
padding: 24rpx 0;
}
.top_box{
display: flex;
align-items: center;
width:686rpx;
height:60rpx;
background:rgba(237,238,242,1);
border-radius:10rpx;
box-sizing: border-box;
padding: 0 24rpx;
}
.top_pic{
width:28rpx;
height:28rpx;
display: flex;
}
.top_pic image{
width: 100%;
height: 100%;
}
.top_box input{
margin-left: 25rpx;
width: 100%;
height: 100%;
font-size:26rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:#000;
}
.mid{
margin-top: 143rpx;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.pic{
width:629rpx;
height:463rpx;
display: flex;
}
.pic image{
width: 100%;
height: 100%;
}
.pic_text{
width: 334rpx;
/* text-align: center; */
position: absolute;
bottom: 0;
font-size:28rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(153,153,153,1);
line-height: 42rpx;
}
.bottom{
margin-top: 23rpx;
text-align: center;
font-size:24rpx;
font-family:PingFang-SC-Regular;
font-weight:400;
color:rgba(153,153,153,1);
}
.text_bottom_text{
margin-top: 17rpx;
font-size:28rpx;
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,102,0,1);
}
.color_line{
width:750rpx;
height:14rpx;
background:rgba(242,242,242,1);
}
\ No newline at end of file
... ... @@ -18,15 +18,37 @@ Page({
share_task: '',
user: '',
record: '',
record1: '',
// 判断弹出层,初始值为false为关闭
show_apply:false,
type:1,
notype:2,
countnum:'',
nocountnum:''
nocountnum:'',
page_type:'',
},
// 账号
enterAccount(e) {
console.log(e)
this.setData({
account: e.detail.value
})
},
// 姓名
enterUsername(e) {
console.log(e)
this.setData({
username: e.detail.value
})
},
// 提现金额
enterCash(e) {
this.setData({
cash: e.detail.value
})
},
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -34,8 +56,40 @@ Page({
onLoad: function (options) {
this.getShare(),
this.getSelect(),
this.nogetSelect()
this.nogetSelect()
console.log(this.data.type)
},
// 提交审核
subPay() {
let that = this;
let url = 'index/share/submit_audit';
let params = {
alipay: that.data.account,
name: that.data.username,
total: that.data.cash,
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
wx.showToast({
title: '提交成功',
icon: 'none',
duration: 1500
})
setTimeout(function () {
wx.navigateTo({
url: '/pages/mine/mine',
})
}, 1000)
}).catch((err) => {
})
},
getShare() {
let that = this;
let url = 'index/share/index';
... ... @@ -72,7 +126,7 @@ Page({
let that = this;
let url = 'index/share/select_share';
let params = {
type:that.data.type
type:1
}
let header = {
"XX-Token": wx.getStorageSync('token'),
... ... @@ -82,10 +136,18 @@ Page({
console.log(res);
let newbav = that.data.navbar;
console.log(newbav)
for (let i=0;i<that.data.navbar.length;i++){
for (let i = 0; i < newbav.length;i++){
if(i==0){
that.data.navbar[i].name = '有效邀请' + res.data.count + '人'
console.log(999)
newbav[i].name = '有效邀请' + res.data.count + '人';
}
that.setData({
navbar:newbav
})
}
... ... @@ -93,7 +155,7 @@ Page({
that.setData({
record: res.data.record,
record1: res.data.record,
// share_task: res.data.share_task,
// user: res.data.user
... ... @@ -111,7 +173,7 @@ Page({
let that = this;
let url = 'index/share/select_share';
let params = {
type: that.data.notype
type: 2
}
let header = {
"XX-Token": wx.getStorageSync('token'),
... ... @@ -123,9 +185,9 @@ Page({
// for (var i = 0; i < newnav.length; i++) {
// newnav[0].name = '有效邀请' + res.count + '人'
// }
for (let i = 1; i < that.data.navbar.length; i++) {
for (let i = 1; i < newbav.length; i++) {
if (i == 1) {
that.data.navbar[i].name = '无效邀请' + res.data.count + '人'
newbav[i].name = '无效邀请' + res.data.count + '人'
}
}
... ... @@ -133,6 +195,7 @@ Page({
that.setData({
record: res.data.record,
navbar:newbav
// share_task: res.data.share_task,
// user: res.data.user
... ... @@ -153,17 +216,22 @@ Page({
this.setData({
currentTab: e.currentTarget.dataset.idx,
// type: 'e.currentTarget.dataset.idx==0'?'1':'2',
// count: that.data.array[e.detail.value].count,
})
// console.log(11111111)
// console.log(count)
if (e.currentTarget.dataset.idx == 0){
this.setData({
type:1
type:1,
})
this.getSelect()
}else{
this.setData({
type:2
})
this.getSelect()
this.nogetSelect()
}
console.log(that.data.type)
},
... ... @@ -181,6 +249,21 @@ Page({
})
},
// 点击查看更多
toMore(){
let that = this
if (that.data.page_type == false) {
return false
}
let page = that.data.page;
page++;
that.setData({
page: page
})
// that.info()
that.getSelect()
console.log(1111)
},
/**
* 生命周期函数--监听页面初次渲染完成
... ... @@ -214,14 +297,14 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
... ...
... ... @@ -38,7 +38,7 @@
<view class='invite'>
<view class="invite_top">
<view wx:for="{{navbar}}" data-idx="{{index}}" class="invite_top_select {{currentTab==index ? 'color_yellow' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}}
<view wx:for="{{navbar}}" data-idx="{{index}}" class="invite_top_select {{currentTab==index ? 'color_yellow' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}" data-count='{{count}}'>{{item.name}}
</view>
</view>
... ... @@ -50,7 +50,7 @@
</view> -->
<!-- 有效邀请 -->
<view class='invite_box' wx:if="{{currentTab==0}}">
<view class='invite_item' wx:for="{{record}}" wx:key="">
<view class='invite_item' wx:for="{{record1}}" wx:key="">
<view class='invite_item_left'>
<view class='invite_item_left_icon'>
<image src='{{item.avatar}}'></image>
... ... @@ -118,7 +118,7 @@
<!-- 查看更多 -->
<view class='invite_bottom'>
<view class='invite_bottom' bindtap='toMore'>
<view class='invite_bottom_text'>查看更多</view>
<view class='invite_bottom_icon'>
<image src='../../img/aicon_01@2x.png'></image>
... ... @@ -143,21 +143,21 @@
<!-- 输入信息 -->
<view class='input_item marin_t'>
<view class='input_item_left'>支付宝账户</view>
<input placeholder='请输入正确的支付宝账户'></input>
<input placeholder='请输入正确的支付宝账户' bindinput='enterAccount'></input>
</view>
<view class='input_item'>
<view class='input_item_left'>账户姓名</view>
<input placeholder='请输入支付宝姓名'></input>
<input placeholder='请输入支付宝姓名' bindinput='enterUsername'></input>
</view>
<view class='input_item item3'>
<view class='input_item_left'>输入提现金额</view>
<input placeholder='请输入10的倍数'></input>
<input placeholder='请输入10的倍数' bindinput='enterCash'></input>
<view class='input_text'>元</view>
</view>
<!-- 提交 -->
<view class='button_box'>
<view class='button'>提交</view>
<view class='button' bindtap='subPay'>提交</view>
</view>
<!-- 提示字体 -->
... ...
... ... @@ -183,8 +183,8 @@ page{
position: absolute;
bottom: -32rpx;
left: -60rpx;
/* right: 60rpx; */
width: 330rpx;
right:0rpx;
width: 288rpx;
height: 1px;
background: #FFAA00;
}
... ...
... ... @@ -13,6 +13,9 @@ Page({
personal:''
},
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -100,8 +103,61 @@ Page({
},
onLoad: function (options) {
this.getPersonal()
// this.getPay()
},
// 账号
enterAccount(e){
console.log(e)
this.setData({
account: e.detail.value
})
},
// 姓名
enterUsername(e){
console.log(e)
this.setData({
username: e.detail.value
})
},
// 提现金额
enterCash(e){
this.setData({
cash: e.detail.value
})
},
// 提交审核
subPay(){
let that = this;
let url = 'index/share/submit_audit';
let params = {
alipay: that.data.account,
name: that.data.username,
total: that.data.cash,
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
wx.showToast({
title: '提交成功',
icon: 'none',
duration: 1500
})
setTimeout(function(){
wx.navigateTo({
url: '/pages/mine/mine',
})
},1000)
}).catch((err) => {
})
},
// 获取个人中心信息
getPersonal() {
let that = this;
... ... @@ -129,6 +185,8 @@ Page({
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
... ...
... ... @@ -172,7 +172,7 @@
<!-- 提现弹层 -->
<view class='mask' wx:if="{{show_apply}}" >
<view class='mask' wx:if="{{show_apply}}" >
<view class='mask_item'>
<!-- 关闭 -->
<view class='mask_item_top'>
... ... @@ -188,21 +188,21 @@
<!-- 输入信息 -->
<view class='input_item marin_t'>
<view class='input_item_left'>支付宝账户</view>
<input placeholder='请输入正确的支付宝账户'></input>
<input placeholder='请输入正确的支付宝账户' bindinput='enterAccount'></input>
</view>
<view class='input_item'>
<view class='input_item_left'>账户姓名</view>
<input placeholder='请输入支付宝姓名'></input>
<input placeholder='请输入支付宝姓名' bindinput='enterUsername'></input>
</view>
<view class='input_item item3'>
<view class='input_item_left'>输入提现金额</view>
<input placeholder='请输入10的倍数'></input>
<input placeholder='请输入10的倍数' bindinput='enterCash'></input>
<view class='input_text'>元</view>
</view>
<!-- 提交 -->
<view class='button_box'>
<view class='button'>提交</view>
<view class='button' bindtap='subPay'>提交</view>
</view>
<!-- 提示字体 -->
... ...
... ... @@ -27,6 +27,7 @@ Page({
// 可以指定来源是相册还是相机,默认二者都有
success: function (res) {
console.log(res)
// 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
var tempFilePaths = res.tempFilePaths;
// if (that.data.companyortrue == true) {
... ...
... ... @@ -31,56 +31,56 @@
<view class='top mid'>
<view class='top_left'>真实姓名</view>
<view class='top_right wechat_name'>
{{resume2.resume_name}}
{{resume2.resume_name?resume2.resume_name:'暂无数据'}}
</view>
</view>
<!-- 性别 -->
<view class='top mid'>
<view class='top_left'>性别</view>
<view class='top_right wechat_name'>
{{resume2.resume_sex}}
{{resume2.resume_sex?resume2.resume_sex:'暂无数据'}}
</view>
</view>
<!-- 手机号 -->
<view class='top mid'>
<view class='top_left'>手机号</view>
<view class='top_right wechat_name'>
{{resume2.resume_mobile}}
{{resume2.resume_mobile?resume2.resume_mobile:'暂无数据'}}
</view>
</view>
<!-- 出生日期 -->
<view class='top mid'>
<view class='top_left'>出生日期</view>
<view class='top_right wechat_name'>
{{resume2.resume_birthday}}
{{resume2.resume_birthday?resume2.resume_birthday:'暂无数据'}}
</view>
</view>
<!-- 家乡 -->
<view class='top mid'>
<view class='top_left'>家乡</view>
<view class='top_right wechat_name'>
{{resume2.resume_home}}
{{resume2.resume_home?resume2.resume_home:'暂无数据'}}
</view>
</view>
<!-- 最高学历 -->
<view class='top mid'>
<view class='top_left'>最高学历</view>
<view class='top_right wechat_name'>
{{resume2.education_name}}
{{resume2.education_name?resume2.education_name:'暂无数据'}}
</view>
</view>
<!-- 工作年限 -->
<view class='top mid'>
<view class='top_left'>工作年限</view>
<view class='top_right wechat_name'>
{{resume2.resume_exp}}
{{resume2.resume_exp?resume2.resume_exp:'暂无数据'}}
</view>
</view>
<!-- 是否在职 -->
<view class='top mid'>
<view class='top_left'>是否在职</view>
<view class='top_right wechat_name'>
{{resume2.resume_is_bejob}}
{{resume2.resume_is_bejob?resume2.resume_is_bejob:'暂无数据'}}
</view>
</view>
<!--岗位描述 -->
... ... @@ -90,7 +90,7 @@
<view class='top_right wechat_name'></view>
</view>
<view class='mid_bottom'>
{{resume2.resume_brief}}
{{resume2.resume_brief?resume2.resume_brief:'暂无数据'}}
</view>
</view>
... ...
// pages/publish/publish.js
const app = getApp()
var that;
Page({
... ... @@ -7,71 +7,217 @@ Page({
* 页面的初始数据
*/
data: {
array: ['在家可做', '好评工作', '热门推荐', '轻松兼职'],
publish: '',
array: [],
status:false,
jobIndex: 0,
industry: ['餐饮', '金融', '计算机'],
industry: [],
industryIndex: 0,
post: ['厨师', '医生', '程序员'],
post: [],
postIndex: 0,
edu: [],
eduIndex: 0,
switch_content:false,
images: [],
images2: [],
bannerImage: [],
// 获取分类
getClass:'',
categories_id:'',
industry_id: '',
hangye:'请选择',
gangwei:'请选择',
logoitem:'',
banneritem:''
// edu: '',
},
// 岗位分类
jobClass: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
jobIndex: e.detail.value
jobIndex: e.detail.value,
categories_id: this.data.array[e.detail.value].id,
hangye:'请选择',
gangwei:"请选择"
})
console.log(that.data.categories_id)
this.publicIndustry()
},
// 选择行业
industryClass: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
industryIndex: e.detail.value
industryIndex: e.detail.value,
industry_id: this.data.industry[e.detail.value].id,
hangye: this.data.industry[e.detail.value].industry_name ,
gangwei:'请选择'
})
console.log(that.data.industry_id)
this.publicPost()
},
// 选择岗位
postClass: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
postIndex: e.detail.value
postIndex: e.detail.value,
gangwei: this.data.post[e.detail.value].station_name
})
},
// 选择学历
selectEdu: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
selectEdu: e.detail.value
})
},
// 点击切换
// switch_a(){
// wx.getData({
// switch_content: true
// })
// },
switch_a(){
this.setData({
status:!this.data.status
})
},
// switch_b() {
// this.setData({
// status: !this.data.status
// })
// },
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
that = this;
this.publicClass();
this.publicIndustry();
this.publicPost();
this.publicEdu();
},
// 获取分类Ajax
publicClass() {
let that = this;
let url = 'index/category/categories';
let params = {
// categories_id: that.data.categories_id,
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
// 获取值
that.setData({
// personal: res.data
array: res.data
})
}).catch((err) => {
})
},
// 获取行业分类
publicIndustry() {
let that = this;
let url = 'index/category/industry';
let params = {
categories_id: that.data.categories_id,
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
// 获取值
that.setData({
// personal: res.data
industry: res.data
})
}).catch((err) => {
})
},
// 获取岗位
publicPost(){
let that = this;
let url = 'index/category/station';
let params = {
industry_id: that.data.industry_id,
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
// 获取值
that.setData({
// personal: res.data
post: res.data
})
}).catch((err) => {
})
},
// 选择学历
publicEdu(){
let that = this;
let url = 'index/category/education';
let params = {
// industry_id: that.data.industry_id,
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
// 获取值
that.setData({
edu: res.data
})
console.log(res.data)
}).catch((err) => {
})
},
// 调用Ajax
publish() {
let that = this;
let url = 'index/job/publish_job';
let params = {
categories_id: that.data.categories_id,
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
// 获取值
that.setData({
// personal: res.data
publish: res.data
})
}).catch((err) => {
})
},
... ... @@ -88,16 +234,14 @@ Page({
// 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
var tempFilePaths = res.tempFilePaths;
that.setData({
images: that.data.images.concat(tempFilePaths)
logoitem: res.tempFilePaths[0]
});
}
})
},
// 图片预览
previewImage: function (e) {
//console.log(this.data.images);
var current = e.target.dataset.src
wx.previewImage({
current: current,
... ... @@ -115,6 +259,45 @@ Page({
});
},
chooseImage2: function () {
// 选择图片
wx.chooseImage({
count: 3, // 默认9
sizeType: ['compressed'],
sourceType: ['album', 'camera'],
// 可以指定来源是相册还是相机,默认二者都有
success: function (res) {
console.log(res)
// 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
var tempFilePaths = res.tempFilePaths;
that.setData({
// images: that.data.images.concat(tempFilePaths)
banneritem: res.tempFilePaths[0]
});
}
})
},
// 图片预览
previewImage2: function (e) {
//console.log(this.data.images);
var current = e.target.dataset.src
wx.previewImage({
current: current,
urls: this.data.images2
})
},
// 图片删除功能
delete2: function (e) {
var index = e.currentTarget.dataset.index;
var images = that.data.images2;
images2.splice(index, 1);
that.setData({
images2: images2
});
},
... ...
... ... @@ -3,113 +3,81 @@
<view class='item'>
<view class='item_left'>岗位分类</view>
<picker bindchange="jobClass" value="{{jobIndex}}" range="{{array}}">
<picker bindchange="jobClass" value="{{jobIndex}}" range="{{array}}" range-key='categories_name' data-id='{{item.id}}'>
<view class='item_right'>
<view class="item_right_text">
{{array[jobIndex]}}
{{array[jobIndex].categories_name}}
</view>
<view class='item_right_icon'>
<image src='../../img/right.png'></image>
</view>
</view>
</picker>
<!-- <view class='item_right_text'>在家可做</view>
<view class='item_right_icon'>
<image src='../../img/right.png'></image>
</view> -->
</picker>
</view>
<view class='item'>
<view class='item_left'>选择行业</view>
<picker bindchange="industryClass" value="{{industryIndex}}" range="{{industry}}">
<picker bindchange="industryClass" value="{{industryIndex}}" range="{{industry}}" range-key='industry_name' >
<view class='item_right'>
<view class="item_right_text">
{{industry[industryIndex]}}
<!-- {{industry[industryIndex].industry_name}} -->
{{hangye}}
</view>
<view class='item_right_icon'>
<image src='../../img/right.png'></image>
</view>
</view>
</picker>
<!-- <view class='item_right_text'>在家可做</view>
<view class='item_right_icon'>
<image src='../../img/right.png'></image>
</view> -->
</view>
<view class='item'>
<view class='item_left'>选择岗位</view>
<picker bindchange="postClass" value="{{postIndex}}" range="{{post}}">
<picker bindchange="postClass" value="{{postIndex}}" range="{{post}}" range-key='station_name'>
<view class='item_right'>
<view class="item_right_text">
{{post[postIndex]}}
<!-- {{post[postIndex].station_name}} -->
{{gangwei}}
</view>
<view class='item_right_icon'>
<image src='../../img/right.png'></image>
</view>
</view>
</picker>
<!-- <view class='item_right_text'>在家可做</view>
<view class='item_right_icon'>
<image src='../../img/right.png'></image>
</view> -->
</view>
<!-- 企业logo -->
<view class='item logo'>
<view class='item_left'>企业logo</view>
<!-- <view class='item_right'> </view> -->
<!-- logo图片 -->
<view class='pic_box'>
<view class="btn-file" wx:for="{{images}}" wx:key="">
<image src="{{item}}" data-src="{{item}}" bindtap="previewImage" mode="aspectFill" />
<view class="btn-file">
<image src="{{logoitem?logoitem:'../../img/btn-file.png'}}" data-src="{{item}}" bindtap="chooseImage" />
<!-- 删除按钮 -->
<view class="delete" bindtap="delete" data-index="{{index}}">
<!-- <view class="delete" bindtap="delete" data-index="{{index}}">
<image src='../../img/icon.png'></image>
</view>
</view> -->
</view>
<view class='gallery_pic' bindtap='chooseImage'>
<!-- <view class='gallery_pic' bindtap='chooseImage'>
<image src='../../img/btn-file.png'></image>
</view>
</view> -->
</view>
</view>
<!-- banner -->
<view class='item banner'>
<view class='item_left'>banner</view>
<!-- logo图片 -->
<view class='pic_banner '>
<view class="banner_small" wx:for="{{images}}" wx:key="">
<image src="{{item}}" data-src="{{item}}" bindtap="previewImage" mode="aspectFill" />
<view class="banner_small" >
<image src="{{banneritem?banneritem:'../../img/btn-file.png'}}" data-src="{{item}}" bindtap="chooseImage2" />
<!-- 删除按钮 -->
<view class="delete" bindtap="delete" data-index="{{index}}">
<!-- <view class="delete" bindtap="delete2" data-index="{{index}}">
<image src='../../img/icon.png'></image>
</view>
</view> -->
</view>
<view class='banner_pic' bindtap='chooseImage'>
<!-- <view class='banner_pic' bindtap='chooseImage2'>
<image src='../../img/btn-file.png'></image>
</view>
</view> -->
</view>
</view>
<!-- 输入工资 -->
<view class='item'>
... ... @@ -122,17 +90,17 @@
</view>
<!-- 范围 -->
<view class='item_right_bottom'>
<view class='item_right_bottom_i'>
5000
</view>
<input class='item_right_bottom_i' bindinput='minMoney' >
</input>
<!-- 箭头 -->
<view class='item_arrowsR'>
<image src='../../img/arrowsR.png'></image>
</view>
<view class='item_right_bottom_i'>
5000
</view>
<input class='item_right_bottom_i' bindinput='maxMoney'>
</input>
<!-- 元/月 -->
<view class='item_right_bottom_money'>
元/月
... ... @@ -150,12 +118,23 @@
<!-- 选择学历 -->
<view class='item'>
<view class='item_left'>选择学历</view>
<view class='item_right'>
<picker bindchange="postClass" value="{{eduIndex}}" range="{{edu}}" range-key='education_name'>
<view class='item_right'>
<view class="item_right_text">
<!-- {{post[postIndex]}} -->
{{edu[eduIndex].education_name}}
</view>
<view class='item_right_icon'>
<image src='../../img/right.png'></image>
</view>
</view>
</picker>
<!-- <view class='item_right'>
<view class='item_right_text'>小学及以下</view>
<view class='item_right_icon'>
<image src='../../img/right.png'></image>
</view>
</view>
</view> -->
</view>
<!-- 发布时间 -->
<view class='item'>
... ... @@ -257,7 +236,7 @@
<!-- 按钮 -->
<view class='bottom'>
<view class='bottom_btn' bindtap='fabu'>确认发布</view>
<view class='bottom_btn' bindtap='publish'>确认发布</view>
</view>
</view>
\ No newline at end of file
... ...
... ... @@ -148,6 +148,8 @@ page{
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(26,26,26,1);
box-sizing: border-box;
padding: 0 8rpx;
}
.item_arrowsR{
... ...
// pages/record/record.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
record: '',
},
/**
... ... @@ -24,7 +25,35 @@ Page({
})
},
onLoad: function (options) {
this.getRecord()
},
// 报名记录Ajax
getRecord() {
let that = this;
let url = 'index/user/user_job_apply_record';
let params = {
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
// 获取值
that.setData({
record: res.data
})
}).catch((err) => {
})
},
... ...
... ... @@ -5,7 +5,7 @@
<view class='underline'></view>
<!-- 条目 -->
<view class='items'>
<view class='item' bindtap='toPosition'>
<view class='item' bindtap='toPosition' wx:for='{{record}}' wx:key=''>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
... ... @@ -13,8 +13,8 @@
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
<view class='text_top'>{{item.station}}</view>
<view class='text_bottom'>{{item.min_money}}-{{item.max_money}}元/月</view>
</view>
</view>
... ... @@ -29,7 +29,7 @@
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>王思迪</view>
<view>{{item.user_nickname}}</view>
</view>
<view class='item_bottom_right'>
... ...
// pages/record2/record2.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
collect: '',
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.collectRecord()
},
collectRecord() {
let that = this;
let url = 'index/user/user_job_apply_record';
let params = {
}
let header = {
"XX-Token": wx.getStorageSync('token'),
"XX-Device-Type": 'wxapp'
}
app.post(url, params, header).then((res) => {
console.log(res);
// 获取值
that.setData({
collect: res.data
})
}).catch((err) => {
})
},
/**
... ... @@ -27,6 +55,7 @@ Page({
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
... ...
... ... @@ -6,7 +6,7 @@
<view class='underline'></view>
<!-- 条目 -->
<view class='items'>
<view class='item'>
<view class='item' wx:for='{{collect}}' wx:key=''>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
... ... @@ -14,8 +14,8 @@
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
<view class='text_top'>{{item.station_name}}</view>
<view class='text_bottom'>{{item.min_money}}-{{item.max_money}}元/月</view>
</view>
</view>
... ... @@ -30,42 +30,7 @@
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>王思迪</view>
</view>
<view class='item_bottom_right'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_09@2x.png'></image>
</view>
<view>南开区 3.2km</view>
</view>
</view>
</view>
<view class='item'>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_08@2x.png'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
</view>
</view>
<view class='item_top_right' bindtap='regSuccess'>
报名
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_10@2x.png'></image>
</view>
<!-- 名字 -->
<view>王思迪</view>
<view>{{item.resume_name}}</view>
</view>
<view class='item_bottom_right'>
... ... @@ -77,6 +42,7 @@
</view>
</view>
</view>
... ...
... ... @@ -6,9 +6,31 @@ Page({
* 页面的初始数据
*/
data: {
registrationList:''
mask_show: false,
registrationList:'',
},
// 打开mask
toOpen(){
this.setData({
mask_show:true
})
},
// 关闭mask
toClose(){
this.setData({
mask_show: false
})
},
toPositionDetails(e){
let id = e.currentTarget.dataset.id
let user_id = e.currentTarget.dataset.user_id
wx.navigateTo({
url: '/pages/employerDetails/employerDetails?id=' + id + '&user_id=' + user_id ,
})
},
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -31,13 +53,11 @@ Page({
console.log(res);
// 获取值
that.setData({
personal: res.data
registrationList: res.data
})
}).catch((err) => {
})
... ...
... ... @@ -7,20 +7,20 @@
<view class='underline'></view>
<!-- 条目 -->
<view class='items'>
<view class='item'>
<view class='item' wx:for='{{registrationList}}' wx:key=''>
<!-- 头部 -->
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
<image src='/img/aicon_49@2x.png'></image>
<image src='{{item.avatar}}'></image>
</view>
<view class='item_top_left_text'>
<view class='text_top'>酒店服务员</view>
<view class='text_bottom'>4000-5000元/月</view>
<view class='text_top'>{{item.station_name}}</view>
<view class='text_bottom'>{{item.min_money}}-{{item.max_money}} {{item.unit_name}}</view>
</view>
</view>
<view class='item_top_right'>
<view class='item_top_right' bindtap='toPositionDetails' data-id='{{item.id}}' data-user_id='{{item.user_id}}'>
查看
</view>
</view>
... ... @@ -28,24 +28,25 @@
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_text'>
高萌
{{item.resume_name}}
<!-- <image src='/img/aicon_10@2x.png'></image> -->
</view>
<!-- 时间 -->
<view class='item_time'>2019.02.26-11:36</view>
<!-- <view class='item_time'>2019.02.26-11:36</view> -->
<view class='item_time'>{{item.create_time}}</view>
</view>
<view class='item_bottom_right'>
<view class='item_bottom_left_pic'>
<image src='/img/aicon_50@2x.png'></image>
</view>
<view class='item_bottom_left_area'>拨打电话</view>
<view class='item_bottom_left_area' bindtap='toOpen'>拨打电话</view>
</view>
</view>
</view>
<view class='item'>
<!-- 头部 -->
<!-- <view class='item'>
<view class='item_top'>
<view class='item_top_left'>
<view class='item_top_left_pic'>
... ... @@ -61,14 +62,14 @@
查看
</view>
</view>
<!-- 底部 -->
<view class='item_bottom'>
<view class='item_bottom_left'>
<view class='item_bottom_left_text'>
高萌
<!-- <image src='/img/aicon_10@2x.png'></image> -->
</view>
<!-- 时间 -->
<view class='item_time'>2019.02.26-11:36</view>
</view>
... ... @@ -79,7 +80,7 @@
<view class='item_bottom_left_area'>拨打电话</view>
</view>
</view>
</view>
</view> -->
... ... @@ -89,5 +90,17 @@
<view class='bottom'>
没有更多内容了
</view>
</view>
</view>
\ No newline at end of file
<block wx:if='{{mask_show}}'>
<view class='mask' wx:if='{{registrationList}}' wx:key=''>
<view class='mask_item'>
<view class='mask_item_top'>需要拨打电话吗</view>
<view class='mask_item_mid'>{{item.user_resume_mobile}}1</view>
<view class='mask_item_bottom'>
<view class='mask_item_bottom_left' bindtap='toClose'>取消</view>
<view class='mask_item_bottom_right' bindtap='toSubmit'>确定</view>
</view>
</view>
</view>
</block>
\ No newline at end of file
... ...
... ... @@ -135,4 +135,56 @@ page{
font-family:PingFang-SC-Medium;
font-weight:500;
color:rgba(255,102,0,1);
}
.mask{
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
justify-content: center;
background: rgba(0, 0, 0, 0.3)
}
.mask_item{
margin-top: 300rpx;
width: 526rpx;
height: 300rpx;
background: #fff;
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
}
.mask_item_top{
}
.mask_item_mid{
margin-top: 30rpx;
}
.mask_item_bottom{
margin-top: 30rpx;
display: flex;
}
.mask_item_bottom_left{
width:200rpx;
height:76rpx;
line-height: 76rpx;
text-align: center;
box-sizing: border-box;
border:2rpx solid rgba(255,170,0,1);
border-radius:10rpx;
font-size: 28rpx;
color: #FFAA00;
}
.mask_item_bottom_right{
margin-left: 50rpx;
width:200rpx;
height:76rpx;
line-height: 76rpx;
text-align: center;
background:rgba(255,170,0,1);
border-radius:10rpx;
font-size: 28rpx;
color: #fff;
}
\ No newline at end of file
... ...