Browse Source

配置统一,取消头部

xuzhiheng 5 năm trước cách đây
mục cha
commit
4cfd82b05c
29 tập tin đã thay đổi với 157 bổ sung92 xóa
  1. 3 2
      src/active.json
  2. 8 7
      src/jfw/config/active.go
  3. 5 2
      src/jfw/front/dataExport.go
  4. 18 10
      src/jfw/front/vipsubscribe.go
  5. 3 0
      src/jfw/front/wxMyOrder.go
  6. 3 2
      src/jfw/modules/app/src/active_zb.json
  7. 8 7
      src/jfw/modules/app/src/app/config/active_zb.go
  8. 4 1
      src/jfw/modules/app/src/app/front/myorder.go
  9. 20 11
      src/jfw/modules/app/src/app/front/vipsubscribe.go
  10. 0 3
      src/jfw/modules/app/src/seo.json
  11. 2 2
      src/jfw/modules/app/src/web/templates/dataExport/dataExport_toMyOrder.html
  12. 3 3
      src/jfw/modules/app/src/web/templates/vipsubscribe/vip_index_new.html
  13. 3 3
      src/jfw/modules/app/src/web/templates/vipsubscribe/vip_order_detail.html
  14. 3 3
      src/jfw/modules/app/src/web/templates/vipsubscribe/vip_purchase.html
  15. 3 3
      src/jfw/modules/app/src/web/templates/vipsubscribe/vip_renew.html
  16. 1 4
      src/seo.json
  17. 5 0
      src/web/staticres/course/js/bootstrap copy.min.js
  18. 1 0
      src/web/staticres/course/js/jquery-2 copy.1.4.min.js
  19. 2 1
      src/web/staticres/course/js/order_detail.js
  20. 8 1
      src/web/templates/course/pc/order_detail.html
  21. 9 2
      src/web/templates/order/pc/datareport/detail.html
  22. 10 3
      src/web/templates/pc/entniche_orderDetail.html
  23. 2 4
      src/web/templates/pc/myOrder.html
  24. 9 1
      src/web/templates/pc/orderDetail.html
  25. 13 6
      src/web/templates/pc/vip_orderDetail.html
  26. 3 3
      src/web/templates/weixin/vipsubscribe/vip_index_new.html
  27. 2 2
      src/web/templates/weixin/vipsubscribe/vip_order_detail.html
  28. 3 3
      src/web/templates/weixin/vipsubscribe/vip_purchase.html
  29. 3 3
      src/web/templates/weixin/vipsubscribe/vip_renew.html

+ 3 - 2
src/active.json

@@ -1,9 +1,10 @@
 {
 {
 	"live_Preheat_Start":1593432000,
 	"live_Preheat_Start":1593432000,
 	"live_Preheat_End":1594123200,
 	"live_Preheat_End":1594123200,
-	"live_Active_Start":1594123200,
+	"live_Active_Start":1593739500,
 	"live_Active_End":1594728000,
 	"live_Active_End":1594728000,
 	"live_Ing_Start":1594123200,
 	"live_Ing_Start":1594123200,
 	"live_Ing_End":1594130400,
 	"live_Ing_End":1594130400,
-	"live_After_Date":1597413600
+	"live_After_Date":1597413600,
+	"activeDiscount":0.6
 }
 }

+ 8 - 7
src/jfw/config/active.go

@@ -6,13 +6,14 @@ import (
 
 
 //系统配置
 //系统配置
 type activeConfig struct {
 type activeConfig struct {
-	Live_Preheat_Start int64 `json:"live_Preheat_Start"` //预热活动开始时间
-	Live_Preheat_End   int64 `json:"live_Preheat_End"`   //预热活动结束时间
-	Live_Active_Start  int64 `json:"live_Active_Start"`  //直播活动开始时间
-	Live_Active_End    int64 `json:"live_Active_End"`    //直播活动结束时间
-	Live_Ing_Start     int64 `json:"live_Ing_Start"`     //直播开始时间
-	Live_Ing_End       int64 `json:"live_Ing_End"`       //直播结束时间
-	Live_After_Date    int64 `json:"live_After_Date"`    //直播活动结束后 活动已结束提示时间段(暂定一个月) 一个月后 跳转到VIP介绍页
+	Live_Preheat_Start int64   `json:"live_Preheat_Start"` //预热活动开始时间
+	Live_Preheat_End   int64   `json:"live_Preheat_End"`   //预热活动结束时间
+	Live_Active_Start  int64   `json:"live_Active_Start"`  //直播活动开始时间
+	Live_Active_End    int64   `json:"live_Active_End"`    //直播活动结束时间
+	Live_Ing_Start     int64   `json:"live_Ing_Start"`     //直播开始时间
+	Live_Ing_End       int64   `json:"live_Ing_End"`       //直播结束时间
+	Live_After_Date    int64   `json:"live_After_Date"`    //直播活动结束后 活动已结束提示时间段(暂定一个月) 一个月后 跳转到VIP介绍页
+	ActiveDiscount     float64 `json:"activeDiscount"`     //直播活动折扣
 }
 }
 
 
 var ActiveConfig activeConfig
 var ActiveConfig activeConfig

+ 5 - 2
src/jfw/front/dataExport.go

@@ -180,6 +180,9 @@ func (d *DataExport) ToMyOrder() error {
 	}
 	}
 	d.T["shareid"] = se.EncodeString("10")
 	d.T["shareid"] = se.EncodeString("10")
 	d.T["logid"] = config.Seoconfig["dataexport"].(string)
 	d.T["logid"] = config.Seoconfig["dataexport"].(string)
+	d.T["liveActiveStartTime"] = config.ActiveConfig.Live_Active_Start
+	d.T["liveActiveEndTime"] = config.ActiveConfig.Live_Active_End
+	d.T["activeDiscount"] = config.ActiveConfig.ActiveDiscount
 	d.Render("/pc/myOrder.html", &d.T)
 	d.Render("/pc/myOrder.html", &d.T)
 	return nil
 	return nil
 }
 }
@@ -263,8 +266,8 @@ func (d *DataExport) QueryOrder() error {
 
 
 			//优惠码
 			//优惠码
 			product_type := util.ObjToString(v["product_type"])
 			product_type := util.ObjToString(v["product_type"])
-			liveActiveStartTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveStartTime"].(string), 10, 64)
-			liveActiveEndTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveEndTime"].(string), 10, 64)
+			liveActiveStartTime := config.ActiveConfig.Live_Active_Start
+			liveActiveEndTime := config.ActiveConfig.Live_Active_End
 			if product_type == "VIP订阅" {
 			if product_type == "VIP订阅" {
 				create_time_str := util.ObjToString(v["create_time"])
 				create_time_str := util.ObjToString(v["create_time"])
 				create_time, _ := time.ParseInLocation(util.Date_Full_Layout, create_time_str, time.Local)
 				create_time, _ := time.ParseInLocation(util.Date_Full_Layout, create_time_str, time.Local)

+ 18 - 10
src/jfw/front/vipsubscribe.go

@@ -9,7 +9,6 @@ import (
 	"net/url"
 	"net/url"
 	"qfw/util"
 	"qfw/util"
 	"qfw/util/redis"
 	"qfw/util/redis"
-	"strconv"
 	"time"
 	"time"
 
 
 	"github.com/go-xweb/xweb"
 	"github.com/go-xweb/xweb"
@@ -64,6 +63,12 @@ func init() {
 	xweb.AddAction(&Subscribepay{})
 	xweb.AddAction(&Subscribepay{})
 }
 }
 
 
+var (
+	liveActiveStartTime = config.ActiveConfig.Live_Active_Start
+	liveActiveEndTime   = config.ActiveConfig.Live_Active_End
+	activeDiscount      = config.ActiveConfig.ActiveDiscount
+)
+
 //推送设置
 //推送设置
 func (s *Subscribepay) ToVIPViewPage() {
 func (s *Subscribepay) ToVIPViewPage() {
 	myopenid := util.ObjToString(s.GetSession("s_m_openid"))
 	myopenid := util.ObjToString(s.GetSession("s_m_openid"))
@@ -115,11 +120,12 @@ func (s *Subscribepay) ToSetInfoTypePage() {
 //订阅设置
 //订阅设置
 func (s *Subscribepay) ToSetPage() {
 func (s *Subscribepay) ToSetPage() {
 	nowTime := time.Now().Unix()
 	nowTime := time.Now().Unix()
-	startTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveStartTime"].(string), 10, 64)
-	endTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveEndTime"].(string), 10, 64)
-	if nowTime >= startTime && nowTime < endTime {
+	if nowTime >= liveActiveStartTime && nowTime < liveActiveEndTime {
 		s.T["isLiveActive"] = true
 		s.T["isLiveActive"] = true
 	}
 	}
+	s.T["liveActiveStartTime"] = liveActiveStartTime
+	s.T["liveActiveEndTime"] = liveActiveEndTime
+	s.T["activeDiscount"] = activeDiscount
 	myopenid := util.ObjToString(s.GetSession("s_m_openid"))
 	myopenid := util.ObjToString(s.GetSession("s_m_openid"))
 	mynickname, _ := s.Session().Get("s_nickname").(string)
 	mynickname, _ := s.Session().Get("s_nickname").(string)
 	myavatar, _ := s.Session().Get("s_avatar").(string)
 	myavatar, _ := s.Session().Get("s_avatar").(string)
@@ -185,9 +191,7 @@ func (s *Subscribepay) Introduce() error {
 		return s.Redirect("/swordfish/about")
 		return s.Redirect("/swordfish/about")
 	}
 	}
 	nowTime := time.Now().Unix()
 	nowTime := time.Now().Unix()
-	startTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveStartTime"].(string), 10, 64)
-	endTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveEndTime"].(string), 10, 64)
-	if nowTime >= startTime && nowTime < endTime {
+	if nowTime >= liveActiveStartTime && nowTime < liveActiveEndTime {
 		s.T["isLiveActive"] = true
 		s.T["isLiveActive"] = true
 	}
 	}
 	obj := util.ObjToMap((*m)["o_vipjy"])
 	obj := util.ObjToMap((*m)["o_vipjy"])
@@ -223,14 +227,15 @@ func (s *Subscribepay) TrialInfo() error {
 func (s *Subscribepay) ToPurchasePage(flag string) {
 func (s *Subscribepay) ToPurchasePage(flag string) {
 	//直播活动
 	//直播活动
 	nowTime := time.Now().Unix()
 	nowTime := time.Now().Unix()
-	startTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveStartTime"].(string), 10, 64)
-	endTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveEndTime"].(string), 10, 64)
-	if nowTime >= startTime && nowTime < endTime {
+	if nowTime >= liveActiveStartTime && nowTime < liveActiveEndTime {
 		s.T["isLiveActive"] = true
 		s.T["isLiveActive"] = true
 		//虚拟人数
 		//虚拟人数
 		buyCount := redis.Get("other", "liveactiveRTB")
 		buyCount := redis.Get("other", "liveactiveRTB")
 		s.T["buyCount"] = buyCount
 		s.T["buyCount"] = buyCount
 	}
 	}
+	s.T["liveActiveStartTime"] = liveActiveStartTime
+	s.T["liveActiveEndTime"] = liveActiveEndTime
+	s.T["activeDiscount"] = activeDiscount
 	if flag == "trial" { //试用
 	if flag == "trial" { //试用
 		s.T["isTrial"] = true
 		s.T["isTrial"] = true
 		s.T["orderType"] = -1
 		s.T["orderType"] = -1
@@ -270,6 +275,9 @@ func (s *Subscribepay) ToPaySuccessPage() {
 //订阅收费支付订单详情页面
 //订阅收费支付订单详情页面
 func (s *Subscribepay) ToOrderDetailPage() {
 func (s *Subscribepay) ToOrderDetailPage() {
 	s.T["signature"] = wx.SignJSSDK(s.Site() + s.Url()) //微信支付准备参数
 	s.T["signature"] = wx.SignJSSDK(s.Site() + s.Url()) //微信支付准备参数
+	s.T["liveActiveStartTime"] = liveActiveStartTime
+	s.T["liveActiveEndTime"] = liveActiveEndTime
+	s.T["activeDiscount"] = activeDiscount
 	s.Render("/weixin/vipsubscribe/vip_order_detail.html")
 	s.Render("/weixin/vipsubscribe/vip_order_detail.html")
 }
 }
 
 

+ 3 - 0
src/jfw/front/wxMyOrder.go

@@ -189,6 +189,9 @@ func (w *WxMyOrder) ToMyWxOrder() error {
 			return errors.New("未登录")
 			return errors.New("未登录")
 		}
 		}
 	}
 	}
+	w.T["liveActiveStartTime"] = config.ActiveConfig.Live_Active_Start
+	w.T["liveActiveEndTime"] = config.ActiveConfig.Live_Active_End
+	w.T["activeDiscount"] = config.ActiveConfig.ActiveDiscount
 	w.T["signature"] = wx.SignJSSDK(w.Site() + w.Url())
 	w.T["signature"] = wx.SignJSSDK(w.Site() + w.Url())
 	myopenid, _ := w.Session().Get("s_m_openid").(string)
 	myopenid, _ := w.Session().Get("s_m_openid").(string)
 	w.T["openid"] = se.EncodeString(myopenid)
 	w.T["openid"] = se.EncodeString(myopenid)

+ 3 - 2
src/jfw/modules/app/src/active_zb.json

@@ -1,9 +1,10 @@
 {
 {
 	"live_Preheat_Start": 1592841600,
 	"live_Preheat_Start": 1592841600,
 	"live_Preheat_End": 1594123200,
 	"live_Preheat_End": 1594123200,
-	"live_Active_Start": 1594123200,
+	"live_Active_Start": 1593739500,
 	"live_Active_End": 1594728000,
 	"live_Active_End": 1594728000,
 	"live_Ing_Start": 159412320,
 	"live_Ing_Start": 159412320,
 	"live_Ing_End": 1594130400,
 	"live_Ing_End": 1594130400,
-	"live_After_Date": 1597413600
+	"live_After_Date": 1597413600,
+	"activeDiscount":0.6
 }
 }

+ 8 - 7
src/jfw/modules/app/src/app/config/active_zb.go

@@ -8,13 +8,14 @@ import (
 var Active_zb active_zb
 var Active_zb active_zb
 
 
 type active_zb struct {
 type active_zb struct {
-	Live_Preheat_Start int64 //预约开始
-	Live_Preheat_End   int64 //预约结束
-	Live_Active_Start  int64 //活动开始
-	Live_Active_End    int64 //活动结束
-	Live_Ing_Start     int64 //直播开始
-	Live_Ing_End       int64 //直播结束
-	Live_After_Date    int64 //直播活动结束后 活动已结束提示时间段(暂定一个月) 一个月后 跳转到VIP介绍页
+	Live_Preheat_Start int64   //预约开始
+	Live_Preheat_End   int64   //预约结束
+	Live_Active_Start  int64   //活动开始
+	Live_Active_End    int64   //活动结束
+	Live_Ing_Start     int64   //直播开始
+	Live_Ing_End       int64   //直播结束
+	Live_After_Date    int64   //直播活动结束后 活动已结束提示时间段(暂定一个月) 一个月后 跳转到VIP介绍页
+	ActiveDiscount     float64 //直播活动折扣
 }
 }
 
 
 func init() {
 func init() {

+ 4 - 1
src/jfw/modules/app/src/app/front/myorder.go

@@ -1,8 +1,8 @@
 package front
 package front
 
 
 import (
 import (
+	appconfig "app/config"
 	"encoding/json"
 	"encoding/json"
-
 	"jfw/public"
 	"jfw/public"
 	"log"
 	"log"
 	"qfw/util"
 	"qfw/util"
@@ -114,6 +114,9 @@ func (m *MyOrder) ToMyOrder() error {
 	if userId == nil || userId == "" {
 	if userId == nil || userId == "" {
 		return m.Redirect("/jyapp/free/login")
 		return m.Redirect("/jyapp/free/login")
 	}
 	}
+	m.T["liveActiveStartTime"] = appconfig.Active_zb.Live_Active_Start
+	m.T["liveActiveEndTime"] = appconfig.Active_zb.Live_Active_End
+	m.T["activeDiscount"] = appconfig.Active_zb.ActiveDiscount
 	return m.Render("/dataExport/dataExport_toMyOrder.html")
 	return m.Render("/dataExport/dataExport_toMyOrder.html")
 }
 }
 
 

+ 20 - 11
src/jfw/modules/app/src/app/front/vipsubscribe.go

@@ -4,11 +4,10 @@ import (
 	appconfig "app/config"
 	appconfig "app/config"
 	. "app/jyutil"
 	. "app/jyutil"
 	"encoding/hex"
 	"encoding/hex"
-	"jfw/config"
 	"jfw/public"
 	"jfw/public"
+	"log"
 	"qfw/util"
 	"qfw/util"
 	"qfw/util/redis"
 	"qfw/util/redis"
-	"strconv"
 	"strings"
 	"strings"
 	"time"
 	"time"
 
 
@@ -53,6 +52,12 @@ func init() {
 	xweb.AddAction(&Subscribepay{})
 	xweb.AddAction(&Subscribepay{})
 }
 }
 
 
+var (
+	liveActiveStartTime = appconfig.Active_zb.Live_Active_Start
+	liveActiveEndTime   = appconfig.Active_zb.Live_Active_End
+	activeDiscount      = appconfig.Active_zb.ActiveDiscount
+)
+
 //推送设置
 //推送设置
 func (s *Subscribepay) ToVIPViewPage() {
 func (s *Subscribepay) ToVIPViewPage() {
 	s.Render("/vipsubscribe/vip_viewPage.html")
 	s.Render("/vipsubscribe/vip_viewPage.html")
@@ -76,11 +81,12 @@ func (s *Subscribepay) ToSetInfoTypePage() {
 //订阅设置
 //订阅设置
 func (s *Subscribepay) ToSetPage() {
 func (s *Subscribepay) ToSetPage() {
 	nowTime := time.Now().Unix()
 	nowTime := time.Now().Unix()
-	startTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveStartTime"].(string), 10, 64)
-	endTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveEndTime"].(string), 10, 64)
-	if nowTime >= startTime && nowTime < endTime {
+	if nowTime >= liveActiveStartTime && nowTime < liveActiveEndTime {
 		s.T["isLiveActive"] = true
 		s.T["isLiveActive"] = true
 	}
 	}
+	s.T["liveActiveStartTime"] = liveActiveStartTime
+	s.T["liveActiveEndTime"] = liveActiveEndTime
+	s.T["activeDiscount"] = activeDiscount
 	s.Render("/vipsubscribe/vip_index_new.html")
 	s.Render("/vipsubscribe/vip_index_new.html")
 }
 }
 
 
@@ -115,9 +121,7 @@ func (s *Subscribepay) Introduce() error {
 		return s.Redirect("/jyapp/login")
 		return s.Redirect("/jyapp/login")
 	}
 	}
 	nowTime := time.Now().Unix()
 	nowTime := time.Now().Unix()
-	startTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveStartTime"].(string), 10, 64)
-	endTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveEndTime"].(string), 10, 64)
-	if nowTime >= startTime && nowTime < endTime {
+	if nowTime >= liveActiveStartTime && nowTime < liveActiveEndTime {
 		s.T["isLiveActive"] = true
 		s.T["isLiveActive"] = true
 	}
 	}
 	if util.IntAll((*m)["i_vip_status"]) > 0 {
 	if util.IntAll((*m)["i_vip_status"]) > 0 {
@@ -153,14 +157,16 @@ func (s *Subscribepay) TrialInfo() error {
 func (s *Subscribepay) ToPurchasePage(flag string) {
 func (s *Subscribepay) ToPurchasePage(flag string) {
 	//直播活动
 	//直播活动
 	nowTime := time.Now().Unix()
 	nowTime := time.Now().Unix()
-	startTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveStartTime"].(string), 10, 64)
-	endTime, _ := strconv.ParseInt(config.Seoconfig["liveActiveEndTime"].(string), 10, 64)
-	if nowTime >= startTime && nowTime < endTime {
+	if nowTime >= liveActiveStartTime && nowTime < liveActiveEndTime {
 		s.T["isLiveActive"] = true
 		s.T["isLiveActive"] = true
 		//虚拟人数
 		//虚拟人数
 		buyCount := redis.Get("other", "liveactiveRTB")
 		buyCount := redis.Get("other", "liveactiveRTB")
 		s.T["buyCount"] = buyCount
 		s.T["buyCount"] = buyCount
 	}
 	}
+	s.T["liveActiveStartTime"] = liveActiveStartTime
+	s.T["liveActiveEndTime"] = liveActiveEndTime
+	s.T["activeDiscount"] = activeDiscount
+	//
 	if flag == "trial" { //试用
 	if flag == "trial" { //试用
 		s.T["isTrial"] = true
 		s.T["isTrial"] = true
 		s.T["orderType"] = -1
 		s.T["orderType"] = -1
@@ -194,6 +200,9 @@ func (s *Subscribepay) ToPaySuccessPage() {
 
 
 //订阅收费支付订单详情页面
 //订阅收费支付订单详情页面
 func (s *Subscribepay) ToOrderDetailPage() {
 func (s *Subscribepay) ToOrderDetailPage() {
+	s.T["liveActiveStartTime"] = liveActiveStartTime
+	s.T["liveActiveEndTime"] = liveActiveEndTime
+	s.T["activeDiscount"] = activeDiscount
 	s.Render("/vipsubscribe/vip_order_detail.html")
 	s.Render("/vipsubscribe/vip_order_detail.html")
 }
 }
 
 

+ 0 - 3
src/jfw/modules/app/src/seo.json

@@ -81,9 +81,6 @@
 	},
 	},
 	"jyDomain":"https://www.jianyu360.com",
 	"jyDomain":"https://www.jianyu360.com",
 	"ZBADDRESS":"https://res.jianyu360.com",
 	"ZBADDRESS":"https://res.jianyu360.com",
-	"liveActiveStartTime": "1592755200",
-	"liveActiveEndTime": "1594051200",
-	"activeDiscount": "0.6",
 	"IosExam":{
 	"IosExam":{
 		"flag":false,
 		"flag":false,
 		"phone":"18613717801",
 		"phone":"18613717801",

+ 2 - 2
src/jfw/modules/app/src/web/templates/dataExport/dataExport_toMyOrder.html

@@ -1853,7 +1853,7 @@
                           +'</a>'
                           +'</a>'
                   listhtml+= '<div class="price">'
                   listhtml+= '<div class="price">'
 									if(isLiveActive){
 									if(isLiveActive){
-                    var activeDiscount = {{Msg "seo" "activeDiscount"}};
+                    var activeDiscount = {{.T.activeDiscount}};
                     var originPrice = (parseFloat(orderMoney_vip) / parseFloat(activeDiscount)).toFixed(2);
                     var originPrice = (parseFloat(orderMoney_vip) / parseFloat(activeDiscount)).toFixed(2);
 										listhtml+= '<span class="origin-price-container">'
 										listhtml+= '<span class="origin-price-container">'
 														+ '<span>原价:¥</span>'
 														+ '<span>原价:¥</span>'
@@ -1892,7 +1892,7 @@
                               +'</a>'
                               +'</a>'
                       listhtml+= '<div class="price">'
                       listhtml+= '<div class="price">'
 											if(isLiveActive){
 											if(isLiveActive){
-                              var activeDiscount = {{Msg "seo" "activeDiscount"}};
+                              var activeDiscount = {{.T.activeDiscount}};
                               var originPrice = (parseFloat(orderMoney_vip) / parseFloat(activeDiscount)).toFixed(2);
                               var originPrice = (parseFloat(orderMoney_vip) / parseFloat(activeDiscount)).toFixed(2);
 												listhtml+= '<span class="origin-price-container">'
 												listhtml+= '<span class="origin-price-container">'
 																+ '<span>原价:¥</span>'
 																+ '<span>原价:¥</span>'

+ 3 - 3
src/jfw/modules/app/src/web/templates/vipsubscribe/vip_index_new.html

@@ -519,9 +519,9 @@
             }
             }
         });
         });
 		var live20200707 = {
 		var live20200707 = {
-			startTime: {{Msg "seo" "liveActiveStartTime"}},
-			endTime: {{Msg "seo" "liveActiveEndTime"}},
-            activeDiscount: {{Msg "seo" "activeDiscount"}}
+			startTime: {{.T.liveActiveStartTime}},
+			endTime: {{.T.liveActiveEndTime}},
+            activeDiscount: {{.T.activeDiscount}}
 		}
 		}
     </script>
     </script>
 	<script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/js/UpgradePrice.js?v={{Msg "seo" "version"}}"></script>
 	<script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/js/UpgradePrice.js?v={{Msg "seo" "version"}}"></script>

+ 3 - 3
src/jfw/modules/app/src/web/templates/vipsubscribe/vip_order_detail.html

@@ -158,9 +158,9 @@
 <script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/local/weui.min.js"></script>
 <script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/local/weui.min.js"></script>
 <script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/js/common.js?v={{Msg "seo" "mod_version"}}"></script>
 <script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/js/common.js?v={{Msg "seo" "mod_version"}}"></script>
 <script>
 <script>
-  var activeDiscount = {{Msg "seo" "activeDiscount"}};
-  var liveActiveStartTime = {{Msg "seo" "liveActiveStartTime"}};
-  var liveActiveEndTime = {{Msg "seo" "liveActiveEndTime"}}
+  var activeDiscount = {{.T.activeDiscount}};
+  var liveActiveStartTime = {{.T.liveActiveStartTime}};
+  var liveActiveEndTime = {{.T.liveActiveEndTime}}
 </script>
 </script>
 <script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/js/vip_order_detail.js?v={{Msg "seo" "version"}}"></script>
 <script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/js/vip_order_detail.js?v={{Msg "seo" "version"}}"></script>
 	{{include "/common/baiducc.html"}}
 	{{include "/common/baiducc.html"}}

+ 3 - 3
src/jfw/modules/app/src/web/templates/vipsubscribe/vip_purchase.html

@@ -563,9 +563,9 @@
                         //var price = getsubVipOrderPrice(this.areaSelect, this.industrySelect, time, this.price);
                         //var price = getsubVipOrderPrice(this.areaSelect, this.industrySelect, time, this.price);
                         var showPrice = formatMoney(price);
                         var showPrice = formatMoney(price);
 						var nowTime = new Date().getTime();
 						var nowTime = new Date().getTime();
-						var startTime = {{Msg "seo" "liveActiveStartTime"}};
-						var endTime = {{Msg "seo" "liveActiveEndTime"}};
-                        var activeDiscount = {{Msg "seo" "activeDiscount"}};
+						var startTime = {{.T.liveActiveStartTime}};
+						var endTime = {{.T.liveActiveEndTime}};
+                        var activeDiscount = {{.T.activeDiscount}};
 						var startTimes = parseInt(startTime)* 1000;
 						var startTimes = parseInt(startTime)* 1000;
 						var endTimes = parseInt(endTime)* 1000;
 						var endTimes = parseInt(endTime)* 1000;
 						var buyCount = {{.T.buyCount}};
 						var buyCount = {{.T.buyCount}};

+ 3 - 3
src/jfw/modules/app/src/web/templates/vipsubscribe/vip_renew.html

@@ -357,9 +357,9 @@
 	        }
 	        }
 	    });
 	    });
 		var live20200707 = {
 		var live20200707 = {
-			startTime: {{Msg "seo" "liveActiveStartTime"}},
-			endTime: {{Msg "seo" "liveActiveEndTime"}},
-            activeDiscount: {{Msg "seo" "activeDiscount"}}
+			startTime: {{.T.liveActiveStartTime}},
+			endTime: {{.T.liveActiveEndTime}},
+		    activeDiscount: {{.T.activeDiscount}}
 		}
 		}
 	</script>
 	</script>
 	<script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/js/vip_renew.js?v={{Msg "seo" "version"}}"></script>
 	<script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/js/vip_renew.js?v={{Msg "seo" "version"}}"></script>

+ 1 - 4
src/seo.json

@@ -478,8 +478,5 @@
         "downloadUrl_win": "http://w2blmjy.qmx.top/res/JianYu for Windows.exe",
         "downloadUrl_win": "http://w2blmjy.qmx.top/res/JianYu for Windows.exe",
         "downloadUrl_mac": "http://w2blmjy.qmx.top/res/JianYu for Mac.dmg"
         "downloadUrl_mac": "http://w2blmjy.qmx.top/res/JianYu for Mac.dmg"
     },
     },
-	"orderCountdown":"72h",
-	"liveActiveStartTime": "1592755200",
-	"liveActiveEndTime": "1594051200",
-	"activeDiscount": "0.6"
+	"orderCountdown":"72h"
 }
 }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 5 - 0
src/web/staticres/course/js/bootstrap copy.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
src/web/staticres/course/js/jquery-2 copy.1.4.min.js


+ 2 - 1
src/web/staticres/course/js/order_detail.js

@@ -96,7 +96,8 @@ $(function () {
                 }
                 }
                 if(d.orderStatus==-2){
                 if(d.orderStatus==-2){
                     //已取消
                     //已取消
-                    $("#status_cancelled").show().removeClass("hide");
+                    $("#status_cancelled").show().removeClass("hide");
+                    $(".o_m_thead").removeClass('greenBg').addClass('qxBg');
                 }
                 }
                 //发票信息不为空
                 //发票信息不为空
                     //申请开发票,到场领取
                     //申请开发票,到场领取

+ 8 - 1
src/web/templates/course/pc/order_detail.html

@@ -34,6 +34,13 @@
 			color: #fff;
 			color: #fff;
 			text-decoration: none;
 			text-decoration: none;
 		}
 		}
+        .qxBg{
+            border-top: 2px solid #999999;
+            background-color: #ececec;
+        }
+        .qxBgFont{
+            color: #999999;
+        }
     </style>
     </style>
 </head>
 </head>
 <body>
 <body>
@@ -59,7 +66,7 @@
                     <span class="greenFont hide" id="status_success">已完成</span>
                     <span class="greenFont hide" id="status_success">已完成</span>
                     <span class="redFont hide" id="status_wait_pay">待付款</span>
                     <span class="redFont hide" id="status_wait_pay">待付款</span>
                     <span class="redFont hide" id="status_verify">转账审核中</span>
                     <span class="redFont hide" id="status_verify">转账审核中</span>
-                    <span class="greenFont hide" id="status_cancelled">已取消</span>
+                    <span class="qxBgFont hide" id="status_cancelled">已取消</span>
                     <span class="redFont hide" id="status_no_transfer_received">未收到转账!</span>
                     <span class="redFont hide" id="status_no_transfer_received">未收到转账!</span>
                     <span class="service_number hide" id="service_num" style="margin-left: 20px" >客服电话:400-108-6670</span>
                     <span class="service_number hide" id="service_num" style="margin-left: 20px" >客服电话:400-108-6670</span>
                     <!-- 当订单状态为待付款时显示去支付 -->
                     <!-- 当订单状态为待付款时显示去支付 -->

+ 9 - 2
src/web/templates/order/pc/datareport/detail.html

@@ -38,6 +38,13 @@
 		    padding-bottom: 0px !important;
 		    padding-bottom: 0px !important;
 		    background-color: #fff;
 		    background-color: #fff;
 		}
 		}
+        .qxBg{
+            border-top: 2px solid #999999;
+            background-color: #ececec;
+        }
+        .qxBgFont{
+            color: #999999;
+        }
     </style>
     </style>
 </head>
 </head>
 <body>
 <body>
@@ -57,7 +64,7 @@
                     <!--greenFont为绿色字体 redFont为红色字体 -->
                     <!--greenFont为绿色字体 redFont为红色字体 -->
                     <span class="greenFont hide" id="status_success">已完成</span>
                     <span class="greenFont hide" id="status_success">已完成</span>
                     <span class="redFont hide" id="status_wait_pay">待付款</span>
                     <span class="redFont hide" id="status_wait_pay">待付款</span>
-                    <span class="greenFont hide" id="status_cancelled">已取消</span>
+                    <span class="qxBgFont hide" id="status_cancelled">已取消</span>
 					
 					
 					<!-- 当状态为已完成时显示开发票 或 查看发票 -->
 					<!-- 当状态为已完成时显示开发票 或 查看发票 -->
 					<a class="go_pay payOrder" style="display: none;">去支付</a>
 					<a class="go_pay payOrder" style="display: none;">去支付</a>
@@ -166,7 +173,7 @@
 						}
 						}
 						if(r.data.orderInfo.state==-2){
 						if(r.data.orderInfo.state==-2){
 							$("#status_cancelled").removeClass("hide");
 							$("#status_cancelled").removeClass("hide");
-							$("#bg").addClass("greenBg").removeClass("redBg");
+							$("#bg").addClass("qxBg").removeClass("greenBg");
 							if (r.data.orderInfo.payMoney){
 							if (r.data.orderInfo.payMoney){
 								$(".pay_money").text("¥"+price+"元");
 								$(".pay_money").text("¥"+price+"元");
 							}else{
 							}else{

+ 10 - 3
src/web/templates/pc/entniche_orderDetail.html

@@ -32,7 +32,14 @@
 		    padding-top: 76px;
 		    padding-top: 76px;
 		    padding-bottom: 0px !important;
 		    padding-bottom: 0px !important;
 		    background-color: #fff;
 		    background-color: #fff;
-		}
+		}
+        .qxBg{
+            border-top: 2px solid #999999;
+            background-color: #ececec;
+        }
+        .qxBgFont{
+            color: #999999;
+        }
     </style>
     </style>
 </head>
 </head>
 <body>
 <body>
@@ -52,7 +59,7 @@
                     <!--greenFont为绿色字体 redFont为红色字体 -->
                     <!--greenFont为绿色字体 redFont为红色字体 -->
                     <span class="greenFont hide" id="status_success">已完成</span>
                     <span class="greenFont hide" id="status_success">已完成</span>
                     <span class="redFont hide" id="status_wait_pay">待付款</span>
                     <span class="redFont hide" id="status_wait_pay">待付款</span>
-                    <span class="greenFont hide" id="status_cancelled">已取消</span>
+                    <span class="qxBgFont hide" id="status_cancelled">已取消</span>
 					
 					
 					<!-- 当状态为已完成时显示开发票 或 查看发票 -->
 					<!-- 当状态为已完成时显示开发票 或 查看发票 -->
 					<a  class="openinvoice go_pay" style="display: none;">开发票</a>
 					<a  class="openinvoice go_pay" style="display: none;">开发票</a>
@@ -151,7 +158,7 @@
 						}
 						}
 						if(r.data.order_status==-2){
 						if(r.data.order_status==-2){
 							$("#status_cancelled").removeClass("hide");
 							$("#status_cancelled").removeClass("hide");
-							$("#bg").addClass("greenBg").removeClass("redBg");
+							$("#bg").addClass("qxBg").removeClass("greenBg");
 						}
 						}
 						if(r.data.order_status==0){
 						if(r.data.order_status==0){
 							$("#status_wait_pay").removeClass("hide");
 							$("#status_wait_pay").removeClass("hide");

+ 2 - 4
src/web/templates/pc/myOrder.html

@@ -202,6 +202,7 @@
 			};
 			};
 			var pageFlag = true;
 			var pageFlag = true;
 			var p = null;
 			var p = null;
+            var activeDiscount = {{.T.activeDiscount}}
 			$(function() {
 			$(function() {
 				selcetIndexNav(6);
 				selcetIndexNav(6);
 				haslogin({{.T.logid}});
 				haslogin({{.T.logid}});
@@ -624,12 +625,9 @@
 								var priceHtml = '<div class="fl m_number '+orderStatusClassOne+'">¥' + FormatNum(orderMoney) + '</div>'
 								var priceHtml = '<div class="fl m_number '+orderStatusClassOne+'">¥' + FormatNum(orderMoney) + '</div>'
 								if(obj.product_type === "VIP订阅"){
 								if(obj.product_type === "VIP订阅"){
 									if(isLiveActive){
 									if(isLiveActive){
-										var originPrice = (parseFloat(orderMoney) / 0.6).toFixed(2);
+										var originPrice = (parseFloat(orderMoney) / parseFloat(activeDiscount)).toFixed(2);
 										priceHtml = '<div style="line-height:106px;" class="fl m_number '+orderStatusClassOne+'"><p style="height:20px;text-decoration:line-through;color:#9B9CA3;">¥' + FormatNum(originPrice) + '</p><p>¥' + FormatNum(orderMoney) + '</p></div>';
 										priceHtml = '<div style="line-height:106px;" class="fl m_number '+orderStatusClassOne+'"><p style="height:20px;text-decoration:line-through;color:#9B9CA3;">¥' + FormatNum(originPrice) + '</p><p>¥' + FormatNum(orderMoney) + '</p></div>';
 									}
 									}
-                                    if(isUsedActiveCode){
-                                        
-                                    }
 								}
 								}
 								temp += '<div class="order_list '+orderStatusClassOne+'">'
 								temp += '<div class="order_list '+orderStatusClassOne+'">'
 										+'<div class="clearfix o_l_top '+orderStatusClassTwo+'">'
 										+'<div class="clearfix o_l_top '+orderStatusClassTwo+'">'

+ 9 - 1
src/web/templates/pc/orderDetail.html

@@ -111,6 +111,13 @@
         border-top: 2px solid #ccc;
         border-top: 2px solid #ccc;
         margin-bottom: 20px;
         margin-bottom: 20px;
         margin-top: 16px;
         margin-top: 16px;
+    }
+    .qxBg{
+        border-top: 2px solid #999999;
+        background-color: #ececec;
+    }
+    .qxBgFont{
+        color: #999999;
     }
     }
     </style>
     </style>
     <script>
     <script>
@@ -142,7 +149,7 @@
                 <!--greenFont为绿色字体 redFont为红色字体 -->
                 <!--greenFont为绿色字体 redFont为红色字体 -->
                 <span class="greenFont" id="status_success" style="display: none;">已完成</span>
                 <span class="greenFont" id="status_success" style="display: none;">已完成</span>
                 <span class="redFont" id="status_wait_pay" style="display: none;">待付款</span>
                 <span class="redFont" id="status_wait_pay" style="display: none;">待付款</span>
-                <span class="greenFont" id="status_cancelled" style="display: none;">已取消</span>
+                <span class="qxBgFont" id="status_cancelled" style="display: none;">已取消</span>
                 
                 
                 <!-- 当状态为已完成时显示开发票 或 查看发票 -->
                 <!-- 当状态为已完成时显示开发票 或 查看发票 -->
 				<a class="go_pay payOrder" style="display: none;">去支付</a>
 				<a class="go_pay payOrder" style="display: none;">去支付</a>
@@ -410,6 +417,7 @@
 			}
 			}
 		}else{
 		}else{
 			$("#status_cancelled").show();
 			$("#status_cancelled").show();
+            $(".o_m_thead").removeClass("greenBg").addClass("qxBg")
 		}
 		}
 		
 		
 		$(".payOrder").on("click", function(){
 		$(".payOrder").on("click", function(){

+ 13 - 6
src/web/templates/pc/vip_orderDetail.html

@@ -32,7 +32,14 @@
 		    padding-top: 76px;
 		    padding-top: 76px;
 		    padding-bottom: 0px !important;
 		    padding-bottom: 0px !important;
 		    background-color: #fff;
 		    background-color: #fff;
-		}
+		}
+        .qxBg{
+            border-top: 2px solid #999999;
+            background-color: #ececec;
+        }
+        .qxBgFont{
+            color: #999999;
+        }
     </style>
     </style>
 </head>
 </head>
 <body>
 <body>
@@ -52,7 +59,7 @@
                     <!--greenFont为绿色字体 redFont为红色字体 -->
                     <!--greenFont为绿色字体 redFont为红色字体 -->
                     <span class="greenFont hide" id="status_success">已完成</span>
                     <span class="greenFont hide" id="status_success">已完成</span>
                     <span class="redFont hide" id="status_wait_pay">待付款</span>
                     <span class="redFont hide" id="status_wait_pay">待付款</span>
-                    <span class="greenFont hide" id="status_cancelled">已取消</span>
+                    <span class="qxBgFont hide" id="status_cancelled">已取消</span>
 					
 					
 					<!-- 当状态为已完成时显示开发票 或 查看发票 -->
 					<!-- 当状态为已完成时显示开发票 或 查看发票 -->
 					<a  class="openinvoice go_pay" style="display: none;">开发票</a>
 					<a  class="openinvoice go_pay" style="display: none;">开发票</a>
@@ -131,12 +138,12 @@
 						if(!r.data.order.isUsedActiveCode){
 						if(!r.data.order.isUsedActiveCode){
 							$(".discount-container").hide();
 							$(".discount-container").hide();
 						}
 						}
-						if(!r.data.order.isLiveActive){
+						// if(!r.data.order.isLiveActive){
 							// $(".origin-price-container").hide();
 							// $(".origin-price-container").hide();
-						}else{
+						// }else{
 							// var originPrice = (r.data.order.original_price/100 / 0.6).toFixed(2);
 							// var originPrice = (r.data.order.original_price/100 / 0.6).toFixed(2);
 							// $(".price-num").text(originPrice);
 							// $(".price-num").text(originPrice);
-						}
+						// }
 						if(r.data.order.order_status==1){
 						if(r.data.order.order_status==1){
 							$("#status_success").removeClass("hide");
 							$("#status_success").removeClass("hide");
 							$(".pay_time_p").css("display","");
 							$(".pay_time_p").css("display","");
@@ -165,7 +172,7 @@
 						}
 						}
 						if(r.data.order.order_status==-2){
 						if(r.data.order.order_status==-2){
 							$("#status_cancelled").removeClass("hide");
 							$("#status_cancelled").removeClass("hide");
-							$("#bg").addClass("greenBg").removeClass("redBg");
+							$("#bg").addClass("qxBg").removeClass("greenBg");
 						}
 						}
 						if(r.data.order.order_status==0){
 						if(r.data.order.order_status==0){
 							$("#status_wait_pay").removeClass("hide");
 							$("#status_wait_pay").removeClass("hide");

+ 3 - 3
src/web/templates/weixin/vipsubscribe/vip_index_new.html

@@ -523,9 +523,9 @@
         }
         }
     });
     });
 	var live20200707 = {
 	var live20200707 = {
-		startTime: {{Msg "seo" "liveActiveStartTime"}},
-		endTime: {{Msg "seo" "liveActiveEndTime"}},
-        activeDiscount: {{Msg "seo" "activeDiscount"}}
+		startTime: {{.T.liveActiveStartTime}},
+		endTime: {{.T.liveActiveEndTime}},
+	    activeDiscount: {{.T.activeDiscount}}
 	}
 	}
     try {
     try {
         var signature = {{.T.signature}};
         var signature = {{.T.signature}};

+ 2 - 2
src/web/templates/weixin/vipsubscribe/vip_order_detail.html

@@ -219,8 +219,8 @@ try{
 	    });
 	    });
     }
     }
     $(".orderCode").text(orderCode);
     $(".orderCode").text(orderCode);
-    var liveActiveStartTime = {{Msg "seo" "liveActiveStartTime"}};
-    var liveActiveEndTime = {{Msg "seo" "liveActiveEndTime"}};
+    var liveActiveStartTime = {{.T.liveActiveStartTime}};
+    var liveActiveEndTime = {{.T.liveActiveEndTime}};
     $DoPost("/subscribepay/orderListDetails/getOrderPayAllMsg",{"orderCode":orderCode},function(r){
     $DoPost("/subscribepay/orderListDetails/getOrderPayAllMsg",{"orderCode":orderCode},function(r){
       $("body").css("visibility","");
       $("body").css("visibility","");
       if(r.success){
       if(r.success){

+ 3 - 3
src/web/templates/weixin/vipsubscribe/vip_purchase.html

@@ -345,9 +345,9 @@
             }
             }
         });
         });
 		var live20200707 = {
 		var live20200707 = {
-			startTime: {{Msg "seo" "liveActiveStartTime"}},
-			endTime: {{Msg "seo" "liveActiveEndTime"}},
-            activeDiscount: {{Msg "seo" "activeDiscount"}}
+			startTime: {{.T.liveActiveStartTime}},
+			endTime: {{.T.liveActiveEndTime}},
+		    activeDiscount: {{.T.activeDiscount}}
 		}
 		}
         //微信支付start
         //微信支付start
         {{if not .T.isTrial }}
         {{if not .T.isTrial }}

+ 3 - 3
src/web/templates/weixin/vipsubscribe/vip_renew.html

@@ -337,9 +337,9 @@
         }
         }
     });
     });
 	var live20200707 = {
 	var live20200707 = {
-		startTime: {{Msg "seo" "liveActiveStartTime"}},
-		endTime: {{Msg "seo" "liveActiveEndTime"}},
-        activeDiscount: {{Msg "seo" "activeDiscount"}}
+		startTime: {{.T.liveActiveStartTime}},
+		endTime: {{.T.liveActiveEndTime}},
+	    activeDiscount: {{.T.activeDiscount}}
 	}
 	}
     try {
     try {
         var signature = {{.T.signature}};
         var signature = {{.T.signature}};

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác