21 lines
394 B
JavaScript
21 lines
394 B
JavaScript
class Info {
|
|
constructor () {
|
|
header("详情")
|
|
this.getInfo();
|
|
}
|
|
|
|
async getInfo() {
|
|
var res = await indexServe.info({
|
|
id: query("id"),
|
|
quantity: query("total")
|
|
});
|
|
|
|
res.forEach(v => {
|
|
$(".content").html(`<img src="${v}" alt="">`)
|
|
});
|
|
|
|
console.log("res: ", res);
|
|
}
|
|
}
|
|
|
|
new Info(); |