|
@@ -20,13 +20,23 @@
|
|
|
<!-- </div>-->
|
|
|
<!-- 图片列表-->
|
|
|
<div class="image-wrap" v-if="senceList.length">
|
|
|
- <div class="image-item" v-for="item in senceList" >
|
|
|
- <el-image class="cover-image" fit="fill" :src="item.url" :preview-src-list="srcList"></el-image>
|
|
|
- <p class="mt15 text-overflow-ellipsis f14 lh20">{{ item.description }}</p>
|
|
|
+ <div class="image-item" v-for="item in senceList">
|
|
|
+ <div v-if="item.type == 1" class="cover-image vr" @click="toVR(item.url)">
|
|
|
+ <el-image class="cover-image" fit="fill" :src="item.coverUrl" ></el-image>
|
|
|
+ <p class="mt10 text-overflow-ellipsis f14 lh20">VR校园</p>
|
|
|
+ <div class="colleges-imgs-mask">
|
|
|
+ <i class="iconfont icon-vr" style="font-size: 28px"></i>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.type == 3">
|
|
|
+ <el-image class="cover-image" fit="fill" :src="item.url" :preview-src-list="srcList"></el-image>
|
|
|
+ <p class="mt10 text-overflow-ellipsis f14 lh20">{{ item.description }}</p>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <evaluation-empty class="mt20" v-else shadow title="暂无数据"></evaluation-empty>
|
|
|
+ <evaluation-empty class="mt20" v-else shadow title="暂无数据"></evaluation-empty>
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
@@ -54,7 +64,9 @@ export default {
|
|
|
computed: {
|
|
|
srcList() {
|
|
|
if (!this.senceList.length) return []
|
|
|
- return this.senceList.map(item => {
|
|
|
+ return this.senceList.filter(item => {
|
|
|
+ return item.type == 3
|
|
|
+ }).map(item => {
|
|
|
return item.url
|
|
|
})
|
|
|
}
|
|
@@ -69,6 +81,9 @@ export default {
|
|
|
.finally(_ => {
|
|
|
this.loading = false
|
|
|
})
|
|
|
+ },
|
|
|
+ toVR(url) {
|
|
|
+ window.open(url,"_blank");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -102,25 +117,28 @@ export default {
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
|
|
|
- //.vr{
|
|
|
- // background-image: url("http://toc.cn-bj.ufileos.com/media/files/20210414/9d02bb82.png");
|
|
|
- //}
|
|
|
- //.video {
|
|
|
- // background-image: url("http://img1.youzy.cn/content/media/thumbs/p00176063.jpeg");
|
|
|
- //}
|
|
|
- //.colleges-imgs-mask {
|
|
|
- // position: absolute;
|
|
|
- // top: 0;
|
|
|
- // left: 0;
|
|
|
- // width: 217px;
|
|
|
- // height: 120px;
|
|
|
- // background: rgba(0,0,0,.5);
|
|
|
- // color: #fff;
|
|
|
- // text-align: center;
|
|
|
- // line-height: 120px;
|
|
|
- // border-radius: 4px;
|
|
|
- // overflow: hidden;
|
|
|
- //}
|
|
|
+ .vr {
|
|
|
+ background-image: url("http://toc.cn-bj.ufileos.com/media/files/20210414/9d02bb82.png");
|
|
|
+ }
|
|
|
+
|
|
|
+ .video {
|
|
|
+ background-image: url("http://img1.youzy.cn/content/media/thumbs/p00176063.jpeg");
|
|
|
+ }
|
|
|
+
|
|
|
+ .colleges-imgs-mask {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 217px;
|
|
|
+ height: 120px;
|
|
|
+ background: rgba(0, 0, 0, .5);
|
|
|
+ color: #fff;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 120px;
|
|
|
+ border-radius: 4px;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+
|
|
|
&:hover {
|
|
|
color: #42b983;
|
|
|
}
|