let element = ""; sgworld = window.external.createSgworld(); let RootType = getUrlParam("type"); let IsFirst = -1; let ChooseWXType = []; var lb = new leftBottomDatlog(); var rT = new rightTopDatlog(); var rb = new rightBottomDatlog(); //滚动条 new CusScrollBar({ contentSelector: '.scroll_cont1', //滚动内容区 barSelector: '.scroll_bar1', //滚动条 sliderSelector: '.scroll_slider1' //滚动滑块 }); layui.use('element', function () { element = layui.element; InitSencondCatlog(); CollapseLister(); }); //初始化左侧树 function InitSencondCatlog() { var Rhtml = ""; var panme = ""; var bf = false; let SencondAndThirdTree = ""; if (RootType == RootCatlogExBase.Type) { SencondAndThirdTree = BaseDataSecond; } if (RootType == RootCatlogExBasezhuanti.Type) { SencondAndThirdTree = ZhuanTiDataSecond; } if (RootType == RootCatlogExYingYong.Type) { SencondAndThirdTree = YingYongDataSencond; } $.each(SencondAndThirdTree, function (j, value) { if (panme != value.name) { if (bf == false) { Rhtml += '

' + '' + ((value.name.length > 9) ? value.name.substring(0, 9) : value.name) + '

' + '' + ((value.name.length > 9) ? value.name.substring(0, 9) : value.name) + '