investment.html 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html>
  2. <html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="https://www.thymeleaf.org ">
  4. <head>
  5. <title>采美365网-品牌招商介绍</title>
  6. <template th:replace="components/head-link"></template>
  7. <style type="text/css">
  8. /** PC */
  9. @media screen and (min-width:768px){#investment .wrap{width:1184px;margin:0 auto -30px auto}
  10. #investment .wrap img{display:block;width:100%}
  11. #investment .wrap .btn{position:fixed;right:50%;margin-right:-510px;width:235px;top:200px}
  12. #investment .wrap .btn a{display:block;width:235px;height:45px;margin-bottom:16px}
  13. #investment .more{background:url(/img/investment/pc_more.png) no-repeat center center}
  14. #investment .back{background:url(/img/investment/pc_back.png) no-repeat center center}
  15. #investment .down{background:url(/img/investment/pc_download.png) no-repeat center center}
  16. }
  17. /** 移动端 */
  18. @media screen and (max-width:768px){#investment .wrap{width:100vw;margin:0 auto;position:relative}
  19. #investment .wrap img{display:block;width:100%}
  20. #investment .wrap .btn{position:absolute;left:23vw;bottom:4vw}
  21. #investment .wrap .btn a{display:inline-block;width:54vw;height:12vw;background-size:100%}
  22. #investment .more{background:url(/img/investment/pc_more.png) no-repeat center center}
  23. #investment .back{background:url(/img/investment/pc_back.png) no-repeat center center}
  24. #investment .down{background:url(/img/investment/pc_download.png) no-repeat center center}
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <!-- 引用头部 -->
  30. <template th:replace="components/header"></template>
  31. <!-- 品牌招商介绍 -->
  32. <div id="investment">
  33. <div class="wrap">
  34. <div v-if="isPC">
  35. <template v-if="firstPage">
  36. <img src="/img/investment/pc_1.jpg">
  37. <img src="/img/investment/pc_2.jpg">
  38. <img src="/img/investment/pc_3.jpg">
  39. <div class="btn">
  40. <a href="javascript:void(0);" class="more" @click="showMore()"></a>
  41. <a href="javascript:void(0);" class="down" @click="toDownload()"></a>
  42. </div>
  43. </template>
  44. <template v-else>
  45. <img src="/img/investment/pc_4.jpg">
  46. <div class="btn">
  47. <a href="javascript:void(0);" class="back" @click="goBack()"></a>
  48. <a href="javascript:void(0);" class="down" @click="toDownload()"></a>
  49. </div>
  50. </template>
  51. </div>
  52. <div v-else>
  53. <template v-if="firstPage">
  54. <img src="/img/investment/h5_1.jpg">
  55. <img src="/img/investment/h5_2.jpg">
  56. <img src="/img/investment/h5_3.jpg">
  57. <div class="btn">
  58. <a href="javascript:void(0);" class="more" @click="showMore()"></a>
  59. </div>
  60. </template>
  61. <template v-else>
  62. <img src="/img/investment/h5_4.jpg">
  63. <img src="/img/investment/h5_5.jpg">
  64. <div class="btn">
  65. <a href="javascript:void(0);" class="back" @click="goBack()"></a>
  66. </div>
  67. </template>
  68. </div>
  69. </div>
  70. </div>
  71. <!-- 引入底部 -->
  72. <template th:replace="components/footer"></template>
  73. <template th:replace="components/foot-link"></template>
  74. <script type="text/javascript">
  75. var investment = new Vue({
  76. el: "#investment",
  77. data: {
  78. firstPage: true
  79. },
  80. methods: {
  81. showMore: function(){
  82. $("html,body").animate({scrollTop:0},500);
  83. this.firstPage = false;
  84. },
  85. goBack: function(){
  86. $("html,body").animate({scrollTop:0},500);
  87. this.firstPage = true;
  88. },
  89. toDownload: function(){
  90. window.location.href = $.get("investment/export");
  91. }
  92. }
  93. });
  94. </script>
  95. </body>
  96. </html>