$(function() { if ((navigator.userAgent.match( /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i ))) { $('.main-menu .navbar-collapse > ul.pc_nav_ul').hide(); $('.main-menu .navbar-collapse > ul.mobel_nav_ul').show(); } else { $('.main-menu .navbar-collapse > ul.pc_nav_ul').show(); $('.main-menu .navbar-collapse > ul.mobel_nav_ul').hide(); } }) common_index(); //相同的关键词这些 index(); $("#newlist_baner").carousel('pause'); //首页接口 function index() { var poptype = "GET"; var popurl = "IndexData"; var popdata = ""; popajax(poptype, popurl, popdata); var indexrusult = resData.Data; //轮播 var bannerinfo = indexrusult.SlideShow; if (bannerinfo) { var bannerhtml = ""; //轮播图外盒子 var bannavhtml = ""; //轮播图指示灯 $('#banner_index').empty(); $('#banner_nav').empty(); for (var i = 0; i < bannerinfo.length; i++) { if (i == 0) { bannerhtml += '
'; bannerhtml += ''; bannerhtml += ''; bannerhtml += '
'; } else { bannerhtml += '
'; bannerhtml += ''; bannerhtml += ''; bannerhtml += '
'; } if (i == 0) { bannavhtml += '
  • '; } else { bannavhtml += '
  • '; } } $('#banner_index').append(bannerhtml); $('#banner_nav').append(bannavhtml); } //案例 var casesinfo = indexrusult.Product; if (casesinfo) { var caselistindex = ""; $('.index_case_list').empty(); for (var i = 0; i < casesinfo.length; i++) { if ((i + 1) % 4 == 0) { caselistindex += '
  • '; caselistindex += ''; caselistindex += '
    '; caselistindex += '

    ' + casesinfo[i].name + '

    '; caselistindex += '
    '; caselistindex += '
  • '; } else { caselistindex += '
  • '; caselistindex += ''; caselistindex += '
    '; caselistindex += '

    ' + casesinfo[i].name + '

    '; caselistindex += '
    '; caselistindex += '
  • '; } } $('.index_case_list').html(caselistindex); } function baseArray (arr) { var n = 3 var len = arr.length var lineNum = len % 3 === 0 ? len / 3 : Math.floor( (len / 3) + 1 ); var res = [] for (var i = 0; i < lineNum; i++) { var temp = arr.slice(i * n, i * n + n) res.push(temp) } return res } // 新闻 var newsinfo = indexrusult.News; var newlistnum=newsinfo.length;//新闻列表的个数 [,,,] [[,,],[]] var newhtml = ''; $('#new_list_wrap').empty(); newlistnum = baseArray(newsinfo) for (var i = 0; i'; newhtml+='
    '+newlistnum[i][j].content+'
    '; newhtml+='

    '+newlistnum[i][j].updatetime+'

    '; newhtml+='

    '; newhtml+='Read more'; newhtml+=''; newhtml+=''; } console.log(newhtml) newhtml+=''; newhtml+=''; } $('#new_list_wrap').append(newhtml); } messages(); //留言

    手机微网

    微信扫描关注

    手机APP

    扫描下载安卓APP

    分享

    搜索

    返回顶部

    ×
    网搜

    直达
    - - - 找到你,原来如此简单! - - -
    ×

    您好,有需要了解的请咨询我们!

    + 0851-85766206

    ×

    您好,在这里给我们留言!
    看不清,点击换图片
    ×