Commit 3bd07a6156a249d41ff1856583a021ff72929bbe
1 parent
e68a4f39
中投工会页面,默认设置页面title为中投工会~
Showing
1 changed file
with
15 additions
and
5 deletions
src/pages/shopList/shopList.vue
| ... | ... | @@ -169,6 +169,9 @@ |
| 169 | 169 | }, |
| 170 | 170 | created() { |
| 171 | 171 | |
| 172 | + // 设置标题 | |
| 173 | + this.$set(this, 'title', '中投工会'); | |
| 174 | + | |
| 172 | 175 | // 初始化页面 |
| 173 | 176 | this.initPage(); |
| 174 | 177 | |
| ... | ... | @@ -190,6 +193,13 @@ |
| 190 | 193 | ] |
| 191 | 194 | } |
| 192 | 195 | }); |
| 196 | + | |
| 197 | + // 判断如果title有值,设置nav标题 | |
| 198 | + if (this.title) { | |
| 199 | + | |
| 200 | + // 设置nav标题 | |
| 201 | + this.$set(this.backs, 'title', this.title); | |
| 202 | + } | |
| 193 | 203 | } |
| 194 | 204 | |
| 195 | 205 | // 获取页面头部数据 |
| ... | ... | @@ -321,14 +331,14 @@ |
| 321 | 331 | if (!this.tabs.init) { |
| 322 | 332 | |
| 323 | 333 | // 设置标题 |
| 324 | - this.$set(this, 'title', datas.title); | |
| 334 | + // this.$set(this, 'title', datas.title); | |
| 325 | 335 | |
| 326 | 336 | // 判断是否在App内 |
| 327 | - if (this.isCNLive.value) { | |
| 337 | + // if (this.isCNLive.value) { | |
| 328 | 338 | |
| 329 | - // 设置nav标题 | |
| 330 | - this.$set(this.backs, 'title', this.title); | |
| 331 | - } | |
| 339 | + // // 设置nav标题 | |
| 340 | + // this.$set(this.backs, 'title', this.title); | |
| 341 | + // } | |
| 332 | 342 | |
| 333 | 343 | // 获取头部swiper的banner |
| 334 | 344 | if (datas.banner && typeof datas.banner === 'object' && datas.banner.length) { | ... | ... |