function ciy_chart_bank1_c1(opdata) { this.func = ['bank_c1']; this.lastdata = {}; this.resize = function () { } this.setdata = function (funame, data) { if (!data) return; this.lastdata[funame] = data; $5('[data-num="n1"]', opdata.container).text(data.n1); $5('[data-num="n2"]', opdata.container).text(data.n2); $5('[data-num="n3"]', opdata.container).text(data.n3); $5('[data-bank]', opdata.container).text(data.name); } this.distory = function () { } opdata.container.append(`
 
--
贷款金额 (万元)
--
待还金额 (万元)
--
贷款单位 (家)
`); var style = document.createElement("style"); style.innerHTML = ` .c1 .title{color:#6dcdee;padding-top:0.3em;} .c1 .num{font-size:1.8em;font-weight:bolder;padding-right: 0.5em;font-family: eng02;letter-spacing: 4px;} .c1 .unit{font-size:0.5em;vertical-align: unset;} .c1 td{width:25%;white-space: nowrap;} `; window.document.head.appendChild(style); }