Browse Source

Merge branch 'dev3.0active' of http://192.168.3.207:10080/qmx/jy into dev3.0active

zhangxinlei1996 4 years ago
parent
commit
a82bda06de

+ 3 - 0
src/active.json

@@ -10,5 +10,8 @@
 	"doubleEleven":{
 		"active_Start":1504505600,
 		"active_End":1605024000
+	},
+	"shortUrl":{
+		"introducePage":"https://www.jianyu360.com/swordfish/SingleLogin?toHref=https%3A%2F%2Fwww.jianyu360.com%2Fswordfish%2FSingleLogin%3FtoHref%3Dhttps%3A%2F%2Fwww.jianyu360.com%2Ffront%2Fvipsubscribe%2FintroducePage&title=%E8%B6%85%E7%BA%A7%E8%AE%A2%E9%98%85"
 	}
 }

+ 10 - 9
src/jfw/config/active.go

@@ -6,15 +6,16 @@ import (
 
 //系统配置
 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介绍页
-	ActiveDiscount     float64       `json:"activeDiscount"`     //直播活动折扣
-	DoubleEleven       *doubleEleven `json:"doubleEleven"`
+	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"`     //直播活动折扣
+	DoubleEleven       *doubleEleven     `json:"doubleEleven"`       //双十一
+	ShortUrl           map[string]string `json:"shortUrl"`           //短地址跳转
 }
 
 //双十一活动

+ 10 - 0
src/jfw/front/singleLogin.go

@@ -20,12 +20,22 @@ import (
 type SingleLogin struct {
 	*xweb.Action
 	singleLogin xweb.Mapper `xweb:"/swordfish/SingleLogin"` //微信登录中转
+	shortUrl    xweb.Mapper `xweb:"/stl/(.*)"`              //短地址跳转
 }
 
 func init() {
 	xweb.AddAction(&SingleLogin{})
 }
 
+//短地址跳转
+func (this *SingleLogin) ShortUrl(key string) error {
+	var redirectUrl = "/swordfish/about"
+	if key != "" && config.ActiveConfig.ShortUrl[key] != "" {
+		redirectUrl = config.ActiveConfig.ShortUrl[key]
+	}
+	return this.Redirect(redirectUrl)
+}
+
 //是否关注处理
 func (this *SingleLogin) SingleLogin() error {
 	userid := qutil.ObjToString(this.GetSession("userId"))

+ 2 - 6
src/jfw/modules/app/src/web/templates/big-member/page_write_infor.html

@@ -158,14 +158,10 @@ $(function(){
     $('.ipt_code').on('blur', function () {
         var workrule = isname(this.value)
         var myreg = /^\s*$/g;
-        if (workrule) {
+        if (this.value != '') {
             isfreesubmit[2] = 'true'
         } else {
-            if (myreg.test(this.value)) {
-                isfreesubmit[2] = 'false'
-            } else {
-                isfreesubmit[2] = 'false'
-            }
+            isfreesubmit[2] = 'false'
         }
         freesubmit()
     })

+ 3 - 3
src/web/templates/big-member/wx/page_open_app_active.html

@@ -113,7 +113,7 @@
                 id="wx-launch-app-btn"
                 appid="appid"
                 class="open-app wx-launch-app-btn"
-                style="display: none;"
+                    style="display: none; min-width: 96px;"
             >
                 <template>
                     <style>
@@ -263,7 +263,7 @@
                     })
                 }, 4500)
             }
-            
+
             if (this.isIos) {
                 if (e) {
                     e.preventDefault()
@@ -358,4 +358,4 @@
 </script>
 {{include "/common/baiducc.html"}}
 </body>
-</html>
+</html>

+ 2 - 6
src/web/templates/big-member/wx/page_write_infor_wx.html

@@ -133,14 +133,10 @@
         $('.ipt_code').on('blur', function () {
             var workrule = isname(this.value)
             var myreg = /^\s*$/g;
-            if (workrule) {
+            if (this.value != '') {
                 isfreesubmit[2] = 'true'
             } else {
-                if (myreg.test(this.value)) {
-                    isfreesubmit[2] = 'false'
-                } else {
-                    isfreesubmit[2] = 'false'
-                }
+                isfreesubmit[2] = 'false'
             }
             freesubmit()
         })