|
@@ -69,9 +69,27 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.search();
|
|
this.search();
|
|
|
|
+ this.getTitle();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...news({ newsquery: 'query' }),
|
|
...news({ newsquery: 'query' }),
|
|
|
|
+ getTitle() {
|
|
|
|
+ if (this.type === '0') {
|
|
|
|
+ this.title = '会议简介';
|
|
|
|
+ } else if (this.type === '1') {
|
|
|
|
+ this.title = '会议日程';
|
|
|
|
+ } else if (this.type === '2') {
|
|
|
|
+ this.title = '主办方介绍';
|
|
|
|
+ } else if (this.type === '3') {
|
|
|
|
+ this.title = '协办方介绍';
|
|
|
|
+ } else if (this.type === '4') {
|
|
|
|
+ this.title = '专家介绍';
|
|
|
|
+ } else if (this.type === '6') {
|
|
|
|
+ this.title = '温馨提示';
|
|
|
|
+ } else if (this.type === '7') {
|
|
|
|
+ this.title = '联系客服';
|
|
|
|
+ }
|
|
|
|
+ },
|
|
async search() {
|
|
async search() {
|
|
let res = await this.newsquery({ type: this.type });
|
|
let res = await this.newsquery({ type: this.type });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
@@ -89,7 +107,7 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.title = this.$route.meta.title;
|
|
|
|
|
|
+ //this.title = this.$route.meta.title;
|
|
this.isleftarrow = this.$route.meta.isleftarrow;
|
|
this.isleftarrow = this.$route.meta.isleftarrow;
|
|
},
|
|
},
|
|
};
|
|
};
|