[更新]短视频轮播
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user