24 lines
548 B
JavaScript
24 lines
548 B
JavaScript
class Mechanism {
|
|
constructor() {
|
|
header("机构")
|
|
footer();
|
|
this.getmechanism()
|
|
}
|
|
|
|
async getmechanism() {
|
|
var res = await indexServe.mechanism({
|
|
});
|
|
|
|
console.log(res);
|
|
|
|
res.forEach((v) => {
|
|
$(".list").html(`
|
|
<a href="./jigouxiangqing.html?id=${v.id}&title=${v.title}" class="shuliang">
|
|
<div class="title">${v.title}</div>
|
|
<div class="number">${v.id}套</div>
|
|
</a>
|
|
`)
|
|
})
|
|
}
|
|
}
|
|
new Mechanism() |