hangb пре 7 година
родитељ
комит
0bf9ad8066

+ 2 - 2
components/store/home/EnterpriseInfo.vue

@@ -150,9 +150,9 @@
       getIntro (text) {
         let len = text.replace(/[\u0391-\uFFE5]/g, 'aa').length
         if (len > 0) {
-          if (len > 500) {
+          if (len > 490) {
             this.showMore = true
-            text = text.slice(0, 500) + '...'
+            text = text.slice(0, 490) + '...'
           } else {
             this.showMore = false
           }

+ 28 - 6
components/store/home/QualificationCertificate.vue

@@ -8,7 +8,7 @@
         </li>
         <li class="active-empty" v-if="!storeInfo.qualifications || storeInfo.qualifications.length == 0">
           <div class="text-center">
-            <div>
+            <div class="show-img">
               <img src="/images/brandList/empty-cart.jpg">
             </div>
             <div class="txt-info">
@@ -49,7 +49,17 @@
     },
     computed: {
       storeInfo () {
-        return this.$store.state.shop.storeInfo.store.data
+        let storeInfo = this.baseUtils.deepCopy(this.$store.state.shop.storeInfo.store.data)
+        if (storeInfo.qualifications && storeInfo.qualifications.length) {
+          let tempQua = []
+          storeInfo.qualifications.map(item => {
+            if (item.type === 'APTITUDE') {
+              tempQua.push(item)
+            }
+          })
+          storeInfo.qualifications = tempQua
+        }
+        return storeInfo
       },
       user() {
         return this.$store.state.option.user
@@ -62,7 +72,7 @@
         if (this.user.logged && this.user.data.enterprise.uu) {
           if (this.storeStatus.uuid === this.storeInfo.uuid) {
             loggedStatus = true
-            this.storeInfo = this.storeStatus
+            // this.storeInfo = this.storeStatus
           } else {
             loggedStatus = false
           }
@@ -256,9 +266,21 @@
       }
       .active-empty{
         width: 100%;
-        .text-center{
-          text-align: center;
-          margin-top: 12px;
+          .text-center {
+            overflow: hidden;
+            text-align: center;
+            margin: 85px auto;
+          div{
+             float: left;
+           }
+          div.show-img{
+            margin-left: 350px;
+          }
+          div.txt-info {
+            position: absolute;
+            left: 470px;
+            top: 108px;
+          }
         }
         .text-center  .col-xs-2  img{
           margin: 65px 0 85px 205px;