|
|
|
@ -3,7 +3,7 @@ const app = getApp();
|
|
|
|
const commonUtil = require("../../../utils/commonUtil.js");
|
|
|
|
const commonUtil = require("../../../utils/commonUtil.js");
|
|
|
|
Page({
|
|
|
|
Page({
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
currentInfo:{},
|
|
|
|
currentInfo: {},
|
|
|
|
recordShow: false,
|
|
|
|
recordShow: false,
|
|
|
|
pullNum: 0, //下拉次数
|
|
|
|
pullNum: 0, //下拉次数
|
|
|
|
loadMore: "",
|
|
|
|
loadMore: "",
|
|
|
|
@ -20,8 +20,8 @@ Page({
|
|
|
|
recordList: [],
|
|
|
|
recordList: [],
|
|
|
|
jobSpecialLabelNames: [],
|
|
|
|
jobSpecialLabelNames: [],
|
|
|
|
storeJobListSearchForm: {
|
|
|
|
storeJobListSearchForm: {
|
|
|
|
jobCategoryLabelIds:'',
|
|
|
|
jobCategoryLabelIds: '',
|
|
|
|
recruitment:1,
|
|
|
|
recruitment: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
pageSize: 20,
|
|
|
|
pageSize: 20,
|
|
|
|
classify: 1,
|
|
|
|
classify: 1,
|
|
|
|
@ -49,20 +49,20 @@ Page({
|
|
|
|
totalPage: 0,
|
|
|
|
totalPage: 0,
|
|
|
|
currPage: 0,
|
|
|
|
currPage: 0,
|
|
|
|
|
|
|
|
|
|
|
|
list:[],
|
|
|
|
list: [],
|
|
|
|
active:0,
|
|
|
|
active: 0,
|
|
|
|
|
|
|
|
|
|
|
|
scrollInfoView:'category_0',
|
|
|
|
scrollInfoView: 'category_0',
|
|
|
|
sList:[],
|
|
|
|
sList: [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleTab(e){
|
|
|
|
handleTab (e) {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
console.log('点击tab',e.currentTarget.dataset.active)
|
|
|
|
console.log('点击tab', e.currentTarget.dataset.active)
|
|
|
|
console.log('点击tab',e.currentTarget.dataset.id)
|
|
|
|
console.log('点击tab', e.currentTarget.dataset.id)
|
|
|
|
that.data.storeJobListSearchForm['jobCategoryLabelIds'] = e.currentTarget.dataset.id
|
|
|
|
that.data.storeJobListSearchForm['jobCategoryLabelIds'] = e.currentTarget.dataset.id
|
|
|
|
that.data.storeJobListSearchForm.pageNum = 1
|
|
|
|
that.data.storeJobListSearchForm.pageNum = 1
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
active:e.currentTarget.dataset.active,// tab切换
|
|
|
|
active: e.currentTarget.dataset.active,// tab切换
|
|
|
|
storeJobListSearchForm: that.data.storeJobListSearchForm
|
|
|
|
storeJobListSearchForm: that.data.storeJobListSearchForm
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -70,18 +70,18 @@ Page({
|
|
|
|
that.getJobList();
|
|
|
|
that.getJobList();
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goLogin() {
|
|
|
|
goLogin () {
|
|
|
|
wx.setStorageSync("comeFromPage", "index");
|
|
|
|
wx.setStorageSync("comeFromPage", "index");
|
|
|
|
wx.navigateTo({
|
|
|
|
wx.navigateTo({
|
|
|
|
url: "/pages/login/index",
|
|
|
|
url: "/pages/login/index",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onLoad(options) {
|
|
|
|
onLoad (options) {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onReady() {
|
|
|
|
onReady () {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 智能匹配结束
|
|
|
|
* 智能匹配结束
|
|
|
|
@ -89,23 +89,23 @@ Page({
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
onShow() {
|
|
|
|
onShow () {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
console.log(app.globalData)
|
|
|
|
console.log(app.globalData)
|
|
|
|
that.data.storeJobListSearchForm.pageNum = 1;
|
|
|
|
that.data.storeJobListSearchForm.pageNum = 1;
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
isLogin:app.globalData.isLogin
|
|
|
|
isLogin: app.globalData.isLogin
|
|
|
|
})
|
|
|
|
})
|
|
|
|
that.getType();
|
|
|
|
that.getType();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getType(){
|
|
|
|
getType () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
wx.request({
|
|
|
|
wx.request({
|
|
|
|
url: app.globalData.ip + "/yishoudan/custom/job/categoryLabels",
|
|
|
|
url: app.globalData.ip + "/yishoudan/custom/job/categoryLabels",
|
|
|
|
method: "get",
|
|
|
|
method: "get",
|
|
|
|
header: app.globalData.headers,
|
|
|
|
header: app.globalData.headers,
|
|
|
|
success: function (res) {
|
|
|
|
success: function (res) {
|
|
|
|
if(res.data.data.labels.length > 2){
|
|
|
|
if (res.data.data.labels.length > 2) {
|
|
|
|
var first = res.data.data.labels[0];
|
|
|
|
var first = res.data.data.labels[0];
|
|
|
|
var last = res.data.data.labels[res.data.data.labels.length - 1];
|
|
|
|
var last = res.data.data.labels[res.data.data.labels.length - 1];
|
|
|
|
res.data.data.labels.pop();
|
|
|
|
res.data.data.labels.pop();
|
|
|
|
@ -115,22 +115,22 @@ Page({
|
|
|
|
res.data.data.labels.push(last);
|
|
|
|
res.data.data.labels.push(last);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(res.data.data.labels[0]){
|
|
|
|
if (res.data.data.labels[0]) {
|
|
|
|
that.data.storeJobListSearchForm['jobCategoryLabelIds'] = res.data.data.labels[0].id
|
|
|
|
that.data.storeJobListSearchForm['jobCategoryLabelIds'] = res.data.data.labels[0].id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
list:res.data.data.labels,
|
|
|
|
list: res.data.data.labels,
|
|
|
|
storeJobListSearchForm: that.data.storeJobListSearchForm
|
|
|
|
storeJobListSearchForm: that.data.storeJobListSearchForm
|
|
|
|
})
|
|
|
|
})
|
|
|
|
that.getJobList();
|
|
|
|
that.getJobList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getJobList() {
|
|
|
|
getJobList () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
pageShow: false,
|
|
|
|
pageShow: false,
|
|
|
|
recordList:[]
|
|
|
|
recordList: []
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return new Promise(function (resolve, reject) {
|
|
|
|
return new Promise(function (resolve, reject) {
|
|
|
|
|
|
|
|
|
|
|
|
@ -181,7 +181,7 @@ Page({
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
wx.hideLoading({
|
|
|
|
wx.hideLoading({
|
|
|
|
success: (res) => {},
|
|
|
|
success: (res) => { },
|
|
|
|
});
|
|
|
|
});
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
@ -212,7 +212,7 @@ Page({
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
sList:_stopList,
|
|
|
|
sList: _stopList,
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
currentJobDrawer: that.data.currentJobDrawer,
|
|
|
|
currentJobDrawer: that.data.currentJobDrawer,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -233,7 +233,7 @@ Page({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
bindCategoryScroll(e){
|
|
|
|
bindCategoryScroll (e) {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
|
|
|
|
|
|
|
|
// if(0 <= e.detail.scrollTop && e.detail.scrollTop < 4241){
|
|
|
|
// if(0 <= e.detail.scrollTop && e.detail.scrollTop < 4241){
|
|
|
|
@ -276,7 +276,7 @@ Page({
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
goDetail(e) {
|
|
|
|
goDetail (e) {
|
|
|
|
console.log(e);
|
|
|
|
console.log(e);
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
wx.navigateTo({
|
|
|
|
wx.navigateTo({
|
|
|
|
@ -300,7 +300,7 @@ Page({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goEnroll(e) {
|
|
|
|
goEnroll (e) {
|
|
|
|
console.log(e);
|
|
|
|
console.log(e);
|
|
|
|
// wx.navigateTo({
|
|
|
|
// wx.navigateTo({
|
|
|
|
// url: "../newEnroll/index?applyType=0"
|
|
|
|
// url: "../newEnroll/index?applyType=0"
|
|
|
|
@ -329,10 +329,10 @@ Page({
|
|
|
|
url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
wxLogin() {
|
|
|
|
wxLogin () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
wx.login({
|
|
|
|
wx.login({
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
if (res.code) {
|
|
|
|
if (res.code) {
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
wxCode: res.code,
|
|
|
|
wxCode: res.code,
|
|
|
|
@ -343,24 +343,24 @@ Page({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scroll(e) {
|
|
|
|
scroll (e) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
stoptap(e) {
|
|
|
|
stoptap (e) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onHide() {
|
|
|
|
onHide () {
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
whichOneShow: "",
|
|
|
|
whichOneShow: "",
|
|
|
|
// topNum: 1,
|
|
|
|
// topNum: 1,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onUnload() {
|
|
|
|
onUnload () {
|
|
|
|
console.log("destory");
|
|
|
|
console.log("destory");
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goList() {
|
|
|
|
goList () {
|
|
|
|
wx.navigateTo({
|
|
|
|
wx.navigateTo({
|
|
|
|
url: "/pages/filterPage/index",
|
|
|
|
url: "/pages/filterPage/index",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -402,15 +402,15 @@ Page({
|
|
|
|
// return;
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
console.log(e.currentTarget.dataset.job);
|
|
|
|
console.log(e.currentTarget.dataset.job);
|
|
|
|
this.setData({
|
|
|
|
|
|
|
|
recordShow: true,
|
|
|
|
|
|
|
|
currentInfo: e.currentTarget.dataset.job,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(this.data.recordShow);
|
|
|
|
console.log(this.data.recordShow);
|
|
|
|
wx.hideTabBar({
|
|
|
|
wx.hideTabBar({
|
|
|
|
animation: false,
|
|
|
|
animation: false,
|
|
|
|
success: (result) => {
|
|
|
|
success: (result) => {
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
|
|
|
|
recordShow: true,
|
|
|
|
|
|
|
|
currentInfo: e.currentTarget.dataset.job,
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fail: () => { },
|
|
|
|
fail: () => { },
|
|
|
|
complete: () => { }
|
|
|
|
complete: () => { }
|
|
|
|
@ -434,7 +434,7 @@ Page({
|
|
|
|
// url: `../newEnroll/enroll/index?applyType=1&info=${info}`,
|
|
|
|
// url: `../newEnroll/enroll/index?applyType=1&info=${info}`,
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
},
|
|
|
|
},
|
|
|
|
makePhone(e){
|
|
|
|
makePhone (e) {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
var tel = e.currentTarget.dataset.tel;
|
|
|
|
var tel = e.currentTarget.dataset.tel;
|
|
|
|
wx.makePhoneCall({
|
|
|
|
wx.makePhoneCall({
|
|
|
|
|