dockDetail.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <template>
  2. <div id="dockDetail">
  3. <el-row>
  4. <el-col :span="24" class="style">
  5. <el-image :src="beijingPic"></el-image>
  6. <el-col :span="24" class="info">
  7. <div class="w_1200">
  8. <el-col :span="24" class="top">
  9. <p>吉林省计算中心对接直播大厅</p>
  10. <p>主办方:吉林省计算中心</p>
  11. </el-col>
  12. <el-col :span="24" class="main">
  13. <el-col :span="6" class="btn">
  14. <el-col :span="24">
  15. <el-button type="primary" icon="el-icon-tickets" @click="btnInfo">项目信息</el-button>
  16. </el-col>
  17. <el-col :span="24">
  18. <el-button type="danger" icon="el-icon-phone-outline" @click="btnPhone">线下对接</el-button>
  19. </el-col>
  20. </el-col>
  21. <el-col :span="18" class="mainInfo">
  22. <el-col :span="24" v-if="display === '1'">
  23. <p class="name textOver">{{ productInfo.name }}</p>
  24. <div class="brief">
  25. <p>
  26. <span>应用领域:{{ productInfo.field }}</span>
  27. <span>服务范围:{{ productInfo.scope }}</span>
  28. </p>
  29. <p>
  30. <span>产品类型:{{ productInfo.product_type_name }}</span>
  31. <span>研发阶段:{{ productInfo.phase == 1 ? '阶段成果' : '最终成果' }}</span>
  32. </p>
  33. <p>
  34. <span>{{ productInfo.business == '0' ? '公用' : productInfo.business == '1' ? '转让' : '竞价' }}</span>
  35. <span>交易价格:{{ productInfo.price }}/{{ productInfo.priceunit }}</span>
  36. </p>
  37. </div>
  38. <p class="intro">
  39. <span><i class="el-icon-date"></i>项目简介</span>
  40. <span>{{ productInfo.introduction }}</span>
  41. </p>
  42. </el-col>
  43. <el-col :span="24" v-if="display === '2'" class="contact">
  44. <p>
  45. 联系人姓名:<span style="color:red;">{{ productInfo.contact_user }}</span>
  46. </p>
  47. <p>
  48. 联系人电话:<span style="color:red;">{{ productInfo.contact_tel }}</span>
  49. </p>
  50. </el-col>
  51. </el-col>
  52. </el-col>
  53. </div>
  54. </el-col>
  55. </el-col>
  56. </el-row>
  57. </div>
  58. </template>
  59. <script>
  60. import { mapState, createNamespacedHelpers } from 'vuex';
  61. const { mapActions: mapProduct } = createNamespacedHelpers('marketproduct');
  62. export default {
  63. name: 'dockDetail',
  64. props: {},
  65. components: {},
  66. data: () => ({
  67. beijingPic: require('@a/live/top_3.png'),
  68. display: '1',
  69. productInfo: {},
  70. }),
  71. created() {
  72. if (this.$route.query.id) {
  73. this.searchInfo();
  74. }
  75. },
  76. methods: {
  77. ...mapProduct(['fetch']),
  78. async searchInfo() {
  79. let res = await this.fetch(this.$route.query.id);
  80. if (res.errcode === 0) {
  81. this.$set(this, `productInfo`, res.data);
  82. }
  83. },
  84. // 项目信息
  85. btnInfo() {
  86. this.display = '1';
  87. },
  88. // 线下对接
  89. btnPhone() {
  90. this.display = '2';
  91. },
  92. },
  93. computed: {
  94. ...mapState(['user']),
  95. pageTitle() {
  96. return `${this.$route.meta.title}`;
  97. },
  98. },
  99. metaInfo() {
  100. return { title: this.$route.meta.title };
  101. },
  102. };
  103. </script>
  104. <style lang="less" scoped>
  105. .w_1200 {
  106. width: 1200px;
  107. margin: 0 auto;
  108. }
  109. p {
  110. padding: 0;
  111. margin: 0;
  112. }
  113. .style {
  114. height: 100vh;
  115. }
  116. .style .info {
  117. position: relative;
  118. top: -450px;
  119. }
  120. .style .top {
  121. position: relative;
  122. top: 0;
  123. width: 100%;
  124. text-align: center;
  125. z-index: 999;
  126. height: 230px;
  127. margin: 0 0 20px 0;
  128. }
  129. .style .top p:first-child {
  130. font-size: 50px;
  131. color: #fff;
  132. }
  133. .style .top p:last-child {
  134. font-size: 30px;
  135. color: #fff;
  136. position: absolute;
  137. width: 100%;
  138. top: 170px;
  139. }
  140. .style .main {
  141. height: 670px;
  142. border: 1px solid red;
  143. background: #fff;
  144. overflow: hidden;
  145. padding: 30px 20px;
  146. }
  147. .main .btn div {
  148. padding: 30px 0 0px 0;
  149. }
  150. /deep/.main .btn .el-button {
  151. float: left;
  152. margin: 0 40px;
  153. width: 70%;
  154. }
  155. .main .mainInfo {
  156. border: 1px solid red;
  157. height: 610px;
  158. }
  159. .mainInfo .name {
  160. font-size: 25px;
  161. text-align: center;
  162. height: 90px;
  163. line-height: 90px;
  164. border-bottom: 2px solid red;
  165. margin: 0 60px;
  166. }
  167. .mainInfo .brief {
  168. float: left;
  169. padding: 0 88px 15px 88px;
  170. color: red;
  171. margin: 15px 20px 0 19px;
  172. width: 75%;
  173. border-bottom: 1px dashed red;
  174. }
  175. .mainInfo .brief p {
  176. float: left;
  177. width: 100%;
  178. padding: 0 0 15px 0;
  179. }
  180. .mainInfo .brief p span:first-child {
  181. float: left;
  182. width: 50%;
  183. }
  184. .mainInfo .intro {
  185. float: left;
  186. padding: 20px;
  187. width: 95%;
  188. }
  189. .mainInfo .intro span:first-child {
  190. display: inline-block;
  191. width: 100%;
  192. font-size: 20px;
  193. color: red;
  194. }
  195. .mainInfo .intro span:last-child {
  196. display: inline-block;
  197. line-height: 25px;
  198. color: #666;
  199. text-indent: 2rem;
  200. overflow: hidden;
  201. text-overflow: ellipsis;
  202. -webkit-line-clamp: 13;
  203. word-break: break-all;
  204. display: -webkit-box;
  205. -webkit-box-orient: vertical;
  206. }
  207. .mainInfo .contact {
  208. padding: 20px;
  209. font-size: 18px;
  210. }
  211. </style>