limeng 5 bulan lalu
induk
melakukan
093cc141da
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  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>