2024-05-20 09:36:39 +08:00

32 lines
608 B
TypeScript

// e:\project\dy_video_all\初晴剧场\pages\theater\theater.ts
Page({
data: {
swiperCurrent: 0,
sortIndex: 0
},
onLoad: function (options) {
},
handelSwiperChange(ev: any) {
const current = ev.detail.current;
this.setData({
swiperCurrent: current
})
},
handelSortTap(ev: any) {
const idx = ev.currentTarget.dataset.index;
this.setData({
sortIndex: idx
})
},
toPathTap() {
tt.navigateTo({
url: `/pages/search/search`,
});
},
toPathLeaderboard() {
tt.navigateTo({
url: `/pages/leaderboard/leaderboard`,
});
}
})