js代码
const DEFAULT_PAGE = 0;
Page({
data: {
swiperList: [
{
// 2021
type: 'video',
url: '链接'
}, {
type: 'image',
url: '链接'
},
],
},
startPageX: 0,
currentView: DEFAULT_PAGE,
data: {
toView: `card_${
DEFAULT_PAGE}`,
list: [
'链接',
'链接',
]
},
touchStart(e) {
this.startPageX = e.changedTouches[0].pageX;
},
touchEnd(e)