shenchunlv 2 vuotta sitten
vanhempi
commit
3d50f6d8c2
4 muutettua tiedostoa jossa 21 lisäystä ja 10 poistoa
  1. 2 2
      pages/m_user/index.vue
  2. 1 1
      postcss.config.js
  3. 7 5
      static/index.less
  4. 11 2
      static/m_index.less

+ 2 - 2
pages/m_user/index.vue

@@ -173,8 +173,8 @@
         </div>
         <div class="home-ad-xw" v-if="homeList3[0]">
           <div class="ad-free-img">
-            <img v-if="activeKey" :src="homeList3[activeKey].images" style="width:100%;height: 100%;" alt="">
-            <img v-else :src="homeList3[0].images" style="width:100%;height: 100%;" alt="">
+            <img v-if="activeKey" :src="homeList3[activeKey].images" style="width:100%;height: 100%; object-fit: cover;" alt="">
+            <img v-else :src="homeList3[0].images" style="width:100%;height: 100%; object-fit: cover;" alt="">
 
           </div>
           <div class="ad-free-content">

+ 1 - 1
postcss.config.js

@@ -29,7 +29,7 @@ module.exports = {
        */
       selectorBlackList: [/^.ant-modal$/,/^.ant-input$/,/^.ant-form-item$/,/^.ant-form$/,/^.ant-modal-body$/,/^.ant-modal-header$/,/^.ant-modal-content$/,
       /^.ant-input-lg$/,/^.van-nav-bar$/,/^.van-nav-bar__content$/,/^.van-nav-bar__title$/,/^.van-nav-bar__right$/,/^.van-dropdown-menu__title$/,/^.van-cell$/,
-    /^.van-dropdown-menu__bar$/,/^.van-nav-bar__left$/],       
+    /^.van-dropdown-menu__bar$/,/^.van-nav-bar__left$/,/^.ad-free-img$/,/^.ad-free-content$/,/^.home-ad-xw$/,/^.ant-collapse$/],       
       // (Number) 设置最小的转换数值,如果为1的话,只有大于1的值会被转换
       minPixelValue: 1,
       // (Boolean) 媒体查询里的单位是否需要转换单位

+ 7 - 5
static/index.less

@@ -326,17 +326,19 @@ body {
 
   // align-items: center;
   .ad-free-img {
-    // width: 50%;
-    height: 500px;
-    // height: 100%;
+    width: 380px;
+    // height: 500px;
+    height: 330px;
     margin-right: 50px;
+    padding: 30px;
   }
 
   .ad-free-content {
     flex: 1;
+    width: 688px;
     // height: 100%;
-    height: 500px;
-    border: 1px solid #ECECEC;
+    height: 330px;
+    border: 1px solid #d9d9d9;
     overflow-y: scroll;
   }
 }

+ 11 - 2
static/m_index.less

@@ -285,20 +285,29 @@ body {
 .home-ad-xw {
   display: flex;
   flex-direction: column;
+  align-items: center;
 
   // align-items: center;
   .ad-free-img {
-    width: 100%;
+    width: 380px;
+    // height: 500px;
+    height: 330px;
+    margin-right: 50px;
+    padding: 30px;
     // height: 100%;
     // margin-right: 50px;
   }
 
   .ad-free-content {
     flex: 1;
-    height: 800px;
+    // height: 800px;
+    width: 100vw;
     border: 1px solid #ECECEC;
   }
 }
+.add-title{
+  font-size: 50px;
+}
 
 .yc {
   white-space: nowrap;