Commit 7c019d2d3b65618fea86b926821b3256a70c564c
1 parent
044301aa
112
Showing
1 changed file
with
17 additions
and
15 deletions
pages/talent/talent.vue
| ... | ... | @@ -67,14 +67,14 @@ |
| 67 | 67 | </view> |
| 68 | 68 | <view class="thumb"> |
| 69 | 69 | <view class="thumb-icon">{{item.post}}</view> |
| 70 | - <view>3000-5000/月</view> | |
| 70 | + <view v-if="false">3000-5000/月</view> | |
| 71 | 71 | </view> |
| 72 | 72 | </view> |
| 73 | 73 | </view> |
| 74 | 74 | </view> |
| 75 | 75 | </view> |
| 76 | 76 | |
| 77 | - | |
| 77 | + | |
| 78 | 78 | </view> |
| 79 | 79 | </view> |
| 80 | 80 | </template> |
| ... | ... | @@ -86,8 +86,8 @@ |
| 86 | 86 | data() { |
| 87 | 87 | return { |
| 88 | 88 | talentList: [], |
| 89 | - show:false, | |
| 90 | - keyword:'' | |
| 89 | + show: false, | |
| 90 | + keyword: '' | |
| 91 | 91 | } |
| 92 | 92 | }, |
| 93 | 93 | onShow() { |
| ... | ... | @@ -120,11 +120,11 @@ |
| 120 | 120 | // 获取人才列表 |
| 121 | 121 | getTalentList() { |
| 122 | 122 | this.API.getTalentList().then(res => { |
| 123 | - if(res.code === 600){ | |
| 123 | + if (res.code === 600) { | |
| 124 | 124 | // console.log(res) |
| 125 | 125 | uni.showToast({ |
| 126 | - icon:'error', | |
| 127 | - title:'登录过期,请重新登录' | |
| 126 | + icon: 'error', | |
| 127 | + title: '登录过期,请重新登录' | |
| 128 | 128 | }) |
| 129 | 129 | } |
| 130 | 130 | if (res.code === 200) { |
| ... | ... | @@ -134,7 +134,7 @@ |
| 134 | 134 | createTime: utils.formatTime(it.createTime) |
| 135 | 135 | } |
| 136 | 136 | }) |
| 137 | - if(this.talentList.length > 0){ | |
| 137 | + if (this.talentList.length > 0) { | |
| 138 | 138 | this.show = true |
| 139 | 139 | } |
| 140 | 140 | } |
| ... | ... | @@ -147,14 +147,16 @@ |
| 147 | 147 | }) |
| 148 | 148 | }, |
| 149 | 149 | // 跳转到发布人才招聘 |
| 150 | - toPostTalent(){ | |
| 150 | + toPostTalent() { | |
| 151 | 151 | uni.navigateTo({ |
| 152 | - url:'/pages/postTalent/postTalent' | |
| 152 | + url: '/pages/postTalent/postTalent' | |
| 153 | 153 | }) |
| 154 | 154 | }, |
| 155 | 155 | // 搜索功能 |
| 156 | - searchEvt(){ | |
| 157 | - this.API.getTalentList({keyword:this.keyword}).then(res => { | |
| 156 | + searchEvt() { | |
| 157 | + this.API.getTalentList({ | |
| 158 | + keyword: this.keyword | |
| 159 | + }).then(res => { | |
| 158 | 160 | console.log(res) |
| 159 | 161 | if (res.code === 200) { |
| 160 | 162 | this.talentList = res.data.list.map(it => { |
| ... | ... | @@ -163,7 +165,7 @@ |
| 163 | 165 | createTime: utils.formatTime(it.createTime) |
| 164 | 166 | } |
| 165 | 167 | }) |
| 166 | - if(this.talentList.length > 0){ | |
| 168 | + if (this.talentList.length > 0) { | |
| 167 | 169 | this.show = true |
| 168 | 170 | } |
| 169 | 171 | } |
| ... | ... | @@ -171,9 +173,9 @@ |
| 171 | 173 | }) |
| 172 | 174 | }, |
| 173 | 175 | // 跳转到人才推介列表 |
| 174 | - toRecommend(){ | |
| 176 | + toRecommend() { | |
| 175 | 177 | uni.navigateTo({ |
| 176 | - url:`/pages/recommend/recommend` | |
| 178 | + url: `/pages/recommend/recommend` | |
| 177 | 179 | }) |
| 178 | 180 | } |
| 179 | 181 | } | ... | ... |