chenguoliang 5 gadi atpakaļ
vecāks
revīzija
be97c571a0

+ 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/xxjnh.jpg


BIN
h5v2/lyj_20200519_activity/img/xxjnh_free.jpg


+ 18 - 3
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({
@@ -296,7 +312,7 @@ 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){
@@ -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>

+ 58 - 0
h5v2/lyj_20200519_activity/xxjnh.html

@@ -0,0 +1,58 @@
+<!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 = '<div style="position:absolute;left:0px;top:0px;"><img src="img/'+(child_is_vip==1?"xxjnh":"xxjnh_free")+'.jpg" width="1280" height="720"/></div>';
+		if(child_is_vip==1){
+			html+='<div style="position:absolute;left:510px;top:267px;width:370px;height:30px;line-height:30px;text-align:center;font-size:20px;color:red;">'+hex_md5(uid)+'</div>';
+		}
+		html+='<div style="position:absolute;left:572px;top:645px;"><img id="btn0" src="'+linkImage+'"/></div>';
+		G('buttonDiv').innerHTML = html;
+
+		var obj = {
+				id: 'btn0', action: goAction,
+				left: '',
+				right: '',
+				up: '',
+				down: '',
+				focusImage:'img/back_focus.png'
+		};
+		buttons.push(obj);
+		PageH5.btn.init([PageH5.getParam('f'), 'btn0'], buttons, '', true);
+	}
+
+	function goAction(button){
+		back();
+	}
+
+	function back(){
+		location.href =  url_prefix + 'index.html?f='+PageH5.getParam('f');
+	}
+
+	window.onload = function(){
+		init();
+	}
+</script>
+</body>
+</html>