From d51ac6985e83848d47dd3792b79bc95e13cd3c3f Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Mon, 22 May 2023 14:59:56 +0800 Subject: [PATCH] param --- src/components/FourCard.vue | 39 +++++++++++++++- src/components/detail/Parameter.vue | 92 +++++++++++++++++++++++++++++++++++-- 2 files changed, 126 insertions(+), 5 deletions(-) diff --git a/src/components/FourCard.vue b/src/components/FourCard.vue index dce23ff..19c5de7 100644 --- a/src/components/FourCard.vue +++ b/src/components/FourCard.vue @@ -1,7 +1,43 @@ @@ -18,11 +46,67 @@ import HeadLine from '../HeadLine' margin: 0 auto; .card_container { width: 76vw; - height: calc(76vw / 1.78); - background: #000; margin: 0 auto; margin-top: 90px; - position: relative; + .tb_header { + display: flex; + align-items: center; + background: #5064f4; + height: 90px; + font-size: 28px; + font-weight: 500; + color: #ffffff; + .number_header { + flex: 1; + display: flex; + align-items: center; + justify-content: flex-end; + } + .name_header { + flex: 10; + display: flex; + align-items: center; + justify-content: center; + } + .param_header { + flex: 10; + display: flex; + align-items: center; + justify-content: center; + } + } + .tb_body { + .data_line { + &:nth-child(odd) { + background: #f6f6f6; + } + width: 100%; + display: flex; + align-items: center; + height: 90px; + font-size: 28px; + font-weight: 400; + color: #000; + .number_header { + flex: 1; + display: flex; + align-items: center; + justify-content: flex-end; + } + .name_header { + flex: 10; + display: flex; + align-items: center; + justify-content: center; + } + .param_header { + flex: 10; + display: flex; + align-items: center; + justify-content: center; + } + } + } } }