class Info {
constructor() {
this.page = 1;
this.TotalPage = 0;
this.preview = "";
this.InfoList = [];
this.GetInfoData()
}
async GetInfoData(action = "first") {
this.InfoList = await homeService.info({
id: utils.GetQueryString("id"),
page: this.page
});
this.TotalPage = this.InfoList.total_page
// 设置网页标题
document.title = this.InfoList.title
this.InfoList.data.forEach((v) => {
var image = new Image();
image.src = v.src;
image.onload = () => {
if (image.width < image.height) {
this.preview = v.src;
}
this.LikePhotot()
document.querySelector(".info").innerHTML += `