Browse Source

Merge branch 'dev2.10.8' of http://192.168.3.207:10080/qmx/jy into dev2.10.8

wangkaiyue 5 years ago
parent
commit
b7fb64bbe1

+ 5 - 5
src/jfw/active/live.go

@@ -133,11 +133,11 @@ func (this *Active) LivePage() error {
 		checkIsSubscribeFlag = CheckUserIsSubscribe(openid)
 	}
 	this.T["checkIsSubscribeFlag"] = checkIsSubscribeFlag
-	this.T["Live_Active_Start"] = util.FormatDateByInt64(&config.ActiveConfig.Live_Active_Start, "2006/01/02/15:04") //直播活动开始时间
-	this.T["Live_Active_End"] = util.FormatDateByInt64(&config.ActiveConfig.Live_Active_End, "2006/01/02/15:04")     //直播活动结束时间
-	this.T["Live_Preheat_Start"] = config.ActiveConfig.Live_Preheat_Start                                            //预热活动开始时间
-	this.T["Live_Preheat_End"] = config.ActiveConfig.Live_Preheat_End                                                //预热活动结束时间
-	this.T["LIVEING"] = false                                                                                        //是否直播中
+	this.T["Live_Active_Start"] = config.ActiveConfig.Live_Active_Start   //直播活动开始时间
+	this.T["Live_Active_End"] = config.ActiveConfig.Live_Active_End       //直播活动结束时间
+	this.T["Live_Preheat_Start"] = config.ActiveConfig.Live_Preheat_Start //预热活动开始时间
+	this.T["Live_Preheat_End"] = config.ActiveConfig.Live_Preheat_End     //预热活动结束时间
+	this.T["LIVEING"] = false                                             //是否直播中
 	now := time.Now()
 	if now.Unix() > config.ActiveConfig.Live_After_Date { //直播活动结束超过提示时间  跳转到vip介绍页
 		return this.Redirect("/front/vipsubscribe/introducePage")

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

@@ -829,6 +829,9 @@ ul {
 						type = "";
 					}
         }
+        if(type==null||type=="undefined"){
+          type=""
+        }
 
         //vip用户显示与普通用户不同
 				var buyerclass={{.T.obj.buyerclass}};
@@ -907,6 +910,9 @@ ul {
 						type = "";
 					}
 				}
+        if(type==null||type=="undefined"){
+          type=""
+        }
 				if(type != ""){
 					document.write("<span class='tag type'>"+type+"</span>");
 				}

+ 3 - 1
src/web/templates/active/livePage/live_online_wx.html

@@ -150,7 +150,9 @@
       var isSub = {{.T.checkIsSubscribeFlag}}; //是否关注公众号
       var live_Active_End = {{.T.Live_Active_End}}; //活动开始时间
       if (live_Active_End==null||live_Active_End==""){
-        live_Active_End = '2020/07/14/20:00'
+        live_Active_End = 1594728000000
+      }else{
+        live_Active_End = Number(live_Active_End+"000");
       }
       //
       var PageInit = function(){

+ 3 - 1
src/web/templates/active/livePage/live_preheat_wx.html

@@ -159,7 +159,9 @@
       var isSub = {{.T.checkIsSubscribeFlag}}; //是否关注公众号
       var live_Active_Start = {{.T.Live_Active_Start}}; //活动开始时间
       if (live_Active_Start==null||live_Active_Start==""){
-        live_Active_Start = '2020/07/07/20:00'
+        live_Active_Start = 1594123200000
+      }else{
+        live_Active_Start = Number(live_Active_Start+"000");
       }
       //
       var PageInit = function(){

+ 3 - 0
src/web/templates/weixin/wxinfocontent_rec.html

@@ -574,6 +574,9 @@ pre {
 						type = "";
 					}
         }
+        if(type==null||type=="undefined"){
+          type=""
+        }
 
         {{if .T.isVip}}
           // VIP用户