cm-parameter.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 data" :key="index" >
  6. <view class="item-td">{{item.name}}</view>
  7. <view class="item-tr">{{item.color}}</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. {name:'颜色',color:'白色'},
  24. {name:'重量',color:'1000KG'},
  25. {name:'规格',color:'12瓶/m'},
  26. {name:'EEDF能量桂华技术',color:'50万次有效出光保证,量均匀,安全保证,效果'},
  27. {name:'功能',color:'美白嫩肤,美白嫩肤美白嫩肤'},
  28. ]
  29. }
  30. },
  31. created() {
  32. },
  33. methods:{
  34. },
  35. }
  36. </script>
  37. <style lang="scss">
  38. .cm-parameter{
  39. width: 100%;
  40. height: auto;
  41. background: #FFF;
  42. .cm-parameter-main{
  43. width: 702rpx;
  44. height: auto;
  45. margin: 0 auto;
  46. border: 1px solid #EFEFEF;
  47. margin-top: 24rpx;
  48. .item-tabody{
  49. width: 100%;
  50. height: auto;
  51. padding:20rpx 0;
  52. border-bottom: 1px solid #EFEFEF;
  53. font-size: $font-size-24;
  54. .item-td{
  55. width: 238rpx;
  56. float: left;
  57. border-right: 1px solid #EFEFEF;
  58. color: #999999;
  59. text-indent: 20rpx;
  60. }
  61. .item-tr{
  62. width: 462rpx;
  63. float: left;
  64. color: $text-color;
  65. text-indent: 20rpx;
  66. }
  67. &:last-child{
  68. border-bottom: none;
  69. }
  70. }
  71. }
  72. }
  73. </style>