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.

251 lines
10 KiB

3 years ago
7 years ago
3 years ago
7 years ago
3 years ago
7 years ago
3 years ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" href="/css/reset.css">
  8. <link rel="stylesheet" href="/css/index.css">
  9. <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  10. <title><?php echo sysconfig('CMS_SEOTITLE'); ?></title><meta name="keywords" content="<?php echo sysconfig('CMS_KEYWORDS'); ?>" /><meta name="description" content="<?php echo sysconfig('CMS_DESCRIPTION'); ?>" />
  11. </head>
  12. <body>
  13. <div id="app">
  14. <header class="header">
  15. <div class="content">
  16. <img class="logo" src="./img/logo.jpg" alt="">
  17. <ul class="nav">
  18. <li><a onclick="handleCliCK(this)" class=" active" href="#">首页</a></li>
  19. <li><a onclick="handleCliCK(this)" href=" #product">产品中心</a></li>
  20. <li><a onclick="handleCliCK(this)" href=" #journalism">新闻中心</a></li>
  21. <li><a onclick="handleCliCK(this)" href=" #about">公司介绍</a></li>
  22. <li><a onclick="handleCliCK(this)" href=" #culture">企业文化</a></li>
  23. <li><a onclick="handleCliCK(this)" href=" #contact">联系我们</a></li>
  24. </ul>
  25. </div>
  26. </header>
  27. <section class="bg">
  28. <?php if ($slide_list) { ?>
  29. <?php foreach ($slide_list as $k=>$v) { ?>
  30. <img src="<?php echo $v['pic']; ?>" alt="<?php echo $v['title']; ?>">
  31. <?php } ?>
  32. <?php } ?>
  33. </section>
  34. <section id="product" class="product">
  35. <div class="content">
  36. <p class="title">产品中心</p>
  37. <span
  38. style="font-family:arial,helvetica,sans-serif;margin-TOP: 10px;margin-bottom: 40px;font-size: 16px;display: block;text-align: center;margin-bottom: 20px;">PRODUCT
  39. CENTER</span>
  40. <div class="list">
  41. @if($slide_list)
  42. @foreach($slide_list as $k=>$v)
  43. <div>
  44. <img src="{{$v['litpic']}}" alt="{{$v['title']}}">
  45. <p>{{$v['title']}}</p>
  46. <p class="referral">{{$v['description']}}</p>
  47. </div>
  48. @endforeach
  49. </div>
  50. @endif
  51. </div>
  52. </section>
  53. <section id="journalism" class="journalism">
  54. <div class="content">
  55. <p class="title">新闻中心</p>
  56. <span
  57. style="font-family:arial,helvetica,sans-serif;font-size: 16px;display: block;text-align: center;margin: 5px 0;margin-bottom: 20px;">PRESS
  58. CENTER</span>
  59. <div class="list">
  60. <ul id="ajlist">
  61. @if($article_list)
  62. @foreach($article_list as $row)
  63. <li><span class="group">[{{date("Y-m-d",$row['pubdate'])}}]</span> <a href="{{get_wap_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content'))}}" target="_blank">{{$row['title']}}</a></li>
  64. @endforeach
  65. @endif
  66. </ul>
  67. </div>
  68. <div class="block">
  69. <el-pagination @current-change="handleCurrentChange" layout="prev, pager, next" :total="{{$article_count}}">
  70. </el-pagination>
  71. </div>
  72. </div>
  73. </section>
  74. <section id="about" class="about">
  75. <div class="content">
  76. <img class="leftPic" src="./img/111.png" alt="">
  77. <div class="info">
  78. <span style="font-family:微软雅黑;display: block;font-size: 30px;margin: 10px 0;">公司介绍</span>
  79. <span style="font-family:arial,helvetica,sans-serif">ABOUT US</span>
  80. <p class="text">
  81. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  82. 广州轻未来致力于中国大健康科学产品研发与服务,专注于科学减脂技术,由体脂监测,营养师1对1服务减脂教育以及“低聚肽营养固体饮料”结合的一套体脂管理解决方案。轻未来公司秉持“帮助国民科学管理健康体脂,向行业领导者进军”的理念。
  83. </p>
  84. </div>
  85. </div>
  86. </section>
  87. <section id="culture" class="culture">
  88. <div class="content">
  89. <div class="info">
  90. <span style="font-family:微软雅黑;display: block;font-size: 30px;margin: 10px 0;">企业文化</span>
  91. <span style="font-family:arial,helvetica,sans-serif">CULTURE</span>
  92. <p class="text">
  93. 价值观:爱国、诚信、责任、进取、关爱、快乐、感恩<br>
  94. 使命:提高健康生命,成就财富梦想<br>
  95. 愿景:全力开创“国民大健康+轻创业”的科学体脂管理平台
  96. </p>
  97. </div>
  98. <img class="leftPic" src="./img/111.png" alt="">
  99. </div>
  100. </section>
  101. <section id="contact" class="contact">
  102. <div class="content">
  103. <p class="title">联系方式</p>
  104. <span
  105. style="font-family:arial,helvetica,sans-serif;font-size: 16px;display: block;text-align: center;margin: 5px 0;margin-bottom: 60px;">CONTACT
  106. US</span>
  107. <div class="box">
  108. <div id="container"></div>
  109. <div class="info">
  110. <div>
  111. <img src="./img/ic_phone.png" alt="">
  112. <p>商务电话:{{sysconfig("CMS_PHONE")}}</p>
  113. </div>
  114. <div>
  115. <img src="./img/ic_location.png" alt="">
  116. <p>广州市白云区云城西路888号3604室</p>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </section>
  122. @include('wap.common.footer')
  123. </div>
  124. <script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.js"></script>
  125. <script type="text/javascript"
  126. src="https://api.map.baidu.com/api?v=1.0&type=webgl&ak=fFiRpaVrF05si25dbpbj6d1aGreR15u7"></script>
  127. <script src="https://unpkg.com/element-ui/lib/index.js"></script>
  128. <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  129. <script>
  130. var page =1;
  131. new Vue({
  132. el: '#app',
  133. data: function () {
  134. return {
  135. visible: false
  136. }
  137. },
  138. methods:{
  139. handleCurrentChange(e){
  140. console.log(e,'---eeee');
  141. $.ajax({
  142. url: {{env('APP_API_URL')}} + "/article_list",
  143. dataType: "json",
  144. type: "POST",
  145. data: {
  146. 'limit' : 10,
  147. 'offset' : e * 10
  148. },
  149. success: function(data){
  150. if(data.code==0)
  151. {
  152. var json = data.data; //数组
  153. var str = '';
  154. $.each(json, function (index) {
  155. //循环获取数据
  156. var title = json[index].title;
  157. var id = json[index].id;
  158. var url = json[index].url;
  159. var pubdate = json[index].pubdatetext;
  160. str = str + '<li><span class="group">['+pubdate+']</span><a href="'+url+'" target="_blank">'+title+'</a></li>';
  161. });
  162. $('#ajlist').empty();
  163. if(str!='')
  164. {
  165. $('#ajlist').append(str);
  166. }
  167. }
  168. else
  169. {
  170. }
  171. }
  172. });
  173. },
  174. }
  175. })
  176. </script>
  177. <script>
  178. $('#product').css('min-height', document.documentElement.clientHeight - 160)
  179. $('#contact').css('min-height', document.documentElement.clientHeight - 160)
  180. $('#journalism').css('min-height', document.documentElement.clientHeight - 160)
  181. $('#culture').css('min-height', document.documentElement.clientHeight - 160)
  182. $('#about').css('min-height', document.documentElement.clientHeight - 160)
  183. $('.bg').css('min-height', document.documentElement.clientHeight - 160)
  184. $(document).ready(function () {
  185. var map = new BMapGL.Map('container'); // 创建地图实例
  186. var point = new BMapGL.Point(113.275389, 23.186962); // 创建点坐标
  187. map.centerAndZoom(point, 15);
  188. var marker = new BMapGL.Marker(point); // 创建标注
  189. map.addOverlay(marker);
  190. })
  191. $(window).scroll(function () {
  192. if ($('.bg')[0].offsetTop - $(window).scrollTop() < 0 && $('.bg')[0]
  193. .offsetTop - $(window).scrollTop() > Number('-'+$('.bg').height())) {
  194. $('.nav>li>a').removeClass("active");
  195. $('.nav>li>a').eq(0).addClass("active")
  196. }else if ($('#product')[0].offsetTop - $(window).scrollTop() < 0 && $('#product')[0]
  197. .offsetTop - $(window).scrollTop() > Number('-'+$('#product').height())) {
  198. $('.nav>li>a').removeClass("active");
  199. $('.nav>li>a').eq(1).addClass("active")
  200. }else if($('#journalism')[0].offsetTop - $(window).scrollTop() < 0 && $('#journalism')[0]
  201. .offsetTop - $(window).scrollTop() > Number('-'+$('#journalism').height())) {
  202. $('.nav>li>a').removeClass("active");
  203. $('.nav>li>a').eq(2).addClass("active")
  204. }else if($('#about')[0].offsetTop - $(window).scrollTop() < 0 && $('#about')[0]
  205. .offsetTop - $(window).scrollTop() > Number('-'+$('#about').height())) {
  206. $('.nav>li>a').removeClass("active");
  207. $('.nav>li>a').eq(3).addClass("active")
  208. }else if($('#culture')[0].offsetTop - $(window).scrollTop() < 0 && $('#culture')[0]
  209. .offsetTop - $(window).scrollTop() > Number('-'+$('#culture').height())) {
  210. $('.nav>li>a').removeClass("active");
  211. $('.nav>li>a').eq(4).addClass("active")
  212. }else if($('#contact')[0].offsetTop - $(window).scrollTop() < 0 && $('#contact')[0]
  213. .offsetTop - $(window).scrollTop() > Number('-'+$('#contact').height())) {
  214. $('.nav>li>a').removeClass("active");
  215. $('.nav>li>a').eq(5).addClass("active")
  216. }
  217. });
  218. function handleCliCK(e) {
  219. $('.nav>li>a').removeClass("active");
  220. $(e).addClass("active");
  221. }
  222. </script>
  223. </body>
  224. </html>