|
|
@@ -7,12 +7,12 @@
|
|
|
</div>
|
|
|
<div class="info">
|
|
|
<div class="name">
|
|
|
- <el-tag v-if="isList && info.top" size="mini" effect="dark">{{$t('zhi-ding')}}</el-tag>
|
|
|
+ <el-tag v-if="isList && info.top" size="mini" effect="dark">{{ $t('zhi-ding') }}</el-tag>
|
|
|
<!-- {{ info.title }} -->
|
|
|
<span v-html="getImport(info.title)"></span>
|
|
|
</div>
|
|
|
<template v-if="isActivity">
|
|
|
- <div class="info-item" style="margin-top: 20px">
|
|
|
+ <div class="info-item" style="margin-top: 20px;">
|
|
|
<div class="info-name">{{ $t('shi-jian') }}:</div>
|
|
|
<div class="info-val">{{ info.date }}</div>
|
|
|
</div>
|
|
|
@@ -96,12 +96,21 @@ export default {
|
|
|
isEnd() {
|
|
|
return this.info.isEnd || false;
|
|
|
},
|
|
|
+ type() {
|
|
|
+ return this.$route.query.type || '';
|
|
|
+ },
|
|
|
routerPath() {
|
|
|
+ let path = '';
|
|
|
if (this.userActivity) {
|
|
|
- return '/mineActivityDetail?informationId=' + this.info.id;
|
|
|
+ path = '/mineActivityDetail?informationId=' + this.info.id;
|
|
|
} else {
|
|
|
- return '/NewsDetail?id=' + this.info.id;
|
|
|
+ path = '/NewsDetail?id=' + this.info.id;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (this.type) {
|
|
|
+ path += '&type=' + this.type;
|
|
|
}
|
|
|
+ return path;
|
|
|
}
|
|
|
},
|
|
|
methods: {
|