limeng 4 月之前
父節點
當前提交
093cc141da
共有 1 個文件被更改,包括 3 次插入3 次删除
  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>