news-mobile.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>新闻资讯</title>
  7. <link rel="stylesheet" href="./css/common/default.css" />
  8. <link rel="stylesheet" href="./css/components/header-mobile.css" />
  9. <link rel="stylesheet" href="./css/components/banner-mobile.css" />
  10. <link rel="stylesheet" href="./css/components/footer-mobile.css" />
  11. <link rel="stylesheet" href="./css/news-mobile.css" />
  12. <script src="./js/lib/vue.min.js"></script>
  13. <script src="./js/lib/axios.min.js"></script>
  14. <script src="./js/common/browser-resize.js"></script>
  15. </head>
  16. <body>
  17. <div class="wrap">
  18. <div id="header" class="header" style="background: #fff">
  19. <img class="header-logo" :src="logo_path" alt="" />
  20. <div class="header-right">
  21. <div class="header-language">
  22. <span
  23. :class="[current_language=='chs'?'current':'no-current']"
  24. @click="changeLanguage('chs')"
  25. >中文</span
  26. ><span>/</span
  27. ><span
  28. :class="[current_language=='en'?'current':'no-current']"
  29. @click="changeLanguage('en')"
  30. >EN</span
  31. >
  32. </div>
  33. <img
  34. class="header-menu"
  35. :src="`./static/${menu_show?'close':'menu'}.png`"
  36. @click="menu_show = !menu_show"
  37. />
  38. </div>
  39. <div
  40. class="header-nav"
  41. :style="{height:menu_show?'calc(100vh - 2.75rem)':'0'}"
  42. >
  43. <a v-for="item in path_list" :href="item.path">
  44. <span :class="{'current':current_path.includes(item.path)}">
  45. {{text(item.name)}}
  46. </span>
  47. <span class="icon">›</span>
  48. </a>
  49. </div>
  50. </div>
  51. <div
  52. id="banner"
  53. class="banner"
  54. :style="{backgroundImage:`url(${image})`}"
  55. >
  56. <div class="banner-title">{{title}}</div>
  57. </div>
  58. <div id="app">
  59. <div class="list">
  60. <div class="list-item" v-for="item in list">
  61. <img class="item-cover" :src="item.image" alt="" />
  62. <div class="item-bottom">
  63. <div class="item-time">{{item.time}}</div>
  64. <div class="item-title">{{item[lan_key('name')]}}</div>
  65. <div class="item-detail">{{item[lan_key('description')]}}</div>
  66. <a
  67. class="item-view-detail"
  68. :href="'/news-detail-mobile.html?id=' + item.id"
  69. >{{text('阅读详情')}}</a
  70. >
  71. </div>
  72. </div>
  73. </div>
  74. <div class="pagination">
  75. <div class="pagination-item" @click="changeCurrent(params.page - 1)">
  76. </div>
  77. <div
  78. class="pagination-item"
  79. v-for="index in pagination_list"
  80. :class="{ current: index == params.page}"
  81. @click="changeCurrent(index)"
  82. >
  83. {{index}}
  84. </div>
  85. <div class="pagination-item" @click="changeCurrent(params.page + 1)">
  86. </div>
  87. </div>
  88. </div>
  89. <div id="footer" class="footer">
  90. <img
  91. class="footer-company"
  92. :src="baseURL + config.web_logo_footer"
  93. alt=""
  94. />
  95. <div class="footer-page">
  96. <a
  97. class="footer-page-item"
  98. v-for="item in path_list"
  99. :href="item.path"
  100. >{{text(item.name)}}</a
  101. >
  102. </div>
  103. <div class="footer-info" v-if="config.web_tel && config.web_tel.tel1">
  104. <img class="footer-icon" src="./static/phone.png" alt="" />
  105. <span>{{config.web_tel?config.web_tel.tel1:'-'}}</span>
  106. </div>
  107. <div class="footer-info">
  108. <img class="footer-icon" src="./static/email.png" alt="" />
  109. <span>{{config.web_email}}</span>
  110. </div>
  111. <div class="footer-info">
  112. <img class="footer-icon" src="./static/place.png" alt="" />
  113. <span>{{config[lan_key('web_company_address')]}}</span>
  114. </div>
  115. <div class="footer-line"></div>
  116. <div class="footer-ICP">{{config[lan_key('web_copyright')]}}</div>
  117. <a class="footer-ICP" :href="config.web_beian_url"
  118. >{{config.web_beian}}</a
  119. >
  120. <div class="footer-term">
  121. <a class="footer-term-item" href="/agreement-mobile.html?type=1"
  122. >{{text('法律声明')}}</a
  123. >
  124. <span>|</span>
  125. <a class="footer-term-item" href="/agreement-mobile.html?type=2"
  126. >{{text('隐私条款')}}</a
  127. >
  128. </div>
  129. </div>
  130. </div>
  131. <script type="module" src="./js/components/header-mobile.js"></script>
  132. <script type="module" src="./js/components/banner-mobile.js"></script>
  133. <script type="module" src="./js/components/footer-mobile.js"></script>
  134. <script type="module" src="./js/news-mobile.js"></script>
  135. </body>
  136. </html>