24 lines
555 B
JavaScript
24 lines
555 B
JavaScript
class Mechanism {
|
|
constructor () {
|
|
footer()
|
|
title('机构')
|
|
this.getmechanism()
|
|
}
|
|
|
|
async getmechanism() {
|
|
var res = await indexService.mechanism({ });
|
|
console.log("test:",res)
|
|
|
|
res.forEach((v) => {
|
|
$(".list").innerHTML += `
|
|
<a href="./mechanisminfo.html?id=${v.id}&title=${v.title}" class="shuliang">
|
|
<div class="title">${v.title}</div>
|
|
<div class="number">${v.id}套</div>
|
|
</a>
|
|
`
|
|
})
|
|
}
|
|
|
|
}
|
|
|
|
new Mechanism() |