Browse Source

内容居中

wangxy 2 năm trước cách đây
mục cha
commit
59ef330454

+ 3 - 0
components/common/layout/imgDes/imgCardLv1.vue

@@ -106,6 +106,9 @@ export default {
 
   .mta-card-content-pc {
     display: flex;
+    align-items: center;
+    justify-content: center;
+
     img {
       width: 480px;
       height: 370px;

+ 1 - 0
components/common/layout/imgDes/imgCardLv2.vue

@@ -71,6 +71,7 @@ export default {
   .mta-card-content-pc {
     display: flex;
     align-items: center;
+    justify-content: center;
     img {
       width: 480px;
       height: 370px;

+ 2 - 0
components/common/layout/imgDes/imgCardLv3.vue

@@ -66,6 +66,8 @@ export default {
   .mta-card-content-pc {
     display: flex;
     align-items: center;
+    justify-content: center;
+
     img {
       width: 480px;
       height: 370px;

+ 2 - 0
components/common/layout/imgDes/imgCardLv4.vue

@@ -70,6 +70,8 @@ export default {
 
   .mta-card-content-pc {
     display: flex;
+    align-items: center;
+    justify-content: center;
     img {
       width: 480px;
       height: 370px;

+ 1 - 6
pages/news/index.vue

@@ -52,23 +52,18 @@
         </el-pagination>
       </div>
     </div>
-
-    <!--  立即咨询  -->
-    <desWithCode source="news"></desWithCode>
-
   </div>
 </template>
 
 <script>
   import NewList from '~/components/news/NewsList';
-  import desWithCode from "@/components/common/layout/desComp/desWithCode";
 
   const defaultNewsClassifyId = 0;
   export default {
     name:       'news',
     layout:     'templateB',
     components: {
-      NewList,desWithCode
+      NewList
     },
     async asyncData({ $axios, store }) {
       // 设置选中菜单