|
@@ -15,7 +15,7 @@
|
|
<el-col :span="24" class="info">
|
|
<el-col :span="24" class="info">
|
|
<el-col :span="12" class="carousel" v-loading="loading">
|
|
<el-col :span="12" class="carousel" v-loading="loading">
|
|
<el-carousel height="400">
|
|
<el-carousel height="400">
|
|
- <el-carousel-item class="infoList" v-for="(item, index) in infoList" :key="index" @click.native="turnTo(item)">
|
|
|
|
|
|
+ <el-carousel-item class="infoList" v-for="(item, index) in infoList" :key="index" @click.native="$turnTo(item)">
|
|
<el-image style="width:100%;height:400px;" :src="item.pic" v-if="item.pic"></el-image>
|
|
<el-image style="width:100%;height:400px;" :src="item.pic" v-if="item.pic"></el-image>
|
|
<el-image style="width:100%;height:400px;" :src="noPic" v-else></el-image>
|
|
<el-image style="width:100%;height:400px;" :src="noPic" v-else></el-image>
|
|
<span class="textOver">{{ item.title }}</span>
|
|
<span class="textOver">{{ item.title }}</span>
|
|
@@ -23,7 +23,7 @@
|
|
</el-carousel>
|
|
</el-carousel>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12" style="height:400px;" v-loading="loading">
|
|
<el-col :span="12" style="height:400px;" v-loading="loading">
|
|
- <el-col :span="24" class="newsList" v-for="(item, index) in infosList" :key="index" @click.native="turnTo(item)">
|
|
|
|
|
|
+ <el-col :span="24" class="newsList" v-for="(item, index) in infosList" :key="index" @click.native="$turnTo(item)">
|
|
<el-col :span="20" class="title">
|
|
<el-col :span="20" class="title">
|
|
<p class="textOver">
|
|
<p class="textOver">
|
|
<i class="el-icon-s-flag icon"></i><span>{{ item.title }}</span>
|
|
<i class="el-icon-s-flag icon"></i><span>{{ item.title }}</span>
|
|
@@ -86,14 +86,14 @@ export default {
|
|
this.$set(this, `infosList`, columns);
|
|
this.$set(this, `infosList`, columns);
|
|
this.loading = false;
|
|
this.loading = false;
|
|
},
|
|
},
|
|
- turnTo(item) {
|
|
|
|
- if (item.url !== undefined) {
|
|
|
|
- window.open(item.url);
|
|
|
|
- } else {
|
|
|
|
- let route = this.$route.path;
|
|
|
|
- this.$router.push({ path: `/memberDetail?id=${item.id}` });
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ // turnTo(item) {
|
|
|
|
+ // if (item.info_type == 1) {
|
|
|
|
+ // window.open(item.url);
|
|
|
|
+ // } else {
|
|
|
|
+ // let route = this.$route.path;
|
|
|
|
+ // this.$router.push({ path: `/memberDetail?id=${item.id}` });
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
getDate(meta) {
|
|
getDate(meta) {
|