Bladeren bron

店铺溢出隐藏

hangb 7 jaren geleden
bovenliggende
commit
a6e78f0cc2
1 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 4 3
      components/store/home/EnterpriseInfo.vue

+ 4 - 3
components/store/home/EnterpriseInfo.vue

@@ -157,10 +157,11 @@
     methods: {
       // 店铺简介
       getIntro (text) {
+        console.log(text)
         let realLength = this.baseUtils.getRealLen(text)
-        if (realLength > 495) {
+        if (realLength > 494) {
           this.showMore = true
-          text = this.baseUtils.cutOutString(text, 495) + '...'
+          text = this.baseUtils.cutOutString(text, 494) + '...'
         } else {
           this.showMore = false
         }
@@ -351,7 +352,7 @@
             .information-list {
               font-size: 12px;
               color: #333;
-              margin-bottom: 3px;
+              margin-bottom: 2px;
               /*background: #fff;*/
             &:first-child{
                /*padding-top: 10px;*/