[更新]短视频轮播

This commit is contained in:
唐明明
2020-12-25 17:00:20 +08:00
parent 81b3dbdc59
commit 286f8111bd
10 changed files with 30 additions and 12 deletions

View File

@@ -16,6 +16,7 @@ Page({
*/
onLoad(options) {
wx.$api.video.videos().then(res=>{
console.log(res)
this.setData({
videoList: res,
videoId : res[0].video_id
@@ -43,6 +44,9 @@ Page({
* 获取视频下标
*/
swiperIndex(e){
console.log(e.detail.current)
this.setData({
videoIndex: e.detail.current
})