function ciy_chart_farm1_l2(opdata) { this.func = ['farm_l2']; this.lastdata = {}; this.resize = function () { } this.setdata = function (funame, data) { if(!data) return; this.lastdata[funame] = data; $5('[data-sp="frxm"]', opdata.container).text(data.farm.dkrname); $5('[data-sp="frlxfs"]', opdata.container).text(data.farm.dkrmobile); $5('[data-sp="lxr"]', opdata.container).text(data.farm.lxrname); $5('[data-sp="lxfs"]', opdata.container).text(data.farm.lxrmobile); $5('[data-sp="area"]', opdata.container).text(data.farm.areacode); $5('[data-sp="addr"]', opdata.container).text(data.farm.addr); } this.distory = function () { } var thos = this; opdata.container.append(`
企业信息
法人姓名
--
法人手机号
--
联系人
--
联系手机号
--
所在地区
--
地址
--
`); var style = document.createElement("style"); style.innerHTML = ` .l2>div{display:flex;padding-bottom:0.8em;align-items: baseline;} .l2>div>div{color:#ffffff;width: 7em;margin-left: 1em;padding-right: 2em;font-weight: bolder;text-align:right;} .l2>div>span{flex:1;} `; window.document.head.appendChild(style); }