This commit is contained in:
@@ -1,6 +1,30 @@
|
||||
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>
|
||||
`
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user