jinsy 7 жил өмнө
parent
commit
d596c34d57

+ 10 - 8
frontend/saas-portal-web/src/components/conenter/company.vue

@@ -56,7 +56,7 @@
       </div>
     </div>
 
-        <div class="gs-qiyebox" ref="qiyebox" style="margin-top: 70px;">
+        <div class="gs-qiyebox" ref="qiyebox" style="margin-top: 70px;" :class="isheigh ? 'heigh' : ''">
             <!-- 点击查看企业详情 -->
             <div v-for="(d , i) in arr " :key="i" class="gs-xiangqing xs">
                 <div class="left gs-xqleft" @click= "getEnterpriseInfo(d)">
@@ -102,7 +102,8 @@
                 isDefault: true,//开通默认
                 isAutoLogin: this.$store.state.isAutoLogin,
                 mytoken: JSON.parse(localStorage.getItem('app-state-session')),//本地储存的用户信息
-                arr: []//企业列表信息
+                arr: [],//企业列表信息
+                isheigh:true//是否添加默认高度
             }
         },
         computed :{
@@ -256,8 +257,8 @@
                 .then(res=>{
                     // console.log('请求成功',res)
                     if (res.data.success) {
-                        this.ktsass = false;
                         this.saasid = res.data.data
+                        this.ktsass = false;
                     } else {
                         this.isokopensaas = true;
                     }
@@ -268,7 +269,6 @@
             },
             //进入saas服务
             showServeWin(){
-                debugger
                 let id = this.saasid;
                 this.isOpensaas = false;
                 // this.$options.methods.selectServe(id);
@@ -294,10 +294,10 @@
             //没有内容也要有一定的高度
             boxheight(){
                 let H = this.$refs.qiyebox.offsetHeight;
-                if (H < 300) {
-                    this.$refs.qiyebox.style.height = 500+'px';
+                if (H < 400) {
+                    this.isheigh = true
                 } else {
-                    this.$refs.qiyebox.style.height = '';
+                    this.isheigh = false
                 }
             },
         }
@@ -305,5 +305,7 @@
 </script>
 
 <style scoped>
-
+.heigh {
+    height: 500px;
+}
 </style>

+ 6 - 6
frontend/saas-portal-web/src/components/conenter/home.vue

@@ -114,7 +114,7 @@
           <!-- 1 -->
           <div class="ts-box">
             <div class="ts-boximg">
-              <img src="/static/img/feature/illustration1@2x.png" alt="">
+              <img src="/static/img/feature/mix13x.png" alt="">
             </div>
             <div>
               <img class="ts-img" src="/static/img/feature/blue1@2x.png" alt="">
@@ -125,14 +125,14 @@
             <div>
               <img class="ts-img" src="/static/img/feature/yellow2@2x.png" alt="">
             </div>
-            <div class="ts-boximg" style="right:0">
-              <img src="/static/img/feature/illustration2@2x.png" alt="">
+            <div class="ts-boximg">
+              <img style="float: right;" src="/static/img/feature/mix23x.png" alt="">
             </div>
           </div>
           <!-- 3 -->
           <div class="ts-box">
             <div class="ts-boximg">
-              <img src="/static/img/feature/illustration3@2x.png" alt="">
+              <img src="/static/img/feature/mix33x.png" alt="">
             </div>
             <div>
               <img class="ts-img" src="/static/img/feature/blue3@2x.png" alt="">
@@ -143,8 +143,8 @@
             <div>
               <img class="ts-img" src="/static/img/feature/yellow4@2x.png" alt="">
             </div>
-            <div class="ts-boximg" style="right:0">
-              <img src="/static/img/feature/illustration4@2x.png" alt="">
+            <div class="ts-boximg">
+              <img style="float: right;" src="/static/img/feature/mix43x.png" alt="">
             </div>
           </div>
         </div>

+ 5 - 1
frontend/saas-portal-web/static/css/main.css

@@ -342,6 +342,9 @@ main > section {
     position: absolute;
     top: 40px;
 }
+.ts-boximg img {
+    width: 70%;
+}
 .ts-lefttext p {
     text-align: right;
 }
@@ -359,7 +362,8 @@ main > section {
     float: right;
 }
 .ts-img {
-    width: 100%;
+    width: 96%;
+    margin-left: 2%;
 }
 .right-text {
     text-align: right;

BIN
frontend/saas-portal-web/static/img/feature/illustration1@2x.png


BIN
frontend/saas-portal-web/static/img/feature/illustration2@2x.png


BIN
frontend/saas-portal-web/static/img/feature/illustration3@2x.png


BIN
frontend/saas-portal-web/static/img/feature/illustration4@2x.png


BIN
frontend/saas-portal-web/static/img/feature/mix13x.png


BIN
frontend/saas-portal-web/static/img/feature/mix23x.png


BIN
frontend/saas-portal-web/static/img/feature/mix33x.png


BIN
frontend/saas-portal-web/static/img/feature/mix43x.png