From 02960234db5b8c4b120eeb58d80a5dd9240087f0 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Mon, 17 Feb 2025 16:16:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/firstBill/index.js | 24 +++++++++++++++++++++--- pages/firstBill/index.wxml | 43 ++++++++++++++++++++++++++++++------------- 2 files changed, 51 insertions(+), 16 deletions(-) diff --git a/pages/firstBill/index.js b/pages/firstBill/index.js index 088b69f..2898825 100644 --- a/pages/firstBill/index.js +++ b/pages/firstBill/index.js @@ -10,6 +10,7 @@ import { } from '../../utils/request.js' Page({ data: { + isSwiper:true, toped: "1", jobNum: 0, // 48小时更新职位数 currCode: '', @@ -610,7 +611,7 @@ Page({ this.data.recordList = []; this.data.storeJobListSearchForm.pageNum = 1; this.data.storeJobListSearchForm.keys = this.data.inputVal; - this.getJobList(); + this.getJobList('search'); }, onShareAppMessage: function () { var path = commonUtil.getCurrentPageUrlWithArgs(); @@ -658,7 +659,7 @@ Page({ this.data.recordList = []; this.data.storeJobListSearchForm.pageNum = 1; this.data.storeJobListSearchForm.keys = ""; - this.getJobList(); + this.getJobList('search'); }, inputTyping: function (e) { this.setData({ @@ -1812,6 +1813,17 @@ Page({ // this.getJobList(); }, + swiperToggleT(){ + this.setData({ + isSwiper:false + }) + }, + swiperToggleF(){ + this.setData({ + // isSwiper:true, + // inputVal:'' + }) + }, /** * 点击确认按钮 * @@ -2581,7 +2593,7 @@ Page({ // this.getJobList(); }, - getJobList () { + getJobList ($type) { var that = this; // debugger that.setData({ @@ -2629,6 +2641,12 @@ Page({ }).then((res) => { console.log("职位列表↓↓↓↓"); console.log(res); + if($type == 'search'){ + that.setData({ + isSwiper:true, + inputVal:'' + }) + } let data = res.data.data that.setData({ totalPage: data.pageCount, diff --git a/pages/firstBill/index.wxml b/pages/firstBill/index.wxml index 96b390b..b528d5d 100644 --- a/pages/firstBill/index.wxml +++ b/pages/firstBill/index.wxml @@ -11,21 +11,38 @@ - + - - - + + + + + {{item}} + + + + + + + - - - 搜索 + 搜索