detail1.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <template>
  2. <div style="background: #f0f0f0;padding-bottom:50px">
  3. <div class="banner">
  4. <img src="~@/assets/images/zmqy.jpg" alt="">
  5. </div>
  6. <div class="bread">
  7. <div>
  8. <span>当前位置:首页-知名企业-知名企业详情</span>
  9. </div>
  10. </div>
  11. <div class="smart-device">
  12. <div class="smart-title">
  13. <span><span>知名企业</span>ENTERPRISE</span>
  14. </div>
  15. <div class="smart-device-content">
  16. <div class="titles">
  17. <h3>{{ detail.name }}</h3>
  18. </div>
  19. <div class="list-content" v-html="detail.content" />
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. active: 1,
  29. detail: {}
  30. }
  31. },
  32. mounted() {
  33. document.documentElement.scrollTop = document.body.scrollTop = 0 // 回到顶部
  34. this.detail = this.$route.query
  35. if (this.detail.content.indexOf('width') !== -1 && this.detail.content.indexOf('height') !== -1) {
  36. this.detail.content = this.detail.content.replace(/width="(\S*)"/, 'width="100%"').replace(/height="(\S*)"/, 'height="100%"')
  37. }
  38. },
  39. methods: {
  40. detail1(index) {
  41. switch (index) {
  42. case 1:
  43. this.$router.push({ path: '/company/detail' })
  44. break
  45. }
  46. }
  47. }
  48. }
  49. </script>
  50. <style scoped>
  51. .banner img{
  52. width: 100% !important;
  53. }
  54. @media screen and (min-width: 1000px){
  55. .bread{
  56. background: #fff;
  57. }
  58. .bread div{
  59. width: 1200px;
  60. margin: 0 auto;
  61. text-align: left;
  62. padding: 0.8rem 0;
  63. font-size: 1rem;
  64. }
  65. .smart-title{
  66. margin-top:3rem;
  67. }
  68. .smart-device{
  69. width: 1200px;
  70. margin: 0 auto;
  71. text-align: left;
  72. font-size: 1rem;
  73. }
  74. .smart-device span span{
  75. font-size: 2rem;
  76. display: inline-block;
  77. position: relative;
  78. padding-right: 1rem;
  79. margin-right: 1rem;
  80. font-weight: 900;
  81. }
  82. .smart-device span span:after{
  83. content: '';
  84. width: 1px;
  85. height: 15px;
  86. background: #666;
  87. position: absolute;
  88. right: 0;
  89. bottom: 7px;
  90. }
  91. .device-title img{
  92. width: 80%;
  93. }
  94. .nav-list{
  95. display: flex;
  96. justify-content: center;
  97. flex-wrap: nowrap;
  98. margin: 2rem auto;
  99. width: 50%;
  100. }
  101. .nav-list li{
  102. min-width: 33.33%;
  103. max-width: 33.33%;
  104. text-align: center;
  105. color: #666;
  106. font-size: 0.8rem;
  107. cursor: pointer;
  108. }
  109. .nav-list li span{
  110. border-bottom: 2px solid #f0f0f0;
  111. padding-bottom: 0.8rem;
  112. }
  113. .active span{
  114. display: inline-block;
  115. border-bottom: 2px solid #FF6A00!important;
  116. color: #333;
  117. }
  118. }
  119. @media screen and (max-width: 1000px){
  120. .bread{
  121. display: none;
  122. }
  123. .smart-title{
  124. margin-top:2rem;
  125. }
  126. .smart-device{
  127. width: 90%;
  128. margin: 0 auto;
  129. text-align: left;
  130. font-size: 1rem;
  131. overflow: hidden;
  132. }
  133. .smart-device span span{
  134. font-size: 1.5rem;
  135. display: inline-block;
  136. position: relative;
  137. padding-right: 1rem;
  138. margin-right: 1rem;
  139. font-weight: 900;
  140. }
  141. .smart-device span span:after{
  142. content: '';
  143. width: 1px;
  144. height: 15px;
  145. background: #666;
  146. position: absolute;
  147. right: 0;
  148. bottom: 7px;
  149. }
  150. .device-title img{
  151. width: 100%;
  152. }
  153. .nav-list{
  154. display: flex;
  155. justify-content: center;
  156. flex-wrap: nowrap;
  157. margin: 2rem;
  158. }
  159. .nav-list li{
  160. min-width: 33.33%;
  161. max-width: 33.33%;
  162. text-align: center;
  163. color: #666;
  164. font-size: 0.8rem;
  165. cursor: pointer;
  166. }
  167. .nav-list li span{
  168. border-bottom: 2px solid #f0f0f0;
  169. padding-bottom: 0.8rem;
  170. }
  171. .active span{
  172. display: inline-block;
  173. border-bottom: 2px solid #FF6A00!important;
  174. color: #333;
  175. font-weight:800!important;
  176. }
  177. }
  178. .titles{
  179. text-align: center;
  180. margin: 2rem 0;
  181. }
  182. .list-content{
  183. min-height: 10rem;
  184. }
  185. </style>