31 lines
664 B
JavaScript
31 lines
664 B
JavaScript
class Domestic {
|
|
constructor() {
|
|
util.header(
|
|
`<div class="header_title">分类</div>`,
|
|
"",
|
|
""
|
|
)
|
|
util.footer()
|
|
this.getTagListData()
|
|
}
|
|
|
|
|
|
async getTagListData() {
|
|
let res = await tagServe.tagList()
|
|
|
|
$(".type_list").innerHTML = res.maps(v => {
|
|
|
|
return `
|
|
<li>
|
|
<a href="./tagListInfo.html?url=${v.url}&title=${v.title}">
|
|
<div class="text">${v.title}</div>
|
|
<p class="nums">${v.count}套</p>
|
|
</a>
|
|
</li>
|
|
`
|
|
})
|
|
|
|
}
|
|
}
|
|
|
|
new Domestic |