From 41b5bebaaa97c2bb392f232942fc3710f122e952 Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Mon, 17 Mar 2025 10:25:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/job-sub/index.wxml | 2 +- pages/mine/index.js | 72 ++++++++++++++++++++++--------------------- pages/mine/index.wxml | 24 +++++++++++++-- 3 files changed, 60 insertions(+), 38 deletions(-) diff --git a/components/job-sub/index.wxml b/components/job-sub/index.wxml index 1ee4a16..2a319ac 100644 --- a/components/job-sub/index.wxml +++ b/components/job-sub/index.wxml @@ -82,7 +82,7 @@ - + diff --git a/pages/mine/index.js b/pages/mine/index.js index 1ca1090..8b397b0 100644 --- a/pages/mine/index.js +++ b/pages/mine/index.js @@ -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() - } + 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( - "⚠", - "" - ); - item["jobDesp1"] = item.jobDesp1.replace( - "[红包]", - "" - ); - 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, - // }); - // } }) } }); diff --git a/pages/mine/index.wxml b/pages/mine/index.wxml index 3934820..eb208ad 100644 --- a/pages/mine/index.wxml +++ b/pages/mine/index.wxml @@ -1,7 +1,7 @@ - + @@ -408,8 +408,28 @@ - + + + + + 没有符合条件的职位 + + + + + 已经到底啦~ + 上滑加载更多 + + + + 未登录时只能使用部分功能,申请加入伯才供应链即可使用更多功能。 + + + 登录伯才 + + +