limeng 4 months ago
parent
commit
093cc141da
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/resources/templates/www/tuiyijunren/index.html

+ 3 - 3
src/main/resources/templates/www/tuiyijunren/index.html

@@ -61,7 +61,7 @@
                         <div class="text">
                             <p>${bean.title!}</p>
                             <span>
-                                ${isNotEmpty(bean.description)?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
+                                ${isNotEmpty(bean.description)&&strutil.length(bean.description)>70?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
                             </span>
                         </div>
                     </a>
@@ -76,7 +76,7 @@
                         <div class="text">
                             <p>${bean.title!}</p>
                             <span>
-                                ${isNotEmpty(bean.description)?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
+                                ${isNotEmpty(bean.description)&&strutil.length(bean.description)>70?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
                             </span>
                         </div>
                     </a>
@@ -91,7 +91,7 @@
                         <div class="text">
                             <p>${bean.title!}</p>
                             <span>
-                                ${isNotEmpty(bean.description)?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
+                                ${isNotEmpty(bean.description)&&strutil.length(bean.description)>70?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
                             </span>
                         </div>
                     </a>