|
@@ -183,7 +183,13 @@ const App = {
|
|
|
_this.requestParams.categoryid = objData[0].id
|
|
|
_this.getArticalData(_this.requestParams)
|
|
|
_this.columnImage = _this.columnList[i].imagePath;
|
|
|
- _this.getArticalData(_this.requestParams)
|
|
|
+ _this.modelType = _this.columnList[i].modelType;
|
|
|
+ setTimeout(() => {
|
|
|
+ if (_this.modelType == 2) {
|
|
|
+ document.getElementById("videoPlay").src = _this.columnImage; //url为你需要播放的视频地址
|
|
|
+ document.getElementById("videoPlay").setAttribute('poster', '/assets/img/banner/poster.jpg');
|
|
|
+ }
|
|
|
+ }, 100)
|
|
|
|
|
|
|
|
|
}
|
|
@@ -194,15 +200,16 @@ const App = {
|
|
|
_this.columnImage = _this.columnList[0].imagePath;
|
|
|
|
|
|
_this.getArticalData(_this.requestParams)
|
|
|
+ _this.modelType = _this.columnList[i].modelType;
|
|
|
+ setTimeout(() => {
|
|
|
+ if (_this.modelType == 2) {
|
|
|
+ document.getElementById("videoPlay").src = _this.columnImage; //url为你需要播放的视频地址
|
|
|
+ document.getElementById("videoPlay").setAttribute('poster', '/assets/img/banner/poster.jpg');
|
|
|
+ }
|
|
|
+ }, 100)
|
|
|
}
|
|
|
|
|
|
- _this.modelType = _this.columnList[i].modelType;
|
|
|
- setTimeout(() => {
|
|
|
- if (_this.modelType == 2) {
|
|
|
- document.getElementById("videoPlay").src = _this.columnImage; //url为你需要播放的视频地址
|
|
|
- document.getElementById("videoPlay").setAttribute('poster', '/assets/img/banner/poster.jpg');
|
|
|
- }
|
|
|
- }, 100)
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -222,6 +229,13 @@ const App = {
|
|
|
_this.columnImage = _this.columnList[i].imagePath;
|
|
|
}
|
|
|
getSeoCommon()
|
|
|
+ _this.modelType = _this.columnList[i].modelType;
|
|
|
+ setTimeout(() => {
|
|
|
+ if (_this.modelType == 2) {
|
|
|
+ document.getElementById("videoPlay").src = _this.columnImage; //url为你需要播放的视频地址
|
|
|
+ document.getElementById("videoPlay").setAttribute('poster', '/assets/img/banner/poster.jpg');
|
|
|
+ }
|
|
|
+ }, 100)
|
|
|
|
|
|
}
|
|
|
if (window.location.href.indexOf("dup") == -1 && !_this.columnList[i].sname && ('/template' + _this.columnList[i].categoryStyle + '/' == window.location.pathname)) {
|
|
@@ -237,16 +251,17 @@ const App = {
|
|
|
_this.columnImage = _this.columnList[i].imagePath;
|
|
|
}
|
|
|
getSeoCommon()
|
|
|
+ _this.modelType = _this.columnList[i].modelType;
|
|
|
+ setTimeout(() => {
|
|
|
+ if (_this.modelType == 2) {
|
|
|
+ document.getElementById("videoPlay").src = _this.columnImage; //url为你需要播放的视频地址
|
|
|
+ document.getElementById("videoPlay").setAttribute('poster', '/assets/img/banner/poster.jpg');
|
|
|
+ }
|
|
|
+ }, 100)
|
|
|
|
|
|
}
|
|
|
|
|
|
- _this.modelType = _this.columnList[i].modelType;
|
|
|
- setTimeout(() => {
|
|
|
- if (_this.modelType == 2) {
|
|
|
- document.getElementById("videoPlay").src = _this.columnImage; //url为你需要播放的视频地址
|
|
|
- document.getElementById("videoPlay").setAttribute('poster', '/assets/img/banner/poster.jpg');
|
|
|
- }
|
|
|
- }, 100)
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -271,22 +286,34 @@ const App = {
|
|
|
if(window.location.href.indexOf("dup") && ('/template' + _this.columnList[i].categoryStyle+ '/read.html' + '?dup=' + _this.columnList[i].sname == `${window.location.pathname}?dup=` + _this.getQuery('dup'))){
|
|
|
_this.currentPath = `/template${ _this.columnList[i].categoryStyle}/?dup=` + _this.getQuery('dup')
|
|
|
getSeoCommon()
|
|
|
+
|
|
|
+ _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/poster.jpg');
|
|
|
+ }
|
|
|
+ }, 100)
|
|
|
}
|
|
|
|
|
|
if (window.location.href.indexOf("dup") == -1 && !_this.columnList[i].sname && ('/template' + _this.columnList[i].categoryStyle + '/read.html' == window.location.pathname)) {
|
|
|
|
|
|
_this.currentPath = `/template${ _this.columnList[i].categoryStyle}/`
|
|
|
getSeoCommon()
|
|
|
+
|
|
|
+ _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/poster.jpg');
|
|
|
+ }
|
|
|
+ }, 100)
|
|
|
}
|
|
|
|
|
|
- _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/poster.jpg');
|
|
|
- }
|
|
|
- }, 100)
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|