class Info { constructor() { this.getInfo(); } async getInfo() { var res = await indexServe.info({ url: query("url") }); $(".cpc_c1 h2").text(res.title) $(".cpc_c1 .time").text(res.posttime) res.Statistics.forEach(v => { $(".yyinfos").append(`
  • ${v.title}
  • `) }); res.stepInfo.arr.forEach(v => { $(".cpargsw").append(`
  • ${v.title}
  • `) }); $(".show_more .text").text(res.stepInfo.message) $(".more span").click(function () { $(".show_more").css({ height: 'auto' }) $(".more").css({ display: 'none' }) }); res.material.main.forEach(v => { $(".zhuliao .list").append(`
  • ${v.title}
    ${v.nums}
  • `) }) res.material.accessories.forEach(v => { $(".fuliao .list").append(`
  • ${v.title}
    ${v.nums}
  • `) }); res.DetailedSteps.forEach(v => { $(".info_list").append(`
  • ${ v.step_img == null ? `
    ${v.step_title}
    ` : `
    ${v.step_title}
    ` } ${ Array.isArray(v.step_img) ? `
    ${ v.step_img.map((v,i) => { return `` }).toString().replaceAll(",","") }
    ` : `

    ${v.step_text}

    ` }
  • `) }) $(".change_list img").click(function () { $(this).css({ opacity: 1 }).siblings().css({ opacity: 0.5 }) $(".aa img").attr({ src: $(this).attr("src") }) }) } } new Info()