Browse Source

商品详情界面样式优化

任一存 1 year ago
parent
commit
1a9687bd1a
1 changed files with 12 additions and 4 deletions
  1. 12 4
      src/components/Tags/goods-list.vue

+ 12 - 4
src/components/Tags/goods-list.vue

@@ -281,6 +281,8 @@ onMounted(() => {
   align-items: center;
   flex-direction: column;
   justify-content: center;
+  padding-top: 20px;
+  padding-bottom: 20px;
   .head-pages {
     display: flex;
     justify-content: space-between;
@@ -315,16 +317,18 @@ onMounted(() => {
 
         > div {
           background: #fff;
-          padding-bottom: 14px;
-          height: 100%;
+          max-height: 100%;
+          display: flex;
+          flex-direction: column;
           >.imgcon{
+            flex: 0 0 auto;
             height: 34vh;
           }
           .info {
+            flex: 0 1 auto;
             font-size: 14px;
             color: #131d34;
             padding: 16px 20px;
-            max-height: calc(100% - 34vh - 42px);
             box-sizing: border-box;
             overflow: auto;
             > p {
@@ -402,15 +406,19 @@ onMounted(() => {
             }
           }
           .goods-button {
+            flex: 0 0 auto;
             display: flex;
             justify-content: space-between;
             font-size: 16px;
             padding: 0 20px;
+            gap: 10px;
+            padding-top: 14px;
+            padding-bottom: 14px;
             >div.btn-try-use{
               display: flex;
               flex-direction: column;
               justify-content: center;
-              margin-right: 39px;
+              margin-right: 29px;
               align-items: center;
               >img{
                 width: 18px;