detail.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <template>
  2. <div id="detail">
  3. <el-row>
  4. <el-col :span="24" class="main">
  5. <el-col :span="24" class="top">
  6. <div class="w_1200">
  7. <topInfo :info="liveInfo"></topInfo>
  8. </div>
  9. </el-col>
  10. <el-col :span="24" class="info">
  11. <div class="w_1200">
  12. <el-col :span="24" class="one">
  13. <el-col :span="12" class="left">
  14. <videoData :info="liveInfo"></videoData>
  15. </el-col>
  16. <el-col :span="12" class="right">
  17. <imgtxtData></imgtxtData>
  18. </el-col>
  19. </el-col>
  20. <el-col :span="24" class="two">
  21. <productData></productData>
  22. </el-col>
  23. <el-col :span="24" class="thr">
  24. <expertData></expertData>
  25. </el-col>
  26. <el-col :span="24" class="four">
  27. <el-image :src="fourImg"> </el-image>
  28. </el-col>
  29. <el-col :span="24" class="five">
  30. <el-col :span="8" class="left">
  31. <guestData></guestData>
  32. </el-col>
  33. <el-col :span="8" class="cen">
  34. <projectData></projectData>
  35. </el-col>
  36. <el-col :span="8" class="right">
  37. <chatData></chatData>
  38. </el-col>
  39. </el-col>
  40. </div>
  41. </el-col>
  42. <el-col :span="24" class="foot">
  43. <foot></foot>
  44. </el-col>
  45. </el-col>
  46. </el-row>
  47. </div>
  48. </template>
  49. <script>
  50. import foot from '@common/src/components/common/foot.vue';
  51. import topInfo from './detail/topInfo.vue';
  52. import videoData from './detail/videoData.vue';
  53. import imgtxtData from './detail/imgtxtData.vue';
  54. import productData from './detail/productData.vue';
  55. import expertData from './detail/expertData.vue';
  56. import guestData from './detail/guestData.vue';
  57. import projectData from './detail/projectData.vue';
  58. import chatData from './detail/chatData.vue';
  59. import { mapState, createNamespacedHelpers } from 'vuex';
  60. const { mapActions: dock } = createNamespacedHelpers('dock');
  61. export default {
  62. metaInfo() {
  63. return { title: this.$route.meta.title };
  64. },
  65. name: 'detail',
  66. props: {},
  67. components: { foot, topInfo, videoData, imgtxtData, productData, expertData, guestData, projectData, chatData },
  68. data: function() {
  69. return {
  70. // 展会详情
  71. liveInfo: {},
  72. // 第四部分
  73. fourImg: require('@common/src/assets/live/top_bg.png'),
  74. };
  75. },
  76. async created() {
  77. await this.searchInfo();
  78. },
  79. methods: {
  80. ...dock(['fetch']),
  81. async searchInfo() {
  82. let res = await this.fetch(this.id);
  83. if (this.$checkRes(res)) {
  84. this.$set(this, `liveInfo`, res.data);
  85. }
  86. },
  87. },
  88. computed: {
  89. ...mapState(['user']),
  90. id() {
  91. return this.$route.query.id;
  92. },
  93. },
  94. watch: {},
  95. };
  96. </script>
  97. <style lang="less" scoped>
  98. .main {
  99. .top {
  100. background: url('~@common/src/assets/live/dock_top.png');
  101. height: 480px;
  102. background-repeat: no-repeat;
  103. background-size: 100% 100%;
  104. }
  105. .info {
  106. min-height: 500px;
  107. background: #fcfcfd;
  108. .one {
  109. height: 480px;
  110. background-color: #fff;
  111. margin: 0 0 15px 0;
  112. .left {
  113. width: 49%;
  114. height: 480px;
  115. margin: 0 15px 0 0;
  116. border: 4px solid #000;
  117. }
  118. .right {
  119. width: 49.5%;
  120. height: 480px;
  121. box-shadow: 0 0 5px #ccc;
  122. border-radius: 5px;
  123. }
  124. }
  125. .two {
  126. height: 620px;
  127. background-color: #fff;
  128. box-shadow: 0 0 5px #ccc;
  129. border-radius: 5px;
  130. margin: 0 0 15px 0;
  131. }
  132. .thr {
  133. height: 560px;
  134. background-color: #fff;
  135. box-shadow: 0 0 5px #ccc;
  136. border-radius: 5px;
  137. margin: 0 0 15px 0;
  138. }
  139. .four {
  140. height: 120px;
  141. box-shadow: 0 0 5px #ccc;
  142. border-radius: 5px;
  143. margin: 0 0 15px 0;
  144. .el-image {
  145. height: 120px;
  146. overflow: hidden;
  147. border-radius: 5px;
  148. }
  149. }
  150. .five {
  151. height: 510px;
  152. background-color: #fff;
  153. margin: 0 0 15px 0;
  154. .left {
  155. width: 33%;
  156. height: 510px;
  157. overflow: hidden;
  158. box-shadow: 0 0 5px #ccc;
  159. border-radius: 5px;
  160. margin: 0 10px 0 0;
  161. }
  162. .cen {
  163. width: 33%;
  164. height: 510px;
  165. overflow: hidden;
  166. box-shadow: 0 0 5px #ccc;
  167. border-radius: 5px;
  168. margin: 0 10px 0 0;
  169. }
  170. .right {
  171. width: 32.3%;
  172. height: 510px;
  173. overflow: hidden;
  174. box-shadow: 0 0 5px #ccc;
  175. border-radius: 5px;
  176. }
  177. }
  178. }
  179. }
  180. </style>