|
|
|
|
@ -3,7 +3,7 @@ const app = getApp();
|
|
|
|
|
const commonUtil = require("../../utils/commonUtil.js");
|
|
|
|
|
Page({
|
|
|
|
|
data: {
|
|
|
|
|
swiperHeight:0,
|
|
|
|
|
swiperHeight: 0,
|
|
|
|
|
toped: "1",
|
|
|
|
|
chaShowed: false,
|
|
|
|
|
isTrigger: false,
|
|
|
|
|
@ -294,6 +294,10 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
copyList: {},
|
|
|
|
|
innerFilter: false,
|
|
|
|
|
// 年龄筛选参数
|
|
|
|
|
rangeValues: [16, 60], // 年龄筛选区间
|
|
|
|
|
maxAge: 60, // 年龄区间最大取值
|
|
|
|
|
minAge: 16,
|
|
|
|
|
},
|
|
|
|
|
// onPullDownRefresh:function(){
|
|
|
|
|
// this.getJobList();
|
|
|
|
|
@ -305,13 +309,13 @@ Page({
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
goLogin() {
|
|
|
|
|
goLogin () {
|
|
|
|
|
wx.setStorageSync("comeFromPage", "index");
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: "/pages/login/index",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
close() {
|
|
|
|
|
close () {
|
|
|
|
|
let that = this;
|
|
|
|
|
let brandList = that.data.brandList;
|
|
|
|
|
let selectBrandList = that.data.selectBrandList;
|
|
|
|
|
@ -356,7 +360,7 @@ Page({
|
|
|
|
|
// console.log(that.data.selectBrandList);
|
|
|
|
|
console.log("isout");
|
|
|
|
|
},
|
|
|
|
|
touchStart(e) {
|
|
|
|
|
touchStart (e) {
|
|
|
|
|
// console.log("滚起来", e);
|
|
|
|
|
// this.setData({
|
|
|
|
|
// scrollStop: false
|
|
|
|
|
@ -366,7 +370,7 @@ Page({
|
|
|
|
|
siv: "",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
choosenTop(e) {
|
|
|
|
|
choosenTop (e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
// that.data.storeJobListSearchForm.pageNum = 1;
|
|
|
|
|
let id = e.currentTarget.dataset.id;
|
|
|
|
|
@ -431,8 +435,8 @@ Page({
|
|
|
|
|
console.log(this.data.whichOneShow);
|
|
|
|
|
}, 0);
|
|
|
|
|
that.setData({
|
|
|
|
|
// siv: "menu",
|
|
|
|
|
// scrollTo: "sticky",
|
|
|
|
|
siv: "menu",
|
|
|
|
|
scrollTo: "sticky",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.hideLeft();
|
|
|
|
|
@ -450,8 +454,8 @@ Page({
|
|
|
|
|
activez: str,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
watch() {},
|
|
|
|
|
witchNav(e) {
|
|
|
|
|
watch () { },
|
|
|
|
|
witchNav (e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
if (!this.data.isLogin) {
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
@ -480,7 +484,7 @@ Page({
|
|
|
|
|
url: e.currentTarget.dataset.url,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
toHot(e) {
|
|
|
|
|
toHot (e) {
|
|
|
|
|
if (e.currentTarget.dataset.path) {
|
|
|
|
|
if (e.currentTarget.dataset.path == "/pages/hotList/index") {
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
@ -489,7 +493,7 @@ Page({
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
choiceSex(e) {
|
|
|
|
|
choiceSex (e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
let data = e.currentTarget.dataset;
|
|
|
|
|
that.data.filterData[data.type].forEach((item) => {
|
|
|
|
|
@ -544,7 +548,7 @@ Page({
|
|
|
|
|
// },2000);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
cc: function () {},
|
|
|
|
|
cc: function () { },
|
|
|
|
|
close: function () {
|
|
|
|
|
this.setData({
|
|
|
|
|
dialog1: false,
|
|
|
|
|
@ -585,7 +589,7 @@ Page({
|
|
|
|
|
imageUrl: img,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
goSearch() {
|
|
|
|
|
goSearch () {
|
|
|
|
|
if (!this.data.isLogin) {
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: "../login/index",
|
|
|
|
|
@ -626,12 +630,12 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
clear() {
|
|
|
|
|
clear () {
|
|
|
|
|
wx.clearStorage();
|
|
|
|
|
|
|
|
|
|
console.log("清除成功");
|
|
|
|
|
},
|
|
|
|
|
inputBlur() {},
|
|
|
|
|
inputBlur () { },
|
|
|
|
|
getListByTypeAndIndustry: function () {
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.request({
|
|
|
|
|
@ -683,7 +687,7 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
golistSharePage() {
|
|
|
|
|
golistSharePage () {
|
|
|
|
|
if (this.data.isLogin) {
|
|
|
|
|
if (app.globalData.loginUserInfo.agencyStatus == 1) {
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
@ -865,7 +869,7 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
// that.getJobList();
|
|
|
|
|
},
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
onLoad (options) {
|
|
|
|
|
var that = this;
|
|
|
|
|
console.log(options);
|
|
|
|
|
console.log(wx.getSystemInfoSync());
|
|
|
|
|
@ -883,7 +887,7 @@ Page({
|
|
|
|
|
|
|
|
|
|
// 查看是否授权
|
|
|
|
|
wx.getSetting({
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
if (res.authSetting["scope.userInfo"]) {
|
|
|
|
|
// 已经授权,可以直接调用 getUserInfo 获取头像昵称
|
|
|
|
|
wx.getUserInfo({
|
|
|
|
|
@ -1093,7 +1097,7 @@ Page({
|
|
|
|
|
that.getBannerList();
|
|
|
|
|
that.getchannelList();
|
|
|
|
|
},
|
|
|
|
|
onReady() {
|
|
|
|
|
onReady () {
|
|
|
|
|
let that = this;
|
|
|
|
|
// var query = wx.createSelectorQuery();
|
|
|
|
|
// query.select(".navigatorBar").boundingClientRect();
|
|
|
|
|
@ -1113,7 +1117,7 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
goChannel(e) {
|
|
|
|
|
goChannel (e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
@ -1121,7 +1125,7 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
setActive(e) {
|
|
|
|
|
setActive (e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
let data = e.currentTarget.dataset;
|
|
|
|
|
if (data.type == "yanba" || data.type == "sex" || data.type == "price") {
|
|
|
|
|
@ -1174,11 +1178,11 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
getBannerList() {
|
|
|
|
|
getBannerList () {
|
|
|
|
|
let that = this;
|
|
|
|
|
wx.request({
|
|
|
|
|
url: app.globalData.ip + "/daotian/banner/list",
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
if (res.data.status == 200) {
|
|
|
|
|
that.setData({
|
|
|
|
|
@ -1194,11 +1198,11 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
getTemplateList() {
|
|
|
|
|
getTemplateList () {
|
|
|
|
|
let that = this;
|
|
|
|
|
wx.request({
|
|
|
|
|
url: app.globalData.ip + "/daotian/image/list",
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
if (res.data.status == 200) {
|
|
|
|
|
app.globalData.templateList = res.data.data.images;
|
|
|
|
|
@ -1215,11 +1219,11 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
getchannelList() {
|
|
|
|
|
getchannelList () {
|
|
|
|
|
let that = this;
|
|
|
|
|
wx.request({
|
|
|
|
|
url: app.globalData.ip + "/daotian/channel/list",
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
if (res.data.status == 200) {
|
|
|
|
|
that.setData({
|
|
|
|
|
@ -1234,7 +1238,7 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
clearFilter1(e) {
|
|
|
|
|
clearFilter1 (e) {
|
|
|
|
|
let middleList = JSON.parse(JSON.stringify(this.data.copyList));
|
|
|
|
|
let type = e.currentTarget.dataset.type;
|
|
|
|
|
let filterData = this.data.filterData;
|
|
|
|
|
@ -1300,7 +1304,7 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
toList() {
|
|
|
|
|
toList () {
|
|
|
|
|
let that = this;
|
|
|
|
|
let innerFilter = false;
|
|
|
|
|
console.log(this.data.filterData);
|
|
|
|
|
@ -1363,7 +1367,10 @@ Page({
|
|
|
|
|
}
|
|
|
|
|
console.log(formSearch);
|
|
|
|
|
|
|
|
|
|
that.data.storeJobListSearchForm = { ...that.data.storeJobListSearchForm, ...formSearch };
|
|
|
|
|
that.data.storeJobListSearchForm = {
|
|
|
|
|
...that.data.storeJobListSearchForm, ...formSearch,
|
|
|
|
|
ageRangeStr: that.data.minAge + "-" + that.data.maxAge,
|
|
|
|
|
};
|
|
|
|
|
if (this.data.choiceCollect == 0) {
|
|
|
|
|
that.data.storeJobListSearchForm.ucj = 0;
|
|
|
|
|
} else {
|
|
|
|
|
@ -1385,38 +1392,38 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
onTabClick(e) {
|
|
|
|
|
onTabClick (e) {
|
|
|
|
|
const index = e.detail.index;
|
|
|
|
|
this.setData({
|
|
|
|
|
activeTab: index,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onChange(e) {
|
|
|
|
|
onChange (e) {
|
|
|
|
|
const index = e.detail.index;
|
|
|
|
|
this.setData({
|
|
|
|
|
activeTab: index,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
findLocation() {
|
|
|
|
|
findLocation () {
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.getLocation({
|
|
|
|
|
type: "gcj02",
|
|
|
|
|
success(res1) {
|
|
|
|
|
success (res1) {
|
|
|
|
|
console.log("获取位置2");
|
|
|
|
|
console.log(res1);
|
|
|
|
|
app.globalData.lng = res1.longitude;
|
|
|
|
|
app.globalData.lat = res1.latitude;
|
|
|
|
|
},
|
|
|
|
|
fail() {},
|
|
|
|
|
fail () { },
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
emptyMethod(e) {
|
|
|
|
|
emptyMethod (e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
},
|
|
|
|
|
chooseIdCard() {
|
|
|
|
|
chooseIdCard () {
|
|
|
|
|
var that = this;
|
|
|
|
|
if (that.data.agencyStatus != 1) {
|
|
|
|
|
this.setData({
|
|
|
|
|
@ -1428,7 +1435,7 @@ Page({
|
|
|
|
|
count: 1,
|
|
|
|
|
sizeType: ["original", "compressed"],
|
|
|
|
|
sourceType: ["album", "camera"],
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: `../newEnroll/enroll/index?applyType=1&imgUrl=${res.tempFilePaths[0]}`,
|
|
|
|
|
@ -1437,7 +1444,7 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
navigatorToRecord() {
|
|
|
|
|
navigatorToRecord () {
|
|
|
|
|
if (this.data.agencyStatus != 1) {
|
|
|
|
|
this.setData({
|
|
|
|
|
iosDialog: true,
|
|
|
|
|
@ -1448,7 +1455,7 @@ Page({
|
|
|
|
|
url: `../newEnroll/enroll/index?applyType=1`,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
PageScroll(e) {
|
|
|
|
|
PageScroll (e) {
|
|
|
|
|
let that = this;
|
|
|
|
|
const query = wx.createSelectorQuery().in(this);
|
|
|
|
|
query
|
|
|
|
|
@ -1471,7 +1478,7 @@ Page({
|
|
|
|
|
})
|
|
|
|
|
.exec();
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
onShow () {
|
|
|
|
|
let that = this;
|
|
|
|
|
that.data.storeJobListSearchForm.pageNum = 1;
|
|
|
|
|
wx.setStorageSync("BILLFROM", "firstBill");
|
|
|
|
|
@ -1525,7 +1532,7 @@ Page({
|
|
|
|
|
console.log("获取缓存设置的查询职位列表参数错误:", e);
|
|
|
|
|
}
|
|
|
|
|
wx.removeStorageSync("FROMCITY");
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
that.setData({
|
|
|
|
|
recordList: [],
|
|
|
|
|
});
|
|
|
|
|
@ -1601,7 +1608,7 @@ Page({
|
|
|
|
|
that.searchAnimate();
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
collectedStoreJobList() {
|
|
|
|
|
collectedStoreJobList () {
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
wx.request({
|
|
|
|
|
@ -1630,10 +1637,10 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fail: function (res) {},
|
|
|
|
|
fail: function (res) { },
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getHopeJobLabels() {
|
|
|
|
|
getHopeJobLabels () {
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.request({
|
|
|
|
|
url: app.globalData.ip + "/labels/findAllHopeJobLabels",
|
|
|
|
|
@ -1671,25 +1678,25 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
makePhoneCall() {
|
|
|
|
|
makePhoneCall () {
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.makePhoneCall({
|
|
|
|
|
phoneNumber: "13937184434",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
goScreen() {
|
|
|
|
|
goScreen () {
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: "../screen/index",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
goCity() {
|
|
|
|
|
goCity () {
|
|
|
|
|
let that = this;
|
|
|
|
|
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: "../city/index",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
initData() {
|
|
|
|
|
initData () {
|
|
|
|
|
var that = this;
|
|
|
|
|
try {
|
|
|
|
|
// 获取手机基础信息(头状态栏和标题栏高度)
|
|
|
|
|
@ -1783,7 +1790,7 @@ Page({
|
|
|
|
|
// this.getJobList();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getJobList() {
|
|
|
|
|
getJobList () {
|
|
|
|
|
var that = this;
|
|
|
|
|
// debugger
|
|
|
|
|
that.setData({
|
|
|
|
|
@ -1847,7 +1854,7 @@ Page({
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wx.hideLoading({
|
|
|
|
|
success: (res) => {},
|
|
|
|
|
success: (res) => { },
|
|
|
|
|
});
|
|
|
|
|
that.setData({
|
|
|
|
|
loading: false,
|
|
|
|
|
@ -1894,13 +1901,13 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onScrollRefresh() {
|
|
|
|
|
onScrollRefresh () {
|
|
|
|
|
this.data.recordList = [];
|
|
|
|
|
this.data.storeJobListSearchForm.pageNum = 1;
|
|
|
|
|
this.getJobList();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getTag() {
|
|
|
|
|
getTag () {
|
|
|
|
|
let that = this;
|
|
|
|
|
let query = that.createSelectorQuery();
|
|
|
|
|
query
|
|
|
|
|
@ -1926,7 +1933,7 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 下拉加载更多
|
|
|
|
|
onScrollToLower() {
|
|
|
|
|
onScrollToLower () {
|
|
|
|
|
console.log("====================================================");
|
|
|
|
|
var that = this;
|
|
|
|
|
// if (app.globalData.isLogin) {
|
|
|
|
|
@ -1945,7 +1952,7 @@ Page({
|
|
|
|
|
that.data.pullNum = that.data.pullNum + 1;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleTabClick(e) {
|
|
|
|
|
handleTabClick (e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
var index = e.detail.index;
|
|
|
|
|
console.log(e.detail.index);
|
|
|
|
|
@ -1975,7 +1982,7 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
goDetail(e) {
|
|
|
|
|
goDetail (e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
@ -1988,7 +1995,7 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
goDrawer(event) {
|
|
|
|
|
goDrawer (event) {
|
|
|
|
|
let that = this;
|
|
|
|
|
|
|
|
|
|
console.log(event.currentTarget.dataset.item);
|
|
|
|
|
@ -2014,7 +2021,7 @@ Page({
|
|
|
|
|
|
|
|
|
|
console.log(this.data.currentJobDrawer);
|
|
|
|
|
},
|
|
|
|
|
copyClose() {
|
|
|
|
|
copyClose () {
|
|
|
|
|
var that = this;
|
|
|
|
|
var contentInfo;
|
|
|
|
|
const query = wx.createSelectorQuery().in(this);
|
|
|
|
|
@ -2025,9 +2032,9 @@ Page({
|
|
|
|
|
var text = that.data.currentJobDrawer.jobDesp + contentInfo;
|
|
|
|
|
wx.setClipboardData({
|
|
|
|
|
data: text,
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
wx.getClipboardData({
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res.data); // data
|
|
|
|
|
wx.showToast({
|
|
|
|
|
title: "内容已复制",
|
|
|
|
|
@ -2045,7 +2052,7 @@ Page({
|
|
|
|
|
// this.setData({
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
hideDrawer() {
|
|
|
|
|
hideDrawer () {
|
|
|
|
|
let that = this;
|
|
|
|
|
this.getTabBar().setData({
|
|
|
|
|
isShow: true,
|
|
|
|
|
@ -2060,7 +2067,7 @@ Page({
|
|
|
|
|
// });
|
|
|
|
|
// }, 300);
|
|
|
|
|
},
|
|
|
|
|
goEnroll(e) {
|
|
|
|
|
goEnroll (e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
// wx.navigateTo({
|
|
|
|
|
// url: "../newEnroll/index?applyType=0"
|
|
|
|
|
@ -2089,10 +2096,10 @@ Page({
|
|
|
|
|
url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
wxLogin() {
|
|
|
|
|
wxLogin () {
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.login({
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
if (res.code) {
|
|
|
|
|
that.setData({
|
|
|
|
|
wxCode: res.code,
|
|
|
|
|
@ -2103,19 +2110,19 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
changeRecordBillType(e) {
|
|
|
|
|
changeRecordBillType (e) {
|
|
|
|
|
let that = this;
|
|
|
|
|
console.log(e);
|
|
|
|
|
that.setData({
|
|
|
|
|
recordBillType: e.currentTarget.dataset.type,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
toSmart() {
|
|
|
|
|
toSmart () {
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: "/pages/IDCardWithNFC/index",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getPhoneNumber(e) {
|
|
|
|
|
getPhoneNumber (e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
console.log(e);
|
|
|
|
|
console.log(e.detail.errMsg);
|
|
|
|
|
@ -2136,7 +2143,7 @@ Page({
|
|
|
|
|
var encryptedData = e.detail.encryptedData;
|
|
|
|
|
console.log(iv, "=-=========", encryptedData);
|
|
|
|
|
wx.checkSession({
|
|
|
|
|
success() {
|
|
|
|
|
success () {
|
|
|
|
|
//session_key 未过期,并且在本生命周期一直有效
|
|
|
|
|
wx.request({
|
|
|
|
|
url: app.globalData.ip + "/getWechatTel",
|
|
|
|
|
@ -2145,7 +2152,7 @@ Page({
|
|
|
|
|
iv: iv,
|
|
|
|
|
encryptedData: encryptedData,
|
|
|
|
|
type: "yishoudan",
|
|
|
|
|
appId:app.globalData.appId
|
|
|
|
|
appId: app.globalData.appId
|
|
|
|
|
},
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
@ -2185,10 +2192,10 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
fail() {
|
|
|
|
|
fail () {
|
|
|
|
|
// session_key 已经失效,需要重新执行登录流程
|
|
|
|
|
wx.login({
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
if (res.code) {
|
|
|
|
|
console.log(res.code);
|
|
|
|
|
//发起网络请求
|
|
|
|
|
@ -2199,7 +2206,7 @@ Page({
|
|
|
|
|
iv: iv,
|
|
|
|
|
encryptedData: encryptedData,
|
|
|
|
|
type: "yishoudan",
|
|
|
|
|
appId:app.globalData.appId
|
|
|
|
|
appId: app.globalData.appId
|
|
|
|
|
},
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
@ -2252,7 +2259,7 @@ Page({
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
getPhoneNumber1(e) {
|
|
|
|
|
getPhoneNumber1 (e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
console.log(e);
|
|
|
|
|
console.log(e.detail.errMsg);
|
|
|
|
|
@ -2268,7 +2275,7 @@ Page({
|
|
|
|
|
var iv = e.detail.iv;
|
|
|
|
|
var encryptedData = e.detail.encryptedData;
|
|
|
|
|
wx.checkSession({
|
|
|
|
|
success() {
|
|
|
|
|
success () {
|
|
|
|
|
//session_key 未过期,并且在本生命周期一直有效
|
|
|
|
|
wx.request({
|
|
|
|
|
url: app.globalData.ip + "/getWechatTel",
|
|
|
|
|
@ -2277,7 +2284,7 @@ Page({
|
|
|
|
|
iv: iv,
|
|
|
|
|
encryptedData: encryptedData,
|
|
|
|
|
type: "yishoudan",
|
|
|
|
|
appId:app.globalData.appId
|
|
|
|
|
appId: app.globalData.appId
|
|
|
|
|
},
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
@ -2294,10 +2301,10 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
fail() {
|
|
|
|
|
fail () {
|
|
|
|
|
// session_key 已经失效,需要重新执行登录流程
|
|
|
|
|
wx.login({
|
|
|
|
|
success(res) {
|
|
|
|
|
success (res) {
|
|
|
|
|
if (res.code) {
|
|
|
|
|
console.log(res.code);
|
|
|
|
|
//发起网络请求
|
|
|
|
|
@ -2308,7 +2315,7 @@ Page({
|
|
|
|
|
iv: iv,
|
|
|
|
|
encryptedData: encryptedData,
|
|
|
|
|
type: "yishoudan",
|
|
|
|
|
appId:app.globalData.appId
|
|
|
|
|
appId: app.globalData.appId
|
|
|
|
|
},
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
@ -2348,7 +2355,7 @@ Page({
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
getAgencyUserId(id) {
|
|
|
|
|
getAgencyUserId (id) {
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.request({
|
|
|
|
|
url: app.globalData.ip + "/channel/contact/getAgencyUserId",
|
|
|
|
|
@ -2377,7 +2384,7 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
collectPaste(e) {
|
|
|
|
|
collectPaste (e) {
|
|
|
|
|
var txt;
|
|
|
|
|
var that = this;
|
|
|
|
|
if (!this.data.isLogin) {
|
|
|
|
|
@ -2403,7 +2410,7 @@ Page({
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
doCollected(collected, storeJobId) {
|
|
|
|
|
doCollected (collected, storeJobId) {
|
|
|
|
|
var that = this;
|
|
|
|
|
var url = "/user/collect/job/add";
|
|
|
|
|
if (collected - 1 == 0) {
|
|
|
|
|
@ -2538,7 +2545,7 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
changSign(e) {
|
|
|
|
|
changSign (e) {
|
|
|
|
|
let that = this;
|
|
|
|
|
console.log(e);
|
|
|
|
|
that.data.storeJobListSearchForm.pageNum = 1;
|
|
|
|
|
@ -2573,7 +2580,7 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
collectChange(e) {
|
|
|
|
|
collectChange (e) {
|
|
|
|
|
let that = this;
|
|
|
|
|
if (that.data.isLogin || (!that.data.isLogin && e.currentTarget.dataset.id == 0)) {
|
|
|
|
|
if (e.currentTarget.dataset.id) {
|
|
|
|
|
@ -2591,13 +2598,13 @@ Page({
|
|
|
|
|
} else {
|
|
|
|
|
that.setData({
|
|
|
|
|
recordList: [],
|
|
|
|
|
hasMoreData:false,
|
|
|
|
|
hasMoreData: false,
|
|
|
|
|
choiceCollect: 1,
|
|
|
|
|
});
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
choiceFilter(e) {
|
|
|
|
|
choiceFilter (e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
// let str = that.data.activez
|
|
|
|
|
let str = e.currentTarget.dataset.id;
|
|
|
|
|
@ -2630,7 +2637,7 @@ Page({
|
|
|
|
|
} else {
|
|
|
|
|
wx.getLocation({
|
|
|
|
|
type: "gcj02",
|
|
|
|
|
success(res1) {
|
|
|
|
|
success (res1) {
|
|
|
|
|
console.log("获取位置1");
|
|
|
|
|
app.globalData.lng = res1.longitude;
|
|
|
|
|
app.globalData.lat = res1.latitude;
|
|
|
|
|
@ -2652,7 +2659,7 @@ Page({
|
|
|
|
|
// that.getJobList();
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
fail() {
|
|
|
|
|
fail () {
|
|
|
|
|
console.log("获取位置失败,打开位置设置界面");
|
|
|
|
|
// wx.openSetting({
|
|
|
|
|
// success(res) {
|
|
|
|
|
@ -2723,7 +2730,7 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
clearFilter() {
|
|
|
|
|
clearFilter () {
|
|
|
|
|
let that = this;
|
|
|
|
|
that.data.jobSpecialLabelList.forEach((item) => {
|
|
|
|
|
// console.log(item);
|
|
|
|
|
@ -2773,13 +2780,13 @@ Page({
|
|
|
|
|
// });
|
|
|
|
|
that.getJobList();
|
|
|
|
|
},
|
|
|
|
|
scroll(e) {
|
|
|
|
|
scroll (e) {
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
stoptap(e) {
|
|
|
|
|
stoptap (e) {
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
changeContact() {
|
|
|
|
|
changeContact () {
|
|
|
|
|
console.log(2123);
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: `/pages/configAnnunciate/index`,
|
|
|
|
|
@ -2790,7 +2797,7 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
recordBill(e) {
|
|
|
|
|
recordBill (e) {
|
|
|
|
|
if (!this.data.isLogin) {
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: "/pages/login/index",
|
|
|
|
|
@ -2815,22 +2822,22 @@ Page({
|
|
|
|
|
// url: `../newEnroll/enroll/index?applyType=1&info=${info}`,
|
|
|
|
|
// });
|
|
|
|
|
},
|
|
|
|
|
imageLoad() {
|
|
|
|
|
imageLoad () {
|
|
|
|
|
this.setData({
|
|
|
|
|
isLoading: false,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
closeDialog() {
|
|
|
|
|
closeDialog () {
|
|
|
|
|
this.setData({
|
|
|
|
|
iosDialog: false,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
showLeft() {
|
|
|
|
|
showLeft () {
|
|
|
|
|
this.setData({
|
|
|
|
|
leftShow: true,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
hideLeft() {
|
|
|
|
|
hideLeft () {
|
|
|
|
|
this.setData({
|
|
|
|
|
leftShow: false,
|
|
|
|
|
whichOneShow: "",
|
|
|
|
|
@ -2847,7 +2854,7 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
modalMove() {
|
|
|
|
|
modalMove () {
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
@ -2855,7 +2862,7 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
getSwiperIndex(e) {
|
|
|
|
|
getSwiperIndex (e) {
|
|
|
|
|
// console.dir(e);
|
|
|
|
|
if (e.detail.current) {
|
|
|
|
|
this.setData({
|
|
|
|
|
@ -2865,18 +2872,18 @@ Page({
|
|
|
|
|
// console.log(this.data.placeholderText);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onPageScroll(e) {},
|
|
|
|
|
drawerTouchStart(event) {
|
|
|
|
|
onPageScroll (e) { },
|
|
|
|
|
drawerTouchStart (event) {
|
|
|
|
|
this.handletouchtart(event);
|
|
|
|
|
},
|
|
|
|
|
drawerTouchMove(event) {
|
|
|
|
|
drawerTouchMove (event) {
|
|
|
|
|
let tx = this.handletouchmove(event);
|
|
|
|
|
console.log(tx);
|
|
|
|
|
if (tx.ty > 100) {
|
|
|
|
|
this.hideDrawer();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
filterTouchMove(event) {
|
|
|
|
|
filterTouchMove (event) {
|
|
|
|
|
let tx = this.handletouchmove(event);
|
|
|
|
|
if (tx.tx < -100) {
|
|
|
|
|
this.setData({
|
|
|
|
|
@ -2884,10 +2891,10 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
filterTouchStart(event) {
|
|
|
|
|
filterTouchStart (event) {
|
|
|
|
|
this.handletouchtart(event);
|
|
|
|
|
},
|
|
|
|
|
listTouchMove(event) {
|
|
|
|
|
listTouchMove (event) {
|
|
|
|
|
if (event.detail.scrollTop - this.data.listPosition > 15 && this.data.halfHide == false) {
|
|
|
|
|
this.setData({
|
|
|
|
|
halfHide: true,
|
|
|
|
|
@ -2922,7 +2929,7 @@ Page({
|
|
|
|
|
}
|
|
|
|
|
// console.log(event);
|
|
|
|
|
},
|
|
|
|
|
listTouchStart(event) {
|
|
|
|
|
listTouchStart (event) {
|
|
|
|
|
this.data.listPosition = event.detail.scrollTop;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@ -2956,7 +2963,7 @@ Page({
|
|
|
|
|
this.data.lastX = event.touches[0].pageX;
|
|
|
|
|
this.data.lastY = event.touches[0].pageY;
|
|
|
|
|
},
|
|
|
|
|
searchAnimate() {
|
|
|
|
|
searchAnimate () {
|
|
|
|
|
let that = this;
|
|
|
|
|
wx.createSelectorQuery()
|
|
|
|
|
.select("#listBox")
|
|
|
|
|
@ -2991,28 +2998,28 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// tabbar点击监听
|
|
|
|
|
onTabItemTap(e) {
|
|
|
|
|
onTabItemTap (e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
let that = this;
|
|
|
|
|
that.setData({
|
|
|
|
|
topNum: 1,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
onHide() {
|
|
|
|
|
onHide () {
|
|
|
|
|
this.setData({
|
|
|
|
|
whichOneShow: "",
|
|
|
|
|
// topNum: 1,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
onUnload() {
|
|
|
|
|
onUnload () {
|
|
|
|
|
console.log("destory");
|
|
|
|
|
},
|
|
|
|
|
goList() {
|
|
|
|
|
goList () {
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: "/pages/filterPage/index",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
goMap(){
|
|
|
|
|
goMap () {
|
|
|
|
|
wx.getLocation({
|
|
|
|
|
type: 'gcj02', //返回可以用于wx.openLocation的经纬度
|
|
|
|
|
success (res) {
|
|
|
|
|
@ -3021,14 +3028,14 @@ Page({
|
|
|
|
|
wx.openLocation({
|
|
|
|
|
latitude,
|
|
|
|
|
longitude,
|
|
|
|
|
name:'郑州一才企业管理有限公司',
|
|
|
|
|
address:'河南省郑州市管城回族区心怡路与东站南街交叉口郑东升龙广场2号楼5楼',
|
|
|
|
|
name: '郑州一才企业管理有限公司',
|
|
|
|
|
address: '河南省郑州市管城回族区心怡路与东站南街交叉口郑东升龙广场2号楼5楼',
|
|
|
|
|
scale: 18
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
makePhone(e){
|
|
|
|
|
makePhone (e) {
|
|
|
|
|
var that = this;
|
|
|
|
|
var tel = e.currentTarget.dataset.tel;
|
|
|
|
|
wx.makePhoneCall({
|
|
|
|
|
@ -3036,4 +3043,17 @@ Page({
|
|
|
|
|
phoneNumber: tel,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 范围选择年龄的回调
|
|
|
|
|
*/
|
|
|
|
|
onRangeChange (e) {
|
|
|
|
|
let maxAge = Math.floor(e.detail.maxValue) + "";
|
|
|
|
|
let minAge = Math.floor(e.detail.minValue) + "";
|
|
|
|
|
console.log(maxAge, minAge);
|
|
|
|
|
this.setData({
|
|
|
|
|
rangeValues: [minAge, maxAge],
|
|
|
|
|
maxAge,
|
|
|
|
|
minAge,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|