Commit 7c019d2d3b65618fea86b926821b3256a70c564c

Authored by “wangming”
1 parent 044301aa

112

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