Ver código fonte

提交 兼容性调整

wenmenghao 11 meses atrás
pai
commit
df2faf3041
1 arquivos alterados com 17 adições e 9 exclusões
  1. 17 9
      apps/mobile/src/views/landing/consultingService.vue

+ 17 - 9
apps/mobile/src/views/landing/consultingService.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="consultingService" @scroll="handleScroll">
-    <div class="header">
+    <div :class="{ header: true, 'wx-margin': $envs.inWX }">
       <img src="@/assets/image/landing/mobileHead.png" alt="" />
     </div>
     <div class="middle">
@@ -25,7 +25,7 @@
               <div class="child-box-title">{{ e.name }}</div>
               <div class="child-box-desc">{{ e.desc }}</div>
               <div class="child-box-btn" @click="goSource('free', e.name)">
-                获取报告样例
+                <!-- 获取报告样例 -->
               </div>
             </div>
           </div>
@@ -331,6 +331,9 @@ export default {
 .consultingService {
   background-color: #f5f6f7;
   padding-bottom: 98px;
+  .wx-margin{
+    margin-top: -40px;
+  }
   .header {
     img {
       width: 100%;
@@ -434,6 +437,11 @@ export default {
               text-align: left;
               color: #5f5e64;
               margin-top: 8px;
+              display: -webkit-box;
+              overflow: hidden;
+              -webkit-box-orient: vertical;
+              line-clamp: 2;
+              -webkit-line-clamp: 2; //显示几行
             }
             .child-box-btn {
               width: 141px;
@@ -442,15 +450,15 @@ export default {
               justify-content: center;
               align-items: center;
               height: 34px;
-              background: linear-gradient(
-                90deg,
-                rgba(35, 148, 255, 0.1) -2.53%,
-                rgba(13, 74, 231, 0) 95.93%
-              );
-              border: 1px solid #2394ff;
+              // background: linear-gradient(
+              //   90deg,
+              //   rgba(35, 148, 255, 0.1) -2.53%,
+              //   rgba(13, 74, 231, 0) 95.93%
+              // );
+              // // border: 1px solid #2394ff;
               font-weight: 600;
               border-radius: 4px;
-              // background-image: url('@/assets/image/landing/btn.png');
+              background-image: url('@/assets/image/landing/btn.png');
               background-size: 100% 100%;
               box-sizing: border-box;
               font-size: 14px;