detailinfo.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <div id="detailinfo">
  3. <el-row>
  4. <el-col :span="24" class="info">
  5. <el-col :span="24" class="top">
  6. <p class="textOver">{{ detailInfo.product_name }}</p>
  7. </el-col>
  8. <el-col :span="24" class="message">
  9. <p>
  10. <span>营销人名称:</span>
  11. <span>{{ detailInfo.market_username || '暂无' }}</span>
  12. </p>
  13. <p>
  14. <span>购买人名称:</span>
  15. <span>{{ detailInfo.username || '暂无' }}</span>
  16. </p>
  17. <p>
  18. <span>联系人:</span>
  19. <span>{{ detailInfo.contact_user || '暂无' }}</span>
  20. </p>
  21. <div class="introduction">
  22. <p>说明:</p>
  23. <p>{{ detailInfo.description || '暂无' }}</p>
  24. </div>
  25. </el-col>
  26. </el-col>
  27. </el-row>
  28. </div>
  29. </template>
  30. <script>
  31. import { mapState, createNamespacedHelpers } from 'vuex';
  32. export default {
  33. name: 'detailinfo',
  34. props: {
  35. detailInfo: null,
  36. },
  37. components: {},
  38. data: function() {
  39. return {};
  40. },
  41. created() {},
  42. methods: {},
  43. computed: {
  44. ...mapState(['user']),
  45. pageTitle() {
  46. return `${this.$route.meta.title}`;
  47. },
  48. },
  49. metaInfo() {
  50. return { title: this.$route.meta.title };
  51. },
  52. };
  53. </script>
  54. <style lang="less" scoped>
  55. .info {
  56. .top {
  57. background: #fff;
  58. min-height: 40px;
  59. padding: 0 15px;
  60. margin: 0 0 10px 0;
  61. .carousel {
  62. height: 200px !important;
  63. padding: 10px 0;
  64. }
  65. .el-image {
  66. width: 100%;
  67. height: 200px;
  68. }
  69. p {
  70. font-size: 18px;
  71. // color: #7996b1;
  72. padding: 10px 0 10px 0;
  73. }
  74. }
  75. .message {
  76. background: #fff;
  77. padding: 0 15px;
  78. min-height: 50px;
  79. p {
  80. min-height: 50px;
  81. line-height: 50px;
  82. border-bottom: 1px solid #ccc;
  83. }
  84. span:first-child {
  85. display: inline-block;
  86. width: 98px;
  87. color: #ccc;
  88. }
  89. span:last-child {
  90. color: #000;
  91. }
  92. div {
  93. p {
  94. border-bottom: none;
  95. }
  96. }
  97. }
  98. }
  99. /deep/.el-carousel__container {
  100. height: 200px !important;
  101. }
  102. </style>