瀏覽代碼

feat: 日期

zhangxinlei1996 2 年之前
父節點
當前提交
cbd959b7a4
共有 1 個文件被更改,包括 1 次插入1 次删除
  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>");