|
|
|
@ -1,5 +1,6 @@
|
|
|
|
// pages/mine/myJob/index.js
|
|
|
|
// pages/mine/myJob/index.js
|
|
|
|
const app = getApp();
|
|
|
|
const app = getApp();
|
|
|
|
|
|
|
|
const commonUtil = require("../../../utils/commonUtil");
|
|
|
|
Page({
|
|
|
|
Page({
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
@ -7,7 +8,7 @@ Page({
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
recordList:[],
|
|
|
|
recordList:[],
|
|
|
|
inputVal:''
|
|
|
|
inputVal:'',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
@ -37,13 +38,34 @@ Page({
|
|
|
|
header: app.globalData.headers,
|
|
|
|
header: app.globalData.headers,
|
|
|
|
success: function (res) {
|
|
|
|
success: function (res) {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
res.data.data.forEach((item,index) => {
|
|
|
|
|
|
|
|
item['citys'] = commonUtil.setJobInfoPosition(item.customJob.storeDistrict);
|
|
|
|
|
|
|
|
// item['genderRestrict'] = commonUtil.getGenderByMinAge(item.customJob.customJob);
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(item.customJob.minAge) && app.isNotEmptyCheck(item.customJob.maxAge)) {
|
|
|
|
|
|
|
|
item["age"] = item.customJob.minAge + "-" + item.customJob.maxAge + "岁";
|
|
|
|
|
|
|
|
} else if (app.isNotEmptyCheck(item.customJob.minAge)) {
|
|
|
|
|
|
|
|
item["age"] = item.customJob.minAge + "岁以上";
|
|
|
|
|
|
|
|
} else if (app.isNotEmptyCheck(item.customJob.maxAge)) {
|
|
|
|
|
|
|
|
item["age"] = item.customJob.maxAge + "岁以下";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
recordList:res.data.data
|
|
|
|
recordList:res.data.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
goDetail (e) {
|
|
|
|
|
|
|
|
console.log(e.currentTarget.dataset.id);
|
|
|
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
|
|
|
url: "../../detail/index?storeJobId=" + e.currentTarget.dataset.id,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面隐藏
|
|
|
|
* 生命周期函数--监听页面隐藏
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|