prodDetails.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <div id="prodDetails">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="top">
  6. <el-carousel trigger="click" class="carousel">
  7. <template v-if="productInfo.image && productInfo.image.length > 0">
  8. <el-carousel-item v-for="(item, index) in productInfo.image" :key="index">
  9. <el-image :src="item.url" style="width:100%"> </el-image>
  10. </el-carousel-item>
  11. </template>
  12. </el-carousel>
  13. <p class="textOver">{{ productInfo.name }}</p>
  14. </el-col>
  15. <el-col :span="24" class="message">
  16. <p>
  17. <span>产品类型</span>
  18. <span>{{ productInfo.totaltype === '0' ? '技术' : productInfo.totaltype === '1' ? '产品' : productInfo.totaltype === '2' ? '服务' : '暂无' }}</span>
  19. </p>
  20. <p>
  21. <span>类型</span>
  22. <span>{{ productInfo.product_type_name || '暂无' }}</span>
  23. </p>
  24. <p>
  25. <span>研发阶段</span>
  26. <span>{{ productInfo.phase == 1 ? '阶段成果' : productInfo.phase == 2 ? '最终成果' : '暂无' }}</span>
  27. </p>
  28. <p>
  29. <span>交易方式</span>
  30. <span>{{ productInfo.business === '0' ? '公用' : productInfo.business === '1' ? '转让' : productInfo.business === '2' ? '竞价' : '暂无' }}</span>
  31. </p>
  32. <p>
  33. <span>应用领域</span>
  34. <span>{{ productInfo.field || '暂无' }}</span>
  35. </p>
  36. <p>
  37. <span>服务范围</span>
  38. <span>{{ productInfo.scope || '暂无' }}</span>
  39. </p>
  40. <p>
  41. <span>产品单价</span>
  42. <span>{{ productInfo.price }}/{{ productInfo.priceunit }}</span>
  43. </p>
  44. <p>
  45. <span>联系人</span>
  46. <span>{{ productInfo.contact_user }}</span>
  47. </p>
  48. <p>
  49. <span>联系电话</span>
  50. <span>{{ productInfo.contact_tel }}</span>
  51. </p>
  52. <div class="introduction">
  53. <p>产品简介</p>
  54. <p>{{ productInfo.introduction }}</p>
  55. </div>
  56. </el-col>
  57. </el-col>
  58. </el-row>
  59. </div>
  60. </template>
  61. <script>
  62. import { mapState, createNamespacedHelpers } from 'vuex';
  63. export default {
  64. name: 'prodDetails',
  65. props: {
  66. productInfo: null,
  67. },
  68. components: {},
  69. data: function() {
  70. return {};
  71. },
  72. created() {},
  73. methods: {},
  74. computed: {
  75. ...mapState(['user']),
  76. pageTitle() {
  77. return `${this.$route.meta.title}`;
  78. },
  79. },
  80. metaInfo() {
  81. return { title: this.$route.meta.title };
  82. },
  83. };
  84. </script>
  85. <style lang="less" scoped>
  86. .info {
  87. .top {
  88. background: #fff;
  89. min-height: 250px;
  90. padding: 0 15px;
  91. margin: 0 0 10px 0;
  92. .carousel {
  93. height: 200px !important;
  94. padding: 10px 0;
  95. }
  96. .el-image {
  97. width: 100%;
  98. height: 200px;
  99. }
  100. p {
  101. font-size: 18px;
  102. color: #000;
  103. padding: 0 0 10px 0;
  104. }
  105. }
  106. .message {
  107. background: #fff;
  108. padding: 0 15px;
  109. min-height: 50px;
  110. p {
  111. min-height: 50px;
  112. line-height: 50px;
  113. border-bottom: 1px solid #ccc;
  114. }
  115. span:first-child {
  116. display: inline-block;
  117. width: 80px;
  118. color: #ccc;
  119. }
  120. span:last-child {
  121. color: #000;
  122. }
  123. div {
  124. p {
  125. border-bottom: none;
  126. }
  127. }
  128. }
  129. }
  130. /deep/.el-carousel__container {
  131. height: 200px !important;
  132. }
  133. </style>