Browse Source

feat: 日期

zhangxinlei1996 2 years ago
parent
commit
cbd959b7a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

+ 1 - 1
src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

@@ -577,7 +577,7 @@
                         </div>
                         <script>
                             var l_publishtime = {{.T.obj.l_publishtime}};
-                            if(l_publishtime != ""){
+                            if(l_publishtime != "" && l_publishtime!=null){
                                 var tdf = new Date(parseInt(l_publishtime*1000)).pattern('yyyy-MM-dd');
                                 if(tdf != null){
                                     document.write("<span class='timebefore'>"+tdf+"</span>");