cm-parameter.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template name="cm-parameter">
  2. <!-- 相关参数 -->
  3. <view class="cm-parameter">
  4. <view class="cm-parameter-main clearfix">
  5. <view class="item-tabody clearfix" v-for="(item, index) in product.parametersList" :key="index" >
  6. <view class="item-td">{{item.paramsName}}</view>
  7. <view class="item-tr">{{item.paramsContent}}</view>
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default{
  14. name:'cm-parameter',
  15. props:{
  16. product:{
  17. type:Object,
  18. }
  19. },
  20. data() {
  21. return{
  22. data:[]
  23. }
  24. },
  25. created() {
  26. },
  27. methods:{
  28. },
  29. }
  30. </script>
  31. <style lang="scss">
  32. .cm-parameter{
  33. width: 702rpx;
  34. height: auto;
  35. background: #FFF;
  36. margin: 0 auto;
  37. padding: 24rpx 0;
  38. .cm-parameter-main{
  39. display: flex;
  40. flex: 1;
  41. flex-direction: column;
  42. background-color: #FFFFFF;
  43. border: 1px solid #EFEFEF;
  44. border-radius: 4rpx;
  45. .item-tabody{
  46. width: 100%;
  47. height: auto;
  48. border-bottom: 1px solid #EFEFEF;
  49. font-size: $font-size-24;
  50. display: flex;
  51. flex-wrap: wrap;
  52. .item-td{
  53. width: 238rpx;
  54. float: left;
  55. border-right: 1px solid #EFEFEF;
  56. color: #999999;
  57. padding:20rpx;
  58. display: flex;
  59. flex: 3;
  60. flex-direction: column;
  61. }
  62. .item-tr{
  63. width: 462rpx;
  64. float: left;
  65. color: $text-color;
  66. padding:20rpx;
  67. display: flex;
  68. flex: 7;
  69. flex-direction: column;
  70. }
  71. &:last-child{
  72. border-bottom: none;
  73. }
  74. }
  75. }
  76. }
  77. </style>