2024-05-24 17:24:28 +08:00

26 lines
648 B
TypeScript

// e:\project\dy_video_all\初晴剧场\pages\leaderboard\leaderboard.ts
import { httpRequest } from "../../utils/httpReques";
Page({
data: {
module2: []
},
onLoad: function (options) {
},
onShow() {
httpRequest('/top', 'POST', { lm: 1 }).then((res: any) => {
console.log(res, "[ohdsfkjshgdfkjsdkjfhs")
if (res.status == 1 && Array.isArray(res?.data?.module2)) {
this.setData({
module2: res?.data?.module2
})
}
})
},
toPathVideo(ev: any) {
const sid = ev.currentTarget.dataset.sid;
tt.navigateTo({
url: `/pages/videoDetail/videoDetail?sid=${sid}`,
});
},
})