|
@@ -183,15 +183,7 @@ const App = {
|
|
|
_this.requestParams.categoryid = objData[0].id
|
|
|
_this.getArticalData(_this.requestParams)
|
|
|
_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.getArticalData(_this.requestParams)
|
|
|
+ _this.getArticalData(_this.requestParams)
|
|
|
|
|
|
|
|
|
}
|
|
@@ -199,21 +191,18 @@ const App = {
|
|
|
console.log('首页模板')
|
|
|
getSeoCommon()
|
|
|
this.requestParams.categoryid = this.columnList[0].id
|
|
|
- _this.modelType = _this.columnList[0].modelType;
|
|
|
_this.columnImage = _this.columnList[0].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.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)
|
|
|
}
|
|
|
|
|
|
|