App.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <div id="app">
  3. <div class="header">
  4. <div style="text-align: center;"><img src="../public/images/logo.png"><img src="../public/images/logo-head.png" alt=""/></div>
  5. <!-- <el-divider></el-divider> -->
  6. <img
  7. src="../public/images/head-line.png" style="height: 2px;"
  8. alt=""
  9. />
  10. </div>
  11. <div class="right-banner" v-if="this.$route.path != '/'">
  12. <ul>
  13. <li @click="goToMain" style="background-image: url(images/btn-index.png);">首页</li>
  14. <li @click="goToBack" style="background-image: url(images/btn-back.png);">返回</li>
  15. </ul>
  16. </div>
  17. <div id="secondText" style="font-size:1.2rem;" v-if="this.$route.path != '/'">(120)</div>
  18. <router-view/>
  19. </div>
  20. </template>
  21. <script>
  22. export default {
  23. name: "App",
  24. methods: {
  25. goToMain() {
  26. sessionStorage.removeItem("policiesPage");
  27. this.$router.push("/");
  28. },
  29. goToBack() {
  30. this.$router.back();
  31. }
  32. },
  33. mounted() {
  34. this.url = 'https://zwykb.cq.gov.cn/'
  35. }
  36. };
  37. </script>
  38. <style>
  39. /*初始化*/
  40. /*清除自带样式*/
  41. * {
  42. margin: 0;
  43. padding: 0;
  44. outline: none;
  45. border: 0;
  46. font-family: Source Han Serif SC;
  47. }
  48. textarea,
  49. button {
  50. resize: none;
  51. }
  52. ul,
  53. li {
  54. list-style: none;
  55. }
  56. a {
  57. text-decoration: none;
  58. }
  59. /*头部*/
  60. /*头部样式*/
  61. .header {
  62. padding-top: 1.25rem;
  63. height: 11.1875rem;
  64. display: flex;
  65. flex-direction: column;
  66. }
  67. .header img {
  68. margin: auto;
  69. }
  70. /*中间共同样式*/
  71. .content {
  72. width: 87.5rem;
  73. margin: 0 auto;
  74. }
  75. .content-title {
  76. display: flex;
  77. }
  78. .content-title img {
  79. width: 3rem;
  80. height: 3.0625rem;
  81. margin: 0.625rem 1.25rem 0 0;
  82. }
  83. .content-title span {
  84. font-size: 2.5rem;
  85. font-weight: 800;
  86. color: #FFFFFF;
  87. text-shadow: 0.125rem 0.1875rem 0px #092B5A;
  88. }
  89. .content-content {
  90. height: 48.375rem;
  91. border: 0.0625rem solid #B3D4FF;
  92. border-radius: 1.25rem;
  93. margin-top: 0.9375rem;
  94. }
  95. .content-banner {
  96. margin: 2.8125rem auto;
  97. }
  98. .taps-title {
  99. margin: auto;
  100. width: 74.375rem;
  101. display: flex;
  102. justify-content: space-between;
  103. }
  104. .taps-title li {
  105. width: 14.375rem;
  106. height: 3.75rem;
  107. line-height: 3.75rem;
  108. background: #1A65B2;
  109. font-size: 1.125rem;
  110. color: #ffffff;
  111. text-align: center;
  112. letter-spacing: 0.0625rem;
  113. }
  114. .taps-title .click {
  115. background: #CD9D64;
  116. font-weight: 800;
  117. }
  118. /*右侧按钮*/
  119. .right-banner {
  120. position: fixed;
  121. right: 0;
  122. bottom: 6.875rem;
  123. }
  124. .right-banner li {
  125. background-size: 100% 100%;
  126. width: 12rem;
  127. height: 5.8125rem;
  128. line-height: 5.8125rem;
  129. text-indent: 5.625rem;
  130. font-size: 1.25rem;
  131. font-weight: 800;
  132. color: #FFFFFF;
  133. letter-spacing: 0.3125rem;
  134. }
  135. /*倒计时*/
  136. #secondText {
  137. position: fixed;
  138. width: 3.125rem;
  139. height: 3.125rem;
  140. top: 1.25rem;
  141. right: 1.25rem;
  142. color: #b3d4ff;
  143. }
  144. /*隐藏滚动条*/
  145. </style>