You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
4.0 KiB

8 years ago
7 years ago
8 years ago
  1. <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta name="viewport" content="width=device-width,initial-scale=1.0">
  2. <title><?php echo sysconfig('CMS_WEBNAME'); ?></title><link href="/favicon.ico" type="image/x-icon" rel="shortcut icon">
  3. <link rel="stylesheet" href="/css/wap.css" media="all"><script type="text/javascript" src="/js/jquery.min.js"></script></head><body>
  4. <header class="mheader-a"><h2 class="bt"><?php echo sysconfig('CMS_WEBNAME'); ?></h2><a href="javascript:;"><div class="phone-icon telphone"></div></a></header>
  5. @include('wap.common.header')
  6. <article class="mbanner-b mb10"><a href=""><img src="/images/banner.jpg"></a></article>
  7. <article class="mbox"><h3 class="tit"><i class="tit_icon"></i>产品中心</h3><div class="mpicshow-b">
  8. <ul class="mnewpic2"><?php $posts=arclist(array("table"=>"goods","row"=>4,"typeid"=>1,"expression"=>[["litpic","<>","''"]]));if($posts){foreach($posts as $row){ ?>
  9. <li><a href="<?php echo get_wap_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img src="<?php echo sysconfig('CMS_BASEHOST'); echo $row['litpic']; ?>" alt="<?php echo $row['title']; ?>"></a></li><?php }} ?>
  10. </ul><div class="more"><a href="<?php echo get_wap_front_url(array('catid'=>1,'type'=>'productlist')); ?>">查看更多<i class="mico"></i></a></div>
  11. </div></article>
  12. <article class="mbox cinfo">
  13. <h3 class="tit"><i class="tit_icon"></i>企业简介</h3><div class="mabout-a">百度,全球最大的中文搜索引擎、最大的中文网站。2000年1月创立于北京中关村。</div>
  14. <div class="about-more more"><a href="<?php echo get_wap_front_url(array('pagename'=>'about','type'=>'page')); ?>">查看更多<i class="phone-icon mico"></i></a></div>
  15. </article>
  16. <article class="mbox"><h3 class="tit"><i class="tit_icon"></i>新闻中心</h3><ul class="mnews-b" id="ajlist"><?php $posts=arclist(array("row"=>8));if($posts){foreach($posts as $row){ ?>
  17. <li><span class="group">[<?php echo date("Y-m-d",$row['pubdate']); ?>]</span><a href="<?php echo get_wap_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a></li><?php }} ?>
  18. </ul><div class="about-more more mt10"><a id="listbu" href="javascript:;">查看更多<i class="phone-icon mico"></i></a></div></article>
  19. <article class="mbox"><h3 class="tit"><i class="tit_icon"></i>联系我们</h3><ul class="mcontact-a">
  20. <li>联系人:<span name="moduleCate">王经理</span></li>
  21. <li>电子邮箱:<span name="moduleCate">790238877@qq.com</span></li>
  22. <li>联系方式:<span class="num">15280795142</span><a href="tel://10086" class="telbg"><i class="phone-icon tel"></i><span class="num_in">10086</span></a></li>
  23. <li>联系方式:<span class="num">0374-59928888</span><a href="tel://15280795142" class="telbg"><i class="phone-icon tel"></i><span class="num_in">0374-7333112</span></a></li>
  24. <li>联系地址:<span name="moduleCate">北京市海淀区上地十街10号百度大厦</span><a href="javascript:;" class="addressbg"><em class="phone-icon pint"></em></a></li>
  25. <li>邮编:<span name="moduleCate">100085</span></li>
  26. </ul></article>
  27. <script>
  28. $(function(){
  29. var page = 1;
  30. $('#listbu').click(function(){
  31. $.ajax({
  32. url: "<?php echo route('api_listarc'); ?>",
  33. dataType: "json",
  34. type: "POST",
  35. data: {
  36. "_token":'{{ csrf_token() }}',
  37. "typeid":4,
  38. "PageIndex":page,
  39. "PageSize":10
  40. },
  41. success: function(data){
  42. if(data.code==0)
  43. {
  44. var json = data.data; //数组
  45. var str = '';
  46. $.each(json, function (index) {
  47. //循环获取数据
  48. var title = json[index].title;
  49. var id = json[index].id;
  50. var url = json[index].url;
  51. var pubdate = json[index].pubdate;
  52. str = str + '<li><span class="group">['+pubdate+']</span><a href="'+url+'" target="_blank">'+title+'</a></li>';
  53. });
  54. if(str!='')
  55. {
  56. $('#ajlist').append(str);
  57. }
  58. else
  59. {
  60. $('#listbu').text("亲,没有啦!");
  61. }
  62. }
  63. else
  64. {
  65. }
  66. }
  67. });
  68. page++;
  69. });
  70. });
  71. </script>
  72. </body></html>