|
@@ -35,6 +35,7 @@ var app = new Vue({
|
|
|
articalArrayRelated: [], //相关推荐
|
|
|
columnTypes: [], //栏目类型
|
|
|
colL:0,
|
|
|
+ modelType:1,
|
|
|
columnImage: '', //栏目图片
|
|
|
|
|
|
// 公共弹框
|
|
@@ -158,7 +159,16 @@ var app = new Vue({
|
|
|
_this.requestParams.categoryid=objData[0].id
|
|
|
}
|
|
|
_this.getArticalData(_this.requestParams)
|
|
|
+ _this.modelType = _this.columnList[i].modelType;
|
|
|
_this.columnImage = _this.columnList[i].imagePath;
|
|
|
+ setTimeout(()=>{
|
|
|
+ if(_this.modelType==2){
|
|
|
+ document.getElementById("videoPlay").src = _this.columnImage; //url为你需要播放的视频地址
|
|
|
+ document.getElementById("videoPlay").setAttribute('poster', '/assets/img/banner/111.png');
|
|
|
+ }
|
|
|
+ },100)
|
|
|
+
|
|
|
+
|
|
|
|
|
|
} else {
|
|
|
|
|
@@ -187,7 +197,14 @@ var app = new Vue({
|
|
|
_this.getArticalData(_this.requestParams, 1)
|
|
|
}, 100)
|
|
|
_this.currentPath = _this.columnList[i].sname //产品详情时栏目高亮
|
|
|
+ _this.modelType = _this.columnList[i].modelType; //栏目图片获取
|
|
|
_this.columnImage = _this.columnList[i].imagePath; //栏目图片获取
|
|
|
+ setTimeout(()=>{
|
|
|
+ if(_this.modelType==2){
|
|
|
+ document.getElementById("videoPlay").src = _this.columnImage; //url为你需要播放的视频地址
|
|
|
+ document.getElementById("videoPlay").setAttribute('poster', '/assets/img/banner/111.png');
|
|
|
+ }
|
|
|
+ },100)
|
|
|
}
|
|
|
}
|
|
|
function getSeoCommon(){
|