function ciy_chart_farm1_l1(opdata) { this.func = ['farm_l1']; this.lastdata = {}; this.resize = function () { } this.setdata = function (funame, data) { if (!data) return; this.lastdata[funame] = data; $5('[data-num="n1"]', opdata.container).html(''+data.farm.cmcode+''); $5('[data-num="n2"]', opdata.container).text(data.farm.n2); $5('[data-num="n3"]', opdata.container).text(data.farm.n3); } this.distory = function () { } opdata.container.append(`
风险赋码
--
贷款金额
--(万元)
待还金额
--(万元)
`); var style = document.createElement("style"); style.innerHTML = ` .ciy_chart_farm1_l1>div { display: flex; padding-bottom: 2em; align-items: baseline; } .ciy_chart_farm1_l1>div>div { color: #ffffff; width: 7em; margin-left: 1em; } .ciy_chart_farm1_l1>div>span { font-size: 2.5em; font-family: eng01; } .ciy_chart_farm1_l1>div>t { font-size: 0.7em; padding-left: 0.7em; } `; window.document.head.appendChild(style); }