Selaa lähdekoodia

Merge branch 'master' of http://120.78.169.79:3000/xusong_hc/tp3_activity

xiaosongshu007 5 vuotta sitten
vanhempi
commit
2a08310cac

+ 1 - 1
h5v2/lyj_20200519_activity/activity_cfg.htm

@@ -1 +1 @@
-<script type="text/javascript" src="js/activity_basic.js?v=8889"></script>
+<script type="text/javascript" src="js/activity_basic.js?v=10000"></script>

BIN
h5v2/lyj_20200519_activity/img/order_focus.png


BIN
h5v2/lyj_20200519_activity/img/rulePopup.jpg


BIN
h5v2/lyj_20200519_activity/img/xxjnh.jpg


BIN
h5v2/lyj_20200519_activity/img/xxjnh_free.jpg


+ 29 - 14
h5v2/lyj_20200519_activity/index.html

@@ -34,6 +34,22 @@ body{
         })
     }
 
+    // 主题统计
+    function addTongJi(theme_id,fn) {
+        ajax({
+            url:webUrl+"index.php?m=Home&c=ThemeData&a=addData",
+            data:{
+                uid: uid,
+                theme_id: theme_id
+            },
+            success: function (res) {
+                fn && fn(res);
+            },
+            error: function () {
+            }
+        })
+    }
+
     //鉴权
     function authorization(fn) {
         ajax({
@@ -282,8 +298,16 @@ body{
     }
     
     function goCJ(){
-        isLock = true;
-        ajaxWinning(Math.random()>0.5?'complate':'nocomplate');
+        if(remainTimes<=0){
+            if(dudu_is_vip==1 || child_is_vip==1){
+                location.href =  url_prefix + 'cyg.html';
+            }else{
+                location.href =  url_prefix + 'cyg_free.html';
+            }
+        }else{
+            isLock = true;
+            ajaxWinning(Math.random()>0.5?'complate':'nocomplate');
+        }
     }
 
 	function goAction(button){
@@ -296,17 +320,9 @@ body{
         }else if(button.id=='winner'){//我的礼物
             location.href =  url_prefix + 'winnerInfo.html?f='+button.id;
         }else if(button.id=='xxjnh'){//线下嘉年华
-            PageH5.tip('xxjnh');
+            location.href =  url_prefix + 'xxjnh.html?f='+button.id;
         }else if(button.id=='start'){
-            if(remainTimes<=0){
-                if(dudu_is_vip==1 || child_is_vip==1){
-                    location.href =  url_prefix + 'cyg.html';
-                }else{
-                    location.href =  url_prefix + 'cyg_free.html';
-                }
-            }else{
-                goCJ();
-            }
+            goCJ();
         }else if(button.id=='cj0'){//10
            if(checkTime('6/1/2020 10:00:00','6/1/2020 11:00:00')){
                 goCJ();
@@ -353,7 +369,6 @@ body{
 
 	window.onload = function(){
         addUser();
-       
         child_authorization(function(){
             getPrizeNum(function(){
                 init();
@@ -366,7 +381,7 @@ body{
                 }
             });
         });
-
+        addTongJi('3');//注意这里跟活动id可能不一样
 	}
 </script>
 </body>

+ 2 - 1
h5v2/lyj_20200519_activity/winnerInfo.html

@@ -161,7 +161,8 @@ body{
 	function goAction(button){
         if(button.index==0){
             if(phoneFlag==1){
-                PageH5.tip('您已提交过手机号码!');
+                //PageH5.tip('您已提交过手机号码!');
+                location.href =  url_prefix + 'phone.html?prizeImg='+prizeImg;
             }else if(phoneFlag==2){
                 location.href =  url_prefix + 'phone.html?prizeImg='+prizeImg;
             }else{

+ 69 - 0
h5v2/lyj_20200519_activity/xxjnh.html

@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title></title>
+<!--#include virtual="/h5v2/htm2/head.htm" -->
+<style type="text/css">
+</style>
+</head>
+<body>
+
+<div id="buttonDiv"></div>
+
+<!--#include virtual="/h5v2/htm2/foot.htm" -->
+<!--#include virtual="activity_cfg.htm" -->
+<script type="text/javascript">
+    var linkImage = CONFIG.SPACER;//透明图片
+    var buttons = [];//按钮数组
+
+    var act_id = ACTIVITY_CFG.ACT_ID, act_code = ACTIVITY_CFG.ACT_CODE;//活动id及code
+    var is_vips = PageH5.cookie.get('activity_is_vip','0,0');
+    var uid = PageH5.cookie.get('activity_userid','1234567'),
+        dudu_is_vip = parseInt(is_vips.split(',')[0]),
+		child_is_vip = parseInt(is_vips.split(',')[1]);
+		
+	function init(){
+		var html = '';
+		var uid_md5 = '';
+		try{
+			uid_md5 = hex_md5(uid);
+		}catch(e){
+		}
+		if(child_is_vip==1){
+			html+='<div style="position:absolute;left:0px;top:0px;"><img src="img/xxjnh.jpg" width="1280" height="720"/></div>';
+			html+='<div style="position:absolute;left:510px;top:267px;width:370px;height:30px;line-height:30px;text-align:center;font-size:20px;color:red;">'+uid_md5+'</div>';
+			html+='<div style="position:absolute;left:572px;top:645px;"><img id="btn0" src="'+linkImage+'"/></div>';
+			buttons.push({id: 'btn0', action: goAction,left: '',right: '',up: '',down: '',focusImage:'img/back_focus.png'});
+		}else{
+			html+='<div style="position:absolute;left:0px;top:0px;"><img src="img/xxjnh_free.jpg" width="1280" height="720"/></div>';
+			html+='<div style="position:absolute;left:426px;top:613px;"><img id="btn0" src="'+linkImage+'"/></div>';
+			html+='<div style="position:absolute;left:716px;top:613px;"><img id="btn1" src="'+linkImage+'"/></div>';
+			buttons.push({id: 'btn0', action: goAction,left: '',right: 'btn1',up: '',down: '',focusImage:'img/order_focus.png'});
+			buttons.push({id: 'btn1', action: goAction,left: 'btn0',right: '',up: '',down: '',focusImage:'img/back_focus.png'});
+		}
+		G('buttonDiv').innerHTML = html;
+		PageH5.btn.init([PageH5.getParam('f'), 'btn0'], buttons, '', true);
+	}
+
+	function goAction(button){
+		if(button.id=='btn0'){
+			if(child_is_vip==1){
+				back();
+			}else{
+				goMyCommonOrder(ACTIVITY_CFG.CHILD_PRODUCT_ID,back_url+"?childsBag="+uid);
+			}
+		}else{
+			back();
+		}
+	}
+
+	function back(){
+		location.href =  url_prefix + 'index.html?f='+PageH5.getParam('f');
+	}
+
+	window.onload = function(){
+		init();
+	}
+</script>
+</body>
+</html>