first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
class guangchang {
constructor() {
this.getClick()
this.seek()
}
async seek(newKey) {
var res = await indexService.tab({
thing_category: -1,
page: 1,
thing_type:newKey == undefined ? 1 : newKey//这里用三元运算符判断获取参数为空 为1 不为空 为2
});
console.log(res);
// item($(".recommend"), res)
}
async getClick() {
//获取输入框值
$(".items").onclick = () => {
$(".content").style.display = "none"
$(".content1").style.display = "flex"
this.seek(2)
}
$(".itemf").onclick = () => {
$(".content1").style.display = "none"
$(".content").style.display = "flex"
this.seek(1)
}
}
}
function getClick(params) {
}
new guangchang()