<el-dialog :visible.sync="dialogVisibleImg" title="查看商品详情" class="prodectData" :show-close="true">
<img :src="dialogImg"style="width: 100%">
<div class="language">
<video :src="dialogVideo" controls></video>
</div>
</el-dialog>
methods: {
show(item) {
var dialogImg;
var dialogVideo;
switch (item.bookId) {
case 1186:
dialogImg = import("../../assets/mathematics.png");
dialogVideo =import("../../assets/video/mathvideo.mp4");
break;
case 1185:
dialogImg = import("../../assets/language.png");
dialogVideo =import("../../assets/video/chinesevideo.mp4");
break;
case 1172:
dialogImg = import("../../assets/english.png");
dialogVideo = import("../../assets/english.png");
break;
default:
}
self.dialogImg = dialogImg;
self.dialogVideo = dialogVideo;
self.dialogVisibleImg = true
}
},
同事把图片和视频放在了assets 里面了。
这样写,没有效果。。。怎么写呢?
料青山看我应如是
拉丁的传说
相关分类