|
|
|
@ -2,110 +2,110 @@ 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: "",
|
|
|
|
loadContent: ["马不停蹄加载更多数据中...", "-- 已经到底了,加不了咯 --"],
|
|
|
|
loadContent: ["马不停蹄加载更多数据中...", "-- 已经到底了,加不了咯 --"],
|
|
|
|
|
|
|
|
|
|
|
|
statusBarHeight: wx.getStorageSync("statusBarHeight"), // 状态栏高度
|
|
|
|
statusBarHeight: wx.getStorageSync("statusBarHeight"), // 状态栏高度
|
|
|
|
|
|
|
|
|
|
|
|
navigationBarHeight: wx.getStorageSync("navigationBarHeight"), // 导航栏高度
|
|
|
|
navigationBarHeight: wx.getStorageSync("navigationBarHeight"), // 导航栏高度
|
|
|
|
|
|
|
|
|
|
|
|
menuButtonHeight: wx.getStorageSync("menuButtonHeight"), // 胶囊按钮高度
|
|
|
|
menuButtonHeight: wx.getStorageSync("menuButtonHeight"), // 胶囊按钮高度
|
|
|
|
|
|
|
|
|
|
|
|
menuButton: wx.getStorageSync("menuButtonInfo"), // 胶囊信息
|
|
|
|
menuButton: wx.getStorageSync("menuButtonInfo"), // 胶囊信息
|
|
|
|
navigatorHeight: 60,
|
|
|
|
navigatorHeight: 60,
|
|
|
|
recordList: [],
|
|
|
|
recordList: [],
|
|
|
|
jobSpecialLabelNames: [],
|
|
|
|
jobSpecialLabelNames: [],
|
|
|
|
storeJobListSearchForm: {
|
|
|
|
storeJobListSearchForm: {
|
|
|
|
jobCategoryLabelIds:'',
|
|
|
|
jobCategoryLabelIds: '',
|
|
|
|
recruitment:1,
|
|
|
|
recruitment: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
pageSize: 20,
|
|
|
|
pageSize: 20,
|
|
|
|
classify: 1,
|
|
|
|
classify: 1,
|
|
|
|
sex: -1,
|
|
|
|
sex: -1,
|
|
|
|
workTypeStr: "",
|
|
|
|
workTypeStr: "",
|
|
|
|
lat: "",
|
|
|
|
lat: "",
|
|
|
|
lng: "",
|
|
|
|
lng: "",
|
|
|
|
jobClassify: "",
|
|
|
|
jobClassify: "",
|
|
|
|
sortTag: 0,
|
|
|
|
sortTag: 0,
|
|
|
|
jobSpecialLabelIds: "",
|
|
|
|
jobSpecialLabelIds: "",
|
|
|
|
cityName: "",
|
|
|
|
cityName: "",
|
|
|
|
brandIds: "",
|
|
|
|
brandIds: "",
|
|
|
|
jobCategoryLabelIds: "",
|
|
|
|
jobCategoryLabelIds: "",
|
|
|
|
ucj: 0,
|
|
|
|
ucj: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
hasMoreData: false, //下拉是否还有更多数据
|
|
|
|
hasMoreData: false, //下拉是否还有更多数据
|
|
|
|
inputShowed: false,
|
|
|
|
inputShowed: false,
|
|
|
|
inputVal: "搜索工作",
|
|
|
|
inputVal: "搜索工作",
|
|
|
|
wxCode: "",
|
|
|
|
wxCode: "",
|
|
|
|
isLogin: false,
|
|
|
|
isLogin: false,
|
|
|
|
hasUserInfo: 0,
|
|
|
|
hasUserInfo: 0,
|
|
|
|
pageShow: false,
|
|
|
|
pageShow: false,
|
|
|
|
recordCount: 0,
|
|
|
|
recordCount: 0,
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
console.log(this.data.scrollInfoView)
|
|
|
|
console.log(this.data.scrollInfoView)
|
|
|
|
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 () {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 智能匹配结束
|
|
|
|
* 智能匹配结束
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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,255 +115,255 @@ 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) {
|
|
|
|
|
|
|
|
|
|
|
|
wx.showLoading({
|
|
|
|
wx.showLoading({
|
|
|
|
title: "加载中...",
|
|
|
|
title: "加载中...",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
wx.request({
|
|
|
|
wx.request({
|
|
|
|
url: app.globalData.ip + "/yishoudan/custom/job/listApp",
|
|
|
|
url: app.globalData.ip + "/yishoudan/custom/job/listApp",
|
|
|
|
method: "POST",
|
|
|
|
method: "POST",
|
|
|
|
header: app.globalData.headers,
|
|
|
|
header: app.globalData.headers,
|
|
|
|
data: that.data.storeJobListSearchForm,
|
|
|
|
data: that.data.storeJobListSearchForm,
|
|
|
|
success: function (res) {
|
|
|
|
success: function (res) {
|
|
|
|
console.log("职位列表↓↓↓↓");
|
|
|
|
console.log("职位列表↓↓↓↓");
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
totalPage: res.data.data.pageBean.pageCount,
|
|
|
|
totalPage: res.data.data.pageBean.pageCount,
|
|
|
|
currPage: res.data.data.pageBean.currentPage,
|
|
|
|
currPage: res.data.data.pageBean.currentPage,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (res.data.data.pageBean.recordList == null || res.data.data.pageBean.recordList.length == 0 || res.data.data.pageBean.recordList.length < that.data.storeJobListSearchForm.pageSize) {
|
|
|
|
if (res.data.data.pageBean.recordList == null || res.data.data.pageBean.recordList.length == 0 || res.data.data.pageBean.recordList.length < that.data.storeJobListSearchForm.pageSize) {
|
|
|
|
var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList);
|
|
|
|
var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList);
|
|
|
|
that.data.recordList = that.data.recordList.concat(jobListTemp);
|
|
|
|
that.data.recordList = that.data.recordList.concat(jobListTemp);
|
|
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
isTrigger: false,
|
|
|
|
isTrigger: false,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList);
|
|
|
|
var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList);
|
|
|
|
that.data.recordList = that.data.recordList.concat(jobListTemp);
|
|
|
|
that.data.recordList = that.data.recordList.concat(jobListTemp);
|
|
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
isTrigger: false,
|
|
|
|
isTrigger: false,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if (res.data.data.pageBean.recordCount >= res.data.data.pageBean.pageSize) {
|
|
|
|
// if (res.data.data.pageBean.recordCount >= res.data.data.pageBean.pageSize) {
|
|
|
|
// that.setData({
|
|
|
|
// that.setData({
|
|
|
|
// hasMoreData: true,
|
|
|
|
// hasMoreData: true,
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// } else {
|
|
|
|
// } else {
|
|
|
|
// that.setData({
|
|
|
|
// that.setData({
|
|
|
|
// hasMoreData: false,
|
|
|
|
// hasMoreData: false,
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
wx.hideLoading({
|
|
|
|
wx.hideLoading({
|
|
|
|
success: (res) => {},
|
|
|
|
success: (res) => { },
|
|
|
|
});
|
|
|
|
});
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
pageShow: true,
|
|
|
|
pageShow: true,
|
|
|
|
storeJobListSearchForm: that.data.storeJobListSearchForm,
|
|
|
|
storeJobListSearchForm: that.data.storeJobListSearchForm,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
resolve();
|
|
|
|
resolve();
|
|
|
|
// that.getTag();
|
|
|
|
// that.getTag();
|
|
|
|
|
|
|
|
|
|
|
|
that.data.recordList.forEach((item, index) => {
|
|
|
|
that.data.recordList.forEach((item, index) => {
|
|
|
|
item['citys'] = commonUtil.setJobInfoPosition(item.storeDistrict);
|
|
|
|
item['citys'] = commonUtil.setJobInfoPosition(item.storeDistrict);
|
|
|
|
// console.log(item);
|
|
|
|
// console.log(item);
|
|
|
|
if (app.isNotEmptyCheck(item.returnFeeType) || item.returnFeeType == "0" || item.returnFee == "0") {
|
|
|
|
if (app.isNotEmptyCheck(item.returnFeeType) || item.returnFeeType == "0" || item.returnFee == "0") {
|
|
|
|
item["fuWuFei"] = commonUtil.getReturnFeeTypeName1ById(item.returnFeeType, item.returnFee);
|
|
|
|
item["fuWuFei"] = commonUtil.getReturnFeeTypeName1ById(item.returnFeeType, item.returnFee);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
item["fuWuFei"] = "";
|
|
|
|
item["fuWuFei"] = "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
let _stopList = [];
|
|
|
|
let _stopList = [];
|
|
|
|
// if($type == 'onshow'){
|
|
|
|
// if($type == 'onshow'){
|
|
|
|
// that.data.list.forEach((item,index) => {
|
|
|
|
// that.data.list.forEach((item,index) => {
|
|
|
|
// that.getDomInfo('category_' + index,(categoryRes)=>{
|
|
|
|
// that.getDomInfo('category_' + index,(categoryRes)=>{
|
|
|
|
// _stopList.push(Number(categoryRes.top))
|
|
|
|
// _stopList.push(Number(categoryRes.top))
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
sList:_stopList,
|
|
|
|
sList: _stopList,
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
currentJobDrawer: that.data.currentJobDrawer,
|
|
|
|
currentJobDrawer: that.data.currentJobDrawer,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
currentJobDrawer: that.data.currentJobDrawer,
|
|
|
|
currentJobDrawer: that.data.currentJobDrawer,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// if (that.data.recordList.length < res.data.data.pageBean.recordCount) {
|
|
|
|
// if (that.data.recordList.length < res.data.data.pageBean.recordCount) {
|
|
|
|
// that.setData({
|
|
|
|
// that.setData({
|
|
|
|
// hasMoreData: true,
|
|
|
|
// hasMoreData: true,
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// } else {
|
|
|
|
// } else {
|
|
|
|
// that.setData({
|
|
|
|
// that.setData({
|
|
|
|
// hasMoreData: false,
|
|
|
|
// hasMoreData: false,
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
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){
|
|
|
|
// that.setData({
|
|
|
|
// that.setData({
|
|
|
|
// active:0
|
|
|
|
// active:0
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// }else if(4241 <= e.detail.scrollTop && e.detail.scrollTop < 8482){
|
|
|
|
// }else if(4241 <= e.detail.scrollTop && e.detail.scrollTop < 8482){
|
|
|
|
// that.setData({
|
|
|
|
// that.setData({
|
|
|
|
// active:1
|
|
|
|
// active:1
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// }else {
|
|
|
|
// }else {
|
|
|
|
// that.setData({
|
|
|
|
// that.setData({
|
|
|
|
// active:2
|
|
|
|
// active:2
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// getDomInfo($obj,callback=()=>{}){
|
|
|
|
// getDomInfo($obj,callback=()=>{}){
|
|
|
|
// if($obj){
|
|
|
|
// if($obj){
|
|
|
|
// const query = wx.createSelectorQuery()
|
|
|
|
// const query = wx.createSelectorQuery()
|
|
|
|
// query.select('#' + $obj).boundingClientRect(function(categoryRes){
|
|
|
|
// query.select('#' + $obj).boundingClientRect(function(categoryRes){
|
|
|
|
// callback(categoryRes);
|
|
|
|
// callback(categoryRes);
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// query.exec()
|
|
|
|
// query.exec()
|
|
|
|
// }else{
|
|
|
|
// }else{
|
|
|
|
// callback({
|
|
|
|
// callback({
|
|
|
|
// bottom: -1,
|
|
|
|
// bottom: -1,
|
|
|
|
// dataset: {},
|
|
|
|
// dataset: {},
|
|
|
|
// height: -1,
|
|
|
|
// height: -1,
|
|
|
|
// id: "",
|
|
|
|
// id: "",
|
|
|
|
// left: -1,
|
|
|
|
// left: -1,
|
|
|
|
// right: -1,
|
|
|
|
// right: -1,
|
|
|
|
// top: -1,
|
|
|
|
// top: -1,
|
|
|
|
// width: -1
|
|
|
|
// width: -1
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// };
|
|
|
|
// };
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 标准详情
|
|
|
|
* 标准详情
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
goDetail(e) {
|
|
|
|
goDetail (e) {
|
|
|
|
console.log(e);
|
|
|
|
console.log(e);
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
wx.navigateTo({
|
|
|
|
wx.navigateTo({
|
|
|
|
url: "../../detail/index?storeJobId=" + e.currentTarget.dataset.id + "&wxCode=" + that.data.wxCode,
|
|
|
|
url: "../../detail/index?storeJobId=" + e.currentTarget.dataset.id + "&wxCode=" + that.data.wxCode,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 下拉加载更多
|
|
|
|
// 下拉加载更多
|
|
|
|
onScrollToLower () {
|
|
|
|
onScrollToLower () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
that.data.storeJobListSearchForm.pageNum =
|
|
|
|
that.data.storeJobListSearchForm.pageNum =
|
|
|
|
that.data.storeJobListSearchForm.pageNum + 1;
|
|
|
|
that.data.storeJobListSearchForm.pageNum + 1;
|
|
|
|
if (that.data.hasMoreData) {
|
|
|
|
if (that.data.hasMoreData) {
|
|
|
|
that.getJobList();
|
|
|
|
that.getJobList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 根据实际数据加载情况设定 loadMore 的值即可,分别为 load 和 over
|
|
|
|
// 根据实际数据加载情况设定 loadMore 的值即可,分别为 load 和 over
|
|
|
|
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
loadMore: "load",
|
|
|
|
loadMore: "load",
|
|
|
|
// loading:true
|
|
|
|
// loading:true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
goEnroll (e) {
|
|
|
|
|
|
|
|
console.log(e);
|
|
|
|
|
|
|
|
// wx.navigateTo({
|
|
|
|
|
|
|
|
// url: "../newEnroll/index?applyType=0"
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wx.removeStorageSync("townsManInfo");
|
|
|
|
|
|
|
|
wx.removeStorageSync("townsManInfoJob");
|
|
|
|
|
|
|
|
wx.removeStorageSync("storeInfoJob");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if(app.isNotEmptyCheck(wx.getStorage('townsManInfo'))){
|
|
|
|
|
|
|
|
// wx.removeStorageSync('townsManInfo')
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if(app.isNotEmptyCheck(wx.getStorage('townsManInfoJob'))){
|
|
|
|
|
|
|
|
// wx.removeStorageSync('townsManInfoJob')
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if(app.isNotEmptyCheck(wx.getStorage('storeInfoJob'))){
|
|
|
|
|
|
|
|
// wx.removeStorageSync('storeInfoJob')
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// wx.removeStorageSync('townsManInfoJob')
|
|
|
|
|
|
|
|
console.log(app.globalData.loginUserInfo.tel);
|
|
|
|
|
|
|
|
wx.setStorageSync("jobDetailStorage", that.data.recordList[e.currentTarget.dataset.idx]);
|
|
|
|
|
|
|
|
let argument;
|
|
|
|
|
|
|
|
argument = JSON.stringify(e.currentTarget.dataset.info).replace(/\=|\&/g, "3D");
|
|
|
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
|
|
|
url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
wxLogin () {
|
|
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
wx.login({
|
|
|
|
|
|
|
|
success (res) {
|
|
|
|
|
|
|
|
if (res.code) {
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
|
|
|
wxCode: res.code,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
console.log("获取code失败!" + res.errMsg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
scroll (e) {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
stoptap (e) {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onHide () {
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
|
|
|
|
whichOneShow: "",
|
|
|
|
|
|
|
|
// topNum: 1,
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goEnroll(e) {
|
|
|
|
onUnload () {
|
|
|
|
console.log(e);
|
|
|
|
console.log("destory");
|
|
|
|
// wx.navigateTo({
|
|
|
|
},
|
|
|
|
// url: "../newEnroll/index?applyType=0"
|
|
|
|
goList () {
|
|
|
|
// });
|
|
|
|
wx.navigateTo({
|
|
|
|
var that = this;
|
|
|
|
url: "/pages/filterPage/index",
|
|
|
|
|
|
|
|
});
|
|
|
|
wx.removeStorageSync("townsManInfo");
|
|
|
|
|
|
|
|
wx.removeStorageSync("townsManInfoJob");
|
|
|
|
|
|
|
|
wx.removeStorageSync("storeInfoJob");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if(app.isNotEmptyCheck(wx.getStorage('townsManInfo'))){
|
|
|
|
|
|
|
|
// wx.removeStorageSync('townsManInfo')
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if(app.isNotEmptyCheck(wx.getStorage('townsManInfoJob'))){
|
|
|
|
|
|
|
|
// wx.removeStorageSync('townsManInfoJob')
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if(app.isNotEmptyCheck(wx.getStorage('storeInfoJob'))){
|
|
|
|
|
|
|
|
// wx.removeStorageSync('storeInfoJob')
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// wx.removeStorageSync('townsManInfoJob')
|
|
|
|
|
|
|
|
console.log(app.globalData.loginUserInfo.tel);
|
|
|
|
|
|
|
|
wx.setStorageSync("jobDetailStorage", that.data.recordList[e.currentTarget.dataset.idx]);
|
|
|
|
|
|
|
|
let argument;
|
|
|
|
|
|
|
|
argument = JSON.stringify(e.currentTarget.dataset.info).replace(/\=|\&/g, "3D");
|
|
|
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
|
|
|
url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
wxLogin() {
|
|
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
wx.login({
|
|
|
|
|
|
|
|
success(res) {
|
|
|
|
|
|
|
|
if (res.code) {
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
|
|
|
wxCode: res.code,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
console.log("获取code失败!" + res.errMsg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
scroll(e) {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
stoptap(e) {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onHide() {
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
|
|
|
|
whichOneShow: "",
|
|
|
|
|
|
|
|
// topNum: 1,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
onUnload() {
|
|
|
|
|
|
|
|
console.log("destory");
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
goList() {
|
|
|
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
|
|
|
url: "/pages/filterPage/index",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
hidedrawershow (e) {
|
|
|
|
hidedrawershow (e) {
|
|
|
|
console.log(e);
|
|
|
|
console.log(e);
|
|
|
|
@ -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({
|
|
|
|
|