|
@@ -8,7 +8,7 @@
|
|
|
<view>
|
|
|
<!-- 只渲染当前视频 -->
|
|
|
<video :src="currentVideoUrl" show-loading show-play-btn
|
|
|
- show-center-play-btn controls @ended="playNextVideo"></video>
|
|
|
+ show-center-play-btn controls></video>
|
|
|
</view>
|
|
|
</template>
|
|
|
</view>
|
|
@@ -93,17 +93,17 @@
|
|
|
playVideo() {
|
|
|
this.currentVideoUrl = this.videoList[this.currentVideoIndex];
|
|
|
},
|
|
|
- playNextVideo() {
|
|
|
- // 播放下一个视频
|
|
|
- if (this.currentVideoIndex+1 < this.videoList.length) {
|
|
|
- this.currentVideoUrl = this.videoList[this.currentVideoIndex];
|
|
|
- this.currentVideoIndex++;
|
|
|
- }
|
|
|
- // else {
|
|
|
- // this.currentVideoIndex = 0;
|
|
|
- // this.currentVideoUrl = this.videoList[this.currentVideoIndex];
|
|
|
- // }
|
|
|
- },
|
|
|
+ // playNextVideo() {
|
|
|
+ // // 播放下一个视频
|
|
|
+ // if (this.currentVideoIndex+1 < this.videoList.length) {
|
|
|
+ // this.currentVideoUrl = this.videoList[this.currentVideoIndex];
|
|
|
+ // this.currentVideoIndex++;
|
|
|
+ // }
|
|
|
+ // // else {
|
|
|
+ // // this.currentVideoIndex = 0;
|
|
|
+ // // this.currentVideoUrl = this.videoList[this.currentVideoIndex];
|
|
|
+ // // }
|
|
|
+ // },
|
|
|
|
|
|
|
|
|
// 获取页面数据
|