Browse Source

Merge pull request '标签页标题' (#2) from wpd_title into master

Reviewed-on: #2
pull/3/head
pengda 1 month ago
parent
commit
2c213370cd
  1. 4
      src/router/index.js
  2. 2
      src/views/super/Ranking/RankBatchList.vue
  3. 2
      src/views/super/Ranking/RankDetail.vue
  4. 2
      src/views/super/Ranking/RankList.vue

4
src/router/index.js

@ -182,13 +182,13 @@ const routes = [{
path: '/super/ranking/detail', path: '/super/ranking/detail',
name: '详情', name: '详情',
component: () => import( /* webpackChunkName: "Ranking" */ '../views/super/Ranking/RankDetail.vue'), component: () => import( /* webpackChunkName: "Ranking" */ '../views/super/Ranking/RankDetail.vue'),
props: {rank_type: 1, type: 'day', showDateSelect: false} props: {pageTitle:'详情',rank_type: 1, type: 'day', showDateSelect: false}
}, },
{ {
path: '/super/ranking/list', path: '/super/ranking/list',
name: '列表', name: '列表',
component: () => import( /* webpackChunkName: "Ranking" */ '../views/super/Ranking/RankList.vue'), component: () => import( /* webpackChunkName: "Ranking" */ '../views/super/Ranking/RankList.vue'),
props: {} props: {pageTitle:'排行',}
}, },
] ]

2
src/views/super/Ranking/RankBatchList.vue

@ -249,6 +249,8 @@ export default {
}, },
methods: { methods: {
init() { init() {
document.title = this.pageTitle;
this.text = this.getNowDate() this.text = this.getNowDate()
this.dataType = this.type this.dataType = this.type
this.dataRank = this.rank_type this.dataRank = this.rank_type

2
src/views/super/Ranking/RankDetail.vue

@ -306,6 +306,8 @@ export default {
}, },
methods: { methods: {
init() { init() {
document.title = this.pageTitle;
this.text = "" this.text = ""
if (this.showDateSelect) this.text = this.getNowYear() if (this.showDateSelect) this.text = this.getNowYear()
this.dataRank = this.rank_type this.dataRank = this.rank_type

2
src/views/super/Ranking/RankList.vue

@ -287,6 +287,8 @@ export default {
}, },
methods: { methods: {
init() { init() {
document.title = this.pageTitle;
this.text = this.getNowDate() this.text = this.getNowDate()
this.dataType = this.type this.dataType = this.type
this.dataRank = this.rank_type this.dataRank = this.rank_type

Loading…
Cancel
Save