/* * @author:liting * @update:2018/06/20 * */ // import 'css/bootstrap.less'; // import 'bootstrap/dist/js/bootstrap.js'; import 'css/newMenu/public.css'; import 'css/newMenu/header.css' import 'css/newMenu/serviceList.css'; import 'js/public.js'; "use strict"; $(function () { var thePageNo = 1, thePageLength = 1, dataList = {}, pageSize = 15; init(); function init() { pages(); inpFun(); summary(); search(); // jump(); $('.onSelect .preFirst').css('display', 'none'); $('.onSelect .next').css('display', 'none'); $('.hot ul li').removeClass('active'); }; //一级界面跳转此页面 function jump(theData) { let hash = window.location.search; if (hash) { if (hash.indexOf('name') > -1 || hash.indexOf('topId') > -1 || hash.indexOf('secondId') > -1) { let newHash = hash.substr(1, hash.length) if (newHash.indexOf('&') > -1) { let hashArr = newHash.split('&'); hashArr.map(item => { if (item.indexOf('name') > -1) { let names = item.split('=') dataList.name = decodeURIComponent(names[1]) $('.demandSearch').val(dataList.name); menuInit(theData) } if (item.indexOf('topId') > -1) { let topIds = item.split('=') dataList.topId = decodeURIComponent(topIds[1]) menuInit(theData,topIds) } if (item.indexOf('secondId') > -1) { let secondIds = item.split('=') dataList.secondId = decodeURIComponent(secondIds[1]) menuInit(theData,secondIds[1]) } }) } else { if (newHash.indexOf('name') > -1) { let names = newHash.split('=') dataList.name = decodeURIComponent(names[1]) $('.demandSearch').val(dataList.name); menuInit(theData) } if (newHash.indexOf('topId') > -1) { let topIds = newHash.split('=') dataList.topId = decodeURIComponent(topIds[1]) menuInit(theData,topIds[1]) } if (newHash.indexOf('secondId') > -1) { let secondIds = newHash.split('=') dataList.secondId = decodeURIComponent(secondIds[1]) menuInit(theData,secondIds[1]) } } loadDate() } } else { dataList.name = "", dataList.topId = "", //行业 dataList.secondId = "" //类型 loadDate(); menuInit(theData); } } //跳转渲染菜单 function menuInit(data,id='',state){ var theArrs = '',htmls='',htmlSec=''; htmls+='