From 7c019d2d3b65618fea86b926821b3256a70c564c Mon Sep 17 00:00:00 2001 From: “wangming” <“wangming@antissoft.com”> Date: Wed, 28 Feb 2024 17:52:27 +0800 Subject: [PATCH] 112 --- pages/talent/talent.vue | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/pages/talent/talent.vue b/pages/talent/talent.vue index 2be6db2..2e7cb60 100644 --- a/pages/talent/talent.vue +++ b/pages/talent/talent.vue @@ -67,14 +67,14 @@ {{item.post}} - 3000-5000/月 + 3000-5000/月 - + @@ -86,8 +86,8 @@ data() { return { talentList: [], - show:false, - keyword:'' + show: false, + keyword: '' } }, onShow() { @@ -120,11 +120,11 @@ // 获取人才列表 getTalentList() { this.API.getTalentList().then(res => { - if(res.code === 600){ + if (res.code === 600) { // console.log(res) uni.showToast({ - icon:'error', - title:'登录过期,请重新登录' + icon: 'error', + title: '登录过期,请重新登录' }) } if (res.code === 200) { @@ -134,7 +134,7 @@ createTime: utils.formatTime(it.createTime) } }) - if(this.talentList.length > 0){ + if (this.talentList.length > 0) { this.show = true } } @@ -147,14 +147,16 @@ }) }, // 跳转到发布人才招聘 - toPostTalent(){ + toPostTalent() { uni.navigateTo({ - url:'/pages/postTalent/postTalent' + url: '/pages/postTalent/postTalent' }) }, // 搜索功能 - searchEvt(){ - this.API.getTalentList({keyword:this.keyword}).then(res => { + searchEvt() { + this.API.getTalentList({ + keyword: this.keyword + }).then(res => { console.log(res) if (res.code === 200) { this.talentList = res.data.list.map(it => { @@ -163,7 +165,7 @@ createTime: utils.formatTime(it.createTime) } }) - if(this.talentList.length > 0){ + if (this.talentList.length > 0) { this.show = true } } @@ -171,9 +173,9 @@ }) }, // 跳转到人才推介列表 - toRecommend(){ + toRecommend() { uni.navigateTo({ - url:`/pages/recommend/recommend` + url: `/pages/recommend/recommend` }) } } -- libgit2 0.21.4