ComponentInfo.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <div id="component-info-fragment">
  3. <div class="component-info">
  4. <div class="head">
  5. <span class="tab">产品参数<b class="tip">(仅供参考,以实际产品为准)</b></span>
  6. </div>
  7. <ul class="list-unstyled list-inline" style="margin-left: 0px;" v-if="component.properties">
  8. <li v-for="property in component.properties" v-if="property.value">
  9. <div class="property-name">
  10. <span v-text="property.property.labelCn"></span>:
  11. </div>
  12. <div class="property-value" v-text="property.value"></div>
  13. </li>
  14. <li v-if="!component.properties || component.properties.length === 0" class="text-info">
  15. <!--<i class="fa fa-smile-o fa-lg"></i> 暂无参数信息-->
  16. <span class="info">卖家上传的产品暂无参数,请 <a href="">联系卖家</a> 了解具体详情</span>
  17. </li>
  18. </ul>
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. export default {
  24. name: 'component-info',
  25. computed: {
  26. component () {
  27. return this.$store.state.shop.storeInfo.component.data
  28. }
  29. }
  30. }
  31. </script>
  32. <style scoped>
  33. .component-info {
  34. width: 906px;
  35. margin-bottom: 16px;
  36. }
  37. .component-info .head {
  38. background-color: rgb(236, 242, 253);
  39. height: 40px;
  40. }
  41. .component-info ul .tab {
  42. width: 130px;
  43. }
  44. .component-info ul{
  45. padding-top: 15px;
  46. padding-bottom: 15px;
  47. }
  48. .component-info ul li {
  49. line-height: 30px;
  50. }
  51. .component-info ul li.text-info span.info{
  52. padding-left: 270px;
  53. font-size: 14px;
  54. color: #333;
  55. }
  56. .component-info ul li.text-info span.info a{
  57. font-size: 14px;
  58. color: #5078cb;
  59. }
  60. .component-info ul li.text-info span.info a:hover{
  61. text-decoration: underline!important ;
  62. }
  63. .component-info .head {
  64. font-size: 14px;
  65. font-weight: 600;
  66. }
  67. .component-info .head .tab {
  68. line-height: 40px;
  69. margin-left: 10px;
  70. text-align: center;
  71. display: inline-block;
  72. }
  73. .component-info ul {
  74. border: 1px solid #D6D3CE;;
  75. }
  76. .component-info ul li {
  77. line-height: 30px;
  78. font-size: 12px;
  79. padding-left: 20px;
  80. }
  81. .component-info .property-name {
  82. width: 130px;
  83. float: left;
  84. overflow: hidden;
  85. text-overflow: ellipsis;
  86. white-space: nowrap;
  87. }
  88. .component-info .property-value {
  89. float: left;
  90. width: 740px;
  91. }
  92. .tip {
  93. font-size: 12px;
  94. color: rgba(168, 181, 181, 0.79);
  95. margin-left: 5px;
  96. }
  97. .ng-hide{
  98. display: block !important;
  99. }
  100. </style>