|
@@ -12,7 +12,7 @@
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="info">
|
|
|
- <el-col :span="8" class="list" v-for="(item, index) in list" :key="index">
|
|
|
+ <el-col :span="8" class="list" v-for="(item, index) in list" :key="index" @click="show(item)">
|
|
|
<el-image :src="item.url" style="width:150px;height:130px"></el-image>
|
|
|
<p>{{ item.title }}</p>
|
|
|
</el-col>
|
|
@@ -34,7 +34,11 @@ export default {
|
|
|
return {};
|
|
|
},
|
|
|
created() {},
|
|
|
- methods: {},
|
|
|
+ methods: {
|
|
|
+ show(data) {
|
|
|
+ this.$emit('show', data);
|
|
|
+ },
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
|
},
|