|
|
|
|
@ -10,7 +10,7 @@ Page({
|
|
|
|
|
*/
|
|
|
|
|
data: {
|
|
|
|
|
appId: app.globalData.appId,
|
|
|
|
|
|
|
|
|
|
pageShow: true,
|
|
|
|
|
isopen: 1, // 账户余额是否显示
|
|
|
|
|
iosDialog: false,
|
|
|
|
|
iosDialogTobe: false,
|
|
|
|
|
@ -87,9 +87,9 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
if (app.globalData.isLogin) {
|
|
|
|
|
this.getTeamList()
|
|
|
|
|
}
|
|
|
|
|
this.getJobList()
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}, 100);
|
|
|
|
|
},
|
|
|
|
|
hidedrawershow (e) {
|
|
|
|
|
@ -516,8 +516,38 @@ Page({
|
|
|
|
|
that.getJobList();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 下拉加载更多
|
|
|
|
|
onScrollToLower () {
|
|
|
|
|
console.log("====================================================");
|
|
|
|
|
var that = this;
|
|
|
|
|
if (app.globalData.isLogin) {
|
|
|
|
|
that.data.storeJobListSearchForm.pageNum =
|
|
|
|
|
that.data.storeJobListSearchForm.pageNum + 1;
|
|
|
|
|
if (that.data.hasMoreData) {
|
|
|
|
|
that.getJobList();
|
|
|
|
|
}
|
|
|
|
|
// 根据实际数据加载情况设定 loadMore 的值即可,分别为 load 和 over
|
|
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
|
loadMore: "load",
|
|
|
|
|
// loading:true
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
// if (that.data.pullNum == 0) {
|
|
|
|
|
// that.openIOS1();
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
that.data.pullNum = that.data.pullNum + 1;
|
|
|
|
|
},
|
|
|
|
|
getJobList ($type) {
|
|
|
|
|
let that = this
|
|
|
|
|
that.setData({
|
|
|
|
|
pageShow: false,
|
|
|
|
|
});
|
|
|
|
|
wx.showLoading({
|
|
|
|
|
title: "加载中...",
|
|
|
|
|
});
|
|
|
|
|
customRequest("/yishoudan/custom/job/listV2", {
|
|
|
|
|
method: 'post',
|
|
|
|
|
header: 'headers',
|
|
|
|
|
@ -615,26 +645,7 @@ Page({
|
|
|
|
|
} else {
|
|
|
|
|
item["fuWuFei"] = "";
|
|
|
|
|
}
|
|
|
|
|
// 简版弹窗通告显示
|
|
|
|
|
if (item.id == that.data.currentJobDrawer.id) {
|
|
|
|
|
item["jobDesp"] = item.jobDesp
|
|
|
|
|
.replace(/\*\*\*\*\*/g, "")
|
|
|
|
|
.split("————————")[0];
|
|
|
|
|
// 展示用字段
|
|
|
|
|
item["jobDesp1"] = item.jobDesp.replace(
|
|
|
|
|
"⚠",
|
|
|
|
|
"<i class='t-icon t-icon-zhuyi' style='margin-bottom:-2px;width:17px;height:17px;background-repeat:no-repeat;background-size:100% 100%'></i>"
|
|
|
|
|
);
|
|
|
|
|
item["jobDesp1"] = item.jobDesp1.replace(
|
|
|
|
|
"[红包]",
|
|
|
|
|
"<i class='t-icon t-icon-hongbao' style='margin-bottom:-2px;width:17px;height:17px;background-repeat:no-repeat;background-size:100% 100%'></i>"
|
|
|
|
|
);
|
|
|
|
|
that.data.currentJobDrawer = {
|
|
|
|
|
...item,
|
|
|
|
|
index: that.data.currentJobDrawer.index ?
|
|
|
|
|
that.data.currentJobDrawer.index : null,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
console.log(' that.data.recordList', that.data.recordList);
|
|
|
|
|
that.setData({
|
|
|
|
|
@ -642,19 +653,10 @@ Page({
|
|
|
|
|
currentJobDrawer: that.data.currentJobDrawer,
|
|
|
|
|
});
|
|
|
|
|
wx.hideLoading({
|
|
|
|
|
success: (res) => { },
|
|
|
|
|
success: (res) => {
|
|
|
|
|
console.log(123123);
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
resolve();
|
|
|
|
|
that.getTag();
|
|
|
|
|
// if (that.data.recordList.length < data.recordCount) {
|
|
|
|
|
// that.setData({
|
|
|
|
|
// hasMoreData: true,
|
|
|
|
|
// });
|
|
|
|
|
// } else {
|
|
|
|
|
// that.setData({
|
|
|
|
|
// hasMoreData: false,
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|