wang 4 yıl önce
ebeveyn
işleme
d50ce8dce5
75 değiştirilmiş dosya ile 1552 ekleme ve 0 silme
  1. 1 0
      h5v2/act_20200708/activity_cfg.htm
  2. 68 0
      h5v2/act_20200708/gift.html
  3. BIN
      h5v2/act_20200708/img/awardPopup.jpg
  4. BIN
      h5v2/act_20200708/img/bg.jpg
  5. BIN
      h5v2/act_20200708/img/btn_back.png
  6. BIN
      h5v2/act_20200708/img/btn_check.png
  7. BIN
      h5v2/act_20200708/img/btn_getPrize.png
  8. BIN
      h5v2/act_20200708/img/btn_medal.png
  9. BIN
      h5v2/act_20200708/img/btn_phoneNum.png
  10. BIN
      h5v2/act_20200708/img/btn_rules.png
  11. BIN
      h5v2/act_20200708/img/btn_submit.png
  12. BIN
      h5v2/act_20200708/img/canPrizePopup.jpg
  13. BIN
      h5v2/act_20200708/img/markdown.jpg
  14. BIN
      h5v2/act_20200708/img/medalPopup.jpg
  15. BIN
      h5v2/act_20200708/img/midea/midea0/0.jpg
  16. BIN
      h5v2/act_20200708/img/midea/midea0/1.jpg
  17. BIN
      h5v2/act_20200708/img/midea/midea0/2.jpg
  18. BIN
      h5v2/act_20200708/img/midea/midea0/3.jpg
  19. BIN
      h5v2/act_20200708/img/midea/midea0/4.jpg
  20. BIN
      h5v2/act_20200708/img/midea/midea1/0.jpg
  21. BIN
      h5v2/act_20200708/img/midea/midea1/1.jpg
  22. BIN
      h5v2/act_20200708/img/midea/midea1/2.jpg
  23. BIN
      h5v2/act_20200708/img/midea/midea1/3.jpg
  24. BIN
      h5v2/act_20200708/img/midea/midea1/4.jpg
  25. BIN
      h5v2/act_20200708/img/midea/midea2/0.jpg
  26. BIN
      h5v2/act_20200708/img/midea/midea2/1.jpg
  27. BIN
      h5v2/act_20200708/img/midea/midea2/2.jpg
  28. BIN
      h5v2/act_20200708/img/midea/midea2/3.jpg
  29. BIN
      h5v2/act_20200708/img/midea/midea2/4.jpg
  30. BIN
      h5v2/act_20200708/img/midea/midea3/0.jpg
  31. BIN
      h5v2/act_20200708/img/midea/midea3/1.jpg
  32. BIN
      h5v2/act_20200708/img/midea/midea3/2.jpg
  33. BIN
      h5v2/act_20200708/img/midea/midea3/3.jpg
  34. BIN
      h5v2/act_20200708/img/midea/midea3/4.jpg
  35. BIN
      h5v2/act_20200708/img/midea/midea4/0.jpg
  36. BIN
      h5v2/act_20200708/img/midea/midea4/1.jpg
  37. BIN
      h5v2/act_20200708/img/midea/midea4/2.jpg
  38. BIN
      h5v2/act_20200708/img/midea/midea4/3.jpg
  39. BIN
      h5v2/act_20200708/img/midea/midea4/4.jpg
  40. BIN
      h5v2/act_20200708/img/noPrizePopup.jpg
  41. BIN
      h5v2/act_20200708/img/novipPopup.jpg
  42. BIN
      h5v2/act_20200708/img/phone.jpg
  43. BIN
      h5v2/act_20200708/img/prizeOverPopup.jpg
  44. BIN
      h5v2/act_20200708/img/prizePopup.jpg
  45. BIN
      h5v2/act_20200708/img/product1.png
  46. BIN
      h5v2/act_20200708/img/product1_has.png
  47. BIN
      h5v2/act_20200708/img/product1_sel.png
  48. BIN
      h5v2/act_20200708/img/product2.png
  49. BIN
      h5v2/act_20200708/img/product2_has.png
  50. BIN
      h5v2/act_20200708/img/product2_sel.png
  51. BIN
      h5v2/act_20200708/img/rulePopup.jpg
  52. BIN
      h5v2/act_20200708/img/test0.png
  53. BIN
      h5v2/act_20200708/img/test1.png
  54. BIN
      h5v2/act_20200708/img/test2.png
  55. BIN
      h5v2/act_20200708/img/test3.png
  56. BIN
      h5v2/act_20200708/img/test4.png
  57. BIN
      h5v2/act_20200708/img/title_0.png
  58. BIN
      h5v2/act_20200708/img/title_0_no.png
  59. BIN
      h5v2/act_20200708/img/title_1.png
  60. BIN
      h5v2/act_20200708/img/title_1_no.png
  61. BIN
      h5v2/act_20200708/img/title_2.png
  62. BIN
      h5v2/act_20200708/img/title_2_no.png
  63. BIN
      h5v2/act_20200708/img/title_3.png
  64. BIN
      h5v2/act_20200708/img/title_3_no.png
  65. BIN
      h5v2/act_20200708/img/title_4.png
  66. BIN
      h5v2/act_20200708/img/title_4_no.png
  67. BIN
      h5v2/act_20200708/img/title_sel.png
  68. 638 0
      h5v2/act_20200708/index.html
  69. 46 0
      h5v2/act_20200708/js/activity_basic.js
  70. 145 0
      h5v2/act_20200708/medalInfo.html
  71. 61 0
      h5v2/act_20200708/noGift.html
  72. 71 0
      h5v2/act_20200708/noPrize.html
  73. 235 0
      h5v2/act_20200708/phone.html
  74. 86 0
      h5v2/act_20200708/prize.html
  75. 201 0
      h5v2/act_20200708/winningInfo.html

+ 1 - 0
h5v2/act_20200708/activity_cfg.htm

@@ -0,0 +1 @@
+<script type="text/javascript" src="js/activity_basic.js?v=8888"></script>

+ 68 - 0
h5v2/act_20200708/gift.html

@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <title>中奖</title>
+    <!--#include virtual="/h5v2/htm2/head.htm" -->
+    <style type="text/css">
+        body {
+            background-image: url(img/prizePopup.jpg);
+        }
+        
+        .btn_focus_btn {
+            border: 3px solid #fff;
+            border-radius: 20px;
+            box-shadow: 0px 0px 10px #3794e2;
+        }
+    </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 dudu_is_vip = PageH5.cookie.get('activity_is_vip');
+        var uid = PageH5.cookie.get('activity_userid');
+
+        var prizeName = unescape(PageH5.cookie.get('activity_prize_name', ''));
+        var prizeImg = PageH5.getParam('prizeImg');
+
+        function init() {
+            var html = '<div style="position:absolute;left:546px;top:278px;"><img src="' + prizeImg + '" width="188" height="189"/></div>'; //奖品图片
+            html += '<div style="position:absolute;left:501px;top:480px;width:280px;height:30px;line-height:30px;text-align:center;font-size:24px;overflow:hidden;color:red;">' + prizeName + '</div>';
+            html += '<div style="position:absolute;left: 580px;top:644px;"><img id="btn" src="./img/btn_back.png"/></div>';
+
+            G('buttonDiv').innerHTML = html;
+
+            buttons.push({
+                id: 'btn',
+                action: back,
+                left: '',
+                right: '',
+                up: '',
+                down: '',
+                focusClass: 'btn',
+            });
+
+            PageH5.btn.init('btn', buttons, '', true);
+        }
+
+        function back() {
+            location.href = './index.html?f=' + PageH5.getParam('f') + '&titleIdx=' + PageH5.getParam('titleIdx');
+        }
+
+        window.onload = function() {
+            init();
+        }
+    </script>
+</body>
+
+</html>

BIN
h5v2/act_20200708/img/awardPopup.jpg


BIN
h5v2/act_20200708/img/bg.jpg


BIN
h5v2/act_20200708/img/btn_back.png


BIN
h5v2/act_20200708/img/btn_check.png


BIN
h5v2/act_20200708/img/btn_getPrize.png


BIN
h5v2/act_20200708/img/btn_medal.png


BIN
h5v2/act_20200708/img/btn_phoneNum.png


BIN
h5v2/act_20200708/img/btn_rules.png


BIN
h5v2/act_20200708/img/btn_submit.png


BIN
h5v2/act_20200708/img/canPrizePopup.jpg


BIN
h5v2/act_20200708/img/markdown.jpg


BIN
h5v2/act_20200708/img/medalPopup.jpg


BIN
h5v2/act_20200708/img/midea/midea0/0.jpg


BIN
h5v2/act_20200708/img/midea/midea0/1.jpg


BIN
h5v2/act_20200708/img/midea/midea0/2.jpg


BIN
h5v2/act_20200708/img/midea/midea0/3.jpg


BIN
h5v2/act_20200708/img/midea/midea0/4.jpg


BIN
h5v2/act_20200708/img/midea/midea1/0.jpg


BIN
h5v2/act_20200708/img/midea/midea1/1.jpg


BIN
h5v2/act_20200708/img/midea/midea1/2.jpg


BIN
h5v2/act_20200708/img/midea/midea1/3.jpg


BIN
h5v2/act_20200708/img/midea/midea1/4.jpg


BIN
h5v2/act_20200708/img/midea/midea2/0.jpg


BIN
h5v2/act_20200708/img/midea/midea2/1.jpg


BIN
h5v2/act_20200708/img/midea/midea2/2.jpg


BIN
h5v2/act_20200708/img/midea/midea2/3.jpg


BIN
h5v2/act_20200708/img/midea/midea2/4.jpg


BIN
h5v2/act_20200708/img/midea/midea3/0.jpg


BIN
h5v2/act_20200708/img/midea/midea3/1.jpg


BIN
h5v2/act_20200708/img/midea/midea3/2.jpg


BIN
h5v2/act_20200708/img/midea/midea3/3.jpg


BIN
h5v2/act_20200708/img/midea/midea3/4.jpg


BIN
h5v2/act_20200708/img/midea/midea4/0.jpg


BIN
h5v2/act_20200708/img/midea/midea4/1.jpg


BIN
h5v2/act_20200708/img/midea/midea4/2.jpg


BIN
h5v2/act_20200708/img/midea/midea4/3.jpg


BIN
h5v2/act_20200708/img/midea/midea4/4.jpg


BIN
h5v2/act_20200708/img/noPrizePopup.jpg


BIN
h5v2/act_20200708/img/novipPopup.jpg


BIN
h5v2/act_20200708/img/phone.jpg


BIN
h5v2/act_20200708/img/prizeOverPopup.jpg


BIN
h5v2/act_20200708/img/prizePopup.jpg


BIN
h5v2/act_20200708/img/product1.png


BIN
h5v2/act_20200708/img/product1_has.png


BIN
h5v2/act_20200708/img/product1_sel.png


BIN
h5v2/act_20200708/img/product2.png


BIN
h5v2/act_20200708/img/product2_has.png


BIN
h5v2/act_20200708/img/product2_sel.png


BIN
h5v2/act_20200708/img/rulePopup.jpg


BIN
h5v2/act_20200708/img/test0.png


BIN
h5v2/act_20200708/img/test1.png


BIN
h5v2/act_20200708/img/test2.png


BIN
h5v2/act_20200708/img/test3.png


BIN
h5v2/act_20200708/img/test4.png


BIN
h5v2/act_20200708/img/title_0.png


BIN
h5v2/act_20200708/img/title_0_no.png


BIN
h5v2/act_20200708/img/title_1.png


BIN
h5v2/act_20200708/img/title_1_no.png


BIN
h5v2/act_20200708/img/title_2.png


BIN
h5v2/act_20200708/img/title_2_no.png


BIN
h5v2/act_20200708/img/title_3.png


BIN
h5v2/act_20200708/img/title_3_no.png


BIN
h5v2/act_20200708/img/title_4.png


BIN
h5v2/act_20200708/img/title_4_no.png


BIN
h5v2/act_20200708/img/title_sel.png


+ 638 - 0
h5v2/act_20200708/index.html

@@ -0,0 +1,638 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <title>陪你学一夏,全能宝贝大比拼</title>
+    <!--#include virtual="/h5v2/htm2/head.htm" -->
+    <style type="text/css">
+        body {
+            width: 1280px;
+            height: 720px;
+            overflow: hidden;
+            background: url(img/bg.jpg) no-repeat 0 0;
+        }
+        
+        .btn_focus_btn {
+            border: 3px solid #fff;
+            border-radius: 20px;
+            box-shadow: 0px 0px 10px #3794e2;
+        }
+        
+        .midea {
+            width: 175px;
+            height: 258px;
+            border: 4px solid #fff8d3;
+            border-radius: 15px;
+            overflow: hidden;
+        }
+        
+        .btn_focus_midea {
+            border: 4px solid #51a546;
+            box-shadow: 0px 0px 10px #3794e2;
+        }
+        
+        .midea_0 {
+            width: 176px;
+            height: 258px;
+            overflow: hidden;
+            position: absolute;
+            left: 123px;
+            top: 394px;
+        }
+        
+        .midea_1 {
+            width: 176px;
+            height: 258px;
+            overflow: hidden;
+            position: absolute;
+            left: 338px;
+            top: 394px;
+        }
+        
+        .midea_2 {
+            width: 176px;
+            height: 258px;
+            overflow: hidden;
+            position: absolute;
+            left: 552px;
+            top: 394px;
+        }
+        
+        .midea_3 {
+            width: 176px;
+            height: 258px;
+            overflow: hidden;
+            position: absolute;
+            left: 767px;
+            top: 394px;
+        }
+        
+        .midea_4 {
+            width: 176px;
+            height: 258px;
+            overflow: hidden;
+            position: absolute;
+            left: 980px;
+            top: 394px;
+        }
+        
+        #mideaGroup img {
+            width: 100%;
+            border-radius: 10px;
+        }
+        
+        div#default_tip_css {
+            position: absolute;
+            left: 340px;
+            top: 325px;
+            padding: 30px 50px;
+            width: 600px;
+            height: 150px;
+            background-color: #4c4a4b;
+            border-radius: 10px;
+            text-align: center;
+            font-size: 36px;
+            color: #ffffff;
+            border: solid 2px #ffffff;
+            margin: auto;
+            z-index: 333;
+            visibility: hidden;
+        }
+    </style>
+</head>
+
+<body>
+
+    <div id="indexDiv"></div>
+    <div id="mideaGroup"></div>
+    <div id="ruleDiv" style="visibility:hidden;"></div>
+
+    <!--#include virtual="/h5v2/htm2/foot.htm" -->
+    <!--#include virtual="activity_cfg.htm" -->
+    <script type="text/javascript">
+        // 记录用户
+        function addUser(fn) {
+            ajax({
+                url: webUrl + "index.php?m=Home&c=DuduApi&a=addUser",
+                data: {
+                    uid: uid,
+                    UserToken: UserToken
+                },
+                success: function(res) {
+                    fn && fn(res);
+                },
+                error: function() {}
+            })
+        }
+
+        // 主题统计
+        function addData(fn) {
+            ajax({
+                url: webUrl + "index.php?m=Home&c=ThemeData&a=addData",
+                data: {
+                    uid: uid,
+                    theme_code: 'looktv'
+                },
+                success: function(res) {
+                    fn && fn(res);
+                },
+                error: function() {}
+            })
+        }
+        //鉴权
+        function authorization(fn) {
+            ajax({
+                url: webUrl + "index.php?m=Home&c=order&a=contentCTCAuth",
+                data: {
+                    contentcode: ACTIVITY_CFG.CONTENT_CODE,
+                    userid: uid, //1.0
+                    uid: uid, //2.0
+                    usertoken: UserToken,
+                    mac: mac,
+                    version: version,
+                    fromsource: fromsource
+                },
+                type: "post",
+                dataType: "json",
+                success: function(res) {
+                    if (res.code == 0) {
+                        if (res.data.result == 0) {
+                            dudu_is_vip = 1;
+                        } else {
+                            dudu_is_vip = 0;
+                        }
+                    } else {
+                        dudu_is_vip = 0;
+                    }
+                    fn && fn();
+                },
+                error: function() {
+                    fn && fn();
+                }
+            })
+        }
+
+        //统计
+        function payResult() {
+            if (dudu_is_vip == 1) {
+                ajax({
+                    url: webUrl + "index.php?m=Home&c=DuduApi&a=payResult",
+                    data: {
+                        uid: uid,
+                        product_id: mid_product_id,
+                        pay_result: 0
+                    },
+                    success: function(res) {},
+                    error: function() {}
+                })
+            }
+        }
+
+        function fullscreenPlay(mid, idx) {
+            idx = idx || 0;
+            var playIntent = {
+                package: "com.hunantv.operator",
+                action: "mangotv://com.hunantv.operator/player/vod",
+                data: "",
+                extras: {
+                    "video_index": idx,
+                    "media_asset_id": mid, //媒资包
+                },
+                flags: []
+            };
+            Webview.sendIntent("startActivity", playIntent);
+        };
+
+
+        function stopPlay() {
+            try {
+                starcorExt.stopVideo();
+            } catch (e) {}
+        }
+        try {
+            starcorExt.setHandler("Resume", function(isResumed) {
+                if (isResumed) { //从全屏或设置键回来
+                }
+            });
+        } catch (e) {}
+        var uid = PageH5.getParam('uid') || '0100834547692768574';
+        var usertoken = "00139025650832263889980824152950"
+        var mac = 'OC-41-E9-DD-EC-DE'
+        var version = "YYS.4.6.15.266.5.HNDX.0.0_Release"
+        try {
+            uid = Webview.readSystemProp('user.id'); //用户ID
+            UserToken = Webview.readSystemProp('user.token'); //用户令牌
+            mac = Webview.readSystemProp('device.mac'); //机顶盒mac地址
+            version = Webview.readSystemProp('app.version'); //APK版本号
+        } catch (e) {}
+        var linkImage = CONFIG.SPACER; //透明图片
+        var buttons = []; //按钮数组
+
+        var act_id = ACTIVITY_CFG.ACT_ID,
+            act_code = ACTIVITY_CFG.ACT_CODE; //活动id及code
+
+        var fromsource = ACTIVITY_CFG.FROM_SOURCE, //来源,电信4,联通5
+            dudu_is_vip = 0, //1是会员,0是非会员
+            mid_product_id = '', //记录订购成功时候用
+            ruleDivIsShow = false, //规则是否展开
+            remainTimes = 0; //游戏剩余次数
+        var prizeImg = ''; //获奖时的图片
+        var isLock = false; //是否锁住按键
+
+        var title_idx = PageH5.getParam('titleIdx') ? PageH5.getParam('titleIdx') : 0; //titleIdx
+        var f = PageH5.getParam('f');
+        if (PageH5.cookie.get('focusMark')) {
+            var focusMark = JSON.parse(PageH5.cookie.get('focusMark'));
+            if (focusMark.title_idx)
+                title_idx = focusMark.title_idx;
+            if (focusMark.focus)
+                f = focusMark.focus;
+            PageH5.cookie.set('focusMark', '');
+        }
+
+        var midea = [
+            [{ //语言
+                'name': '可爱巧虎岛 第五季',
+                'img': '',
+                'id': '00000001000000000048000000082109',
+            }, {
+                'name': '小猪佩奇 全集',
+                'img': '',
+                'id': '00000001000000000043000000296717',
+            }, {
+                'name': '超级宝贝JOJO',
+                'img': '',
+                'id': '00000001000000000025000000333852',
+            }, {
+                'name': '我的汤姆猫短片',
+                'img': '',
+                'id': '00000001000000000014000000323353',
+            }, {
+                'name': '海绵宝宝 第九季',
+                'img': '',
+                'id': '00000001000000000030000000345063',
+            }],
+            [{ //国学
+                'name': '宝宝巴士之奇妙汉字 第一季',
+                'img': '',
+                'id': '00000001000000000043000000266913',
+            }, {
+                'name': '贝乐虎古诗',
+                'img': '',
+                'id': '00000001000000000031000000254351',
+            }, {
+                'name': '贝乐虎三字经',
+                'img': '',
+                'id': '00000001000000000015000000381334',
+            }, {
+                'name': '猫小帅古诗',
+                'img': '',
+                'id': '00000001000000000028000000271453',
+            }, {
+                'name': '兔小贝成语学堂',
+                'img': '',
+                'id': '00000001000000000032000000022865',
+            }],
+            [{ //才艺
+                'name': '超级飞侠唱儿歌',
+                'img': '',
+                'id': '00000001000000000032000000022701',
+            }, {
+                'name': '超级飞侠画世界',
+                'img': '',
+                'id': '00000001000000000036000000264704',
+            }, {
+                'name': '超级飞侠彩笔画 第二季',
+                'img': '',
+                'id': '00000001000000000040000000325516',
+            }, {
+                'name': '小鸡彩虹舞台秀第六季',
+                'img': '',
+                'id': '00000001000000000037000000327175',
+            }, {
+                'name': '芭比之梦想豪宅全集',
+                'img': '',
+                'id': '00000001000000000002000000074481',
+            }],
+            [{ //巧手
+                'name': '小伶玩具',
+                'img': '',
+                'id': '00000001000000000007000000166844',
+            }, {
+                'name': '和小鹿问问一起做手工',
+                'img': '',
+                'id': '00000001000000000047000000295791',
+            }, {
+                'name': '和迷你卡车学习',
+                'img': '',
+                'id': '00000001000000000045000000170689',
+            }, {
+                'name': '阿哦玩具',
+                'img': '',
+                'id': '00000001000000000038000000446889',
+            }, {
+                'name': '超级飞侠欢乐玩粘土',
+                'img': '',
+                'id': '00000001000000000003000000092944',
+            }],
+            [{ //科学
+                'name': '猪猪侠之恐龙日记 第二季',
+                'img': '',
+                'id': '00000001000000000025000000316080',
+            }, {
+                'name': '汪汪队立大功之百科知识',
+                'img': '',
+                'id': '00000001000000000014000000236195',
+            }, {
+                'name': '百变马丁 第六季',
+                'img': '',
+                'id': '00000001000000000032000000375988',
+            }, {
+                'name': '阿U学科学 第二季',
+                'img': '',
+                'id': '00000001000000000007000000081017',
+            }, {
+                'name': '超级飞侠大百科 第一季',
+                'img': '',
+                'id': '00000000000000000001000000001002',
+            }]
+        ]
+
+        var typeArr = ['gx', 'yy', 'cy', 'ds', 'kx'];
+
+        PageH5.eventHandler = function(keyCode) {
+            if (keyCode == KEY_LEFT && (!isLock)) {
+                PageH5.Button.move('left');
+            } else if (keyCode == KEY_RIGHT && (!isLock)) {
+                PageH5.Button.move('right');
+            } else if (keyCode == KEY_UP && (!isLock)) {
+                PageH5.Button.move('up');
+            } else if (keyCode == KEY_DOWN && (!isLock)) {
+                PageH5.Button.move('down');
+            } else if (keyCode == KEY_ENTER && (!isLock)) {
+                PageH5.Button.click();
+            } else if ((keyCode == KEY_BACK || keyCode == KEY_EXIT) && (!isLock)) {
+                back();
+            }
+        }
+
+        function init() {
+            PageH5.cookie.set('activity_userid', uid);
+            PageH5.cookie.set('activity_is_vip', dudu_is_vip);
+
+            var html = '';
+            html += '<div style="position:absolute;left:1110px;top:18px;"><img id="back" src="./img/btn_back.png"/></div>';
+            html += '<div style="position:absolute;left:1110px;top:62px;"><img id="rule" src="./img/btn_rules.png"/></div>';
+            html += '<div style="position:absolute;left:1110px;top:106px;"><img id="medal" src="./img/btn_medal.png"/></div>';
+            html += '<div style="position:absolute;left:1110px;top:150px;"><img id="check" src="./img/btn_check.png"/></div>';
+
+            html += '<div style="position:absolute;left:114px;top:220px;"><img src="./img/title_0.png"/></div>';
+            html += '<div style="position:absolute;left:324px;top:220px;"><img src="./img/title_1.png"/></div>';
+            html += '<div style="position:absolute;left:538px;top:220px;"><img src="./img/title_2.png"/></div>';
+            html += '<div style="position:absolute;left:748px;top:220px;"><img src="./img/title_3.png"/></div>';
+            html += '<div style="position:absolute;left:960px;top:220px;"><img src="./img/title_4.png"/></div>';
+
+            html += '<div style="position:absolute;left:110px;top:216px;"><img id="title_0" src="' + linkImage + '"/></div>';
+            html += '<div style="position:absolute;left:320px;top:216px;"><img id="title_1" src="' + linkImage + '"/></div>';
+            html += '<div style="position:absolute;left:534px;top:216px;"><img id="title_2" src="' + linkImage + '"/></div>';
+            html += '<div style="position:absolute;left:744px;top:216px;"><img id="title_3" src="' + linkImage + '"/></div>';
+            html += '<div style="position:absolute;left:956px;top:216px;"><img id="title_4" src="' + linkImage + '"/></div>';
+
+            html += '<div class="midea" style="position:absolute;left:120px;top:390px;" id="midea0"></div>';
+            html += '<div class="midea" style="position:absolute;left:335px;top:390px;" id="midea1"></div>';
+            html += '<div class="midea" style="position:absolute;left:549px;top:390px;" id="midea2"></div>';
+            html += '<div class="midea" style="position:absolute;left:764px;top:390px;" id="midea3"></div>';
+            html += '<div class="midea" style="position:absolute;left:977px;top:390px;" id="midea4"></div>';
+            G('indexDiv').innerHTML = html;
+
+            var ruleDivHTML = '<div style="position:absolute;left:0px;top:0px;"><img src="img/rulePopup.jpg" width="1280" height="720"/></div>';
+            ruleDivHTML += '<div style="position:absolute;left:572px;top:645px;"><img id="guize_btn" src="./img/btn_back.png"/></div>';
+            G('ruleDiv').innerHTML = ruleDivHTML;
+
+
+            var guizeBtn = {
+                id: 'guize_btn',
+                action: goGuizeBtn,
+                left: '',
+                right: '',
+                up: '',
+                down: '',
+                focusClass: 'btn',
+            };
+            buttons.push(guizeBtn);
+
+            buttons.push({
+                id: 'back',
+                action: goAction,
+                left: 'start',
+                right: '',
+                up: '',
+                down: 'rule',
+                focusClass: 'btn'
+            });
+            buttons.push({
+                id: 'rule',
+                action: goAction,
+                left: 'start',
+                right: '',
+                up: 'back',
+                down: 'medal',
+                focusClass: 'btn'
+            });
+            buttons.push({
+                id: 'medal',
+                action: goAction,
+                left: '',
+                right: '',
+                up: 'rule',
+                down: 'check',
+                focusClass: 'btn'
+            });
+            buttons.push({
+                id: 'check',
+                action: goAction,
+                left: '',
+                right: '',
+                up: 'medal',
+                down: '',
+                focusClass: 'btn',
+                beforeMove: upBeforeMove,
+            });
+
+            for (var i = 0; i < 5; i++) {
+                var obj = {
+                    id: 'title_' + i,
+                    index: i,
+                    right: 'title_' + (i < 4 ? (i + 1) : i),
+                    left: 'title_' + (i > 0 ? (i - 1) : i),
+                    up: 'check',
+                    down: 'midea' + i,
+                    focusHandler: tab,
+                    blurHandler: mark,
+                    focusImage: './img/title_sel.png'
+                };
+                buttons.push(obj);
+            }
+
+            for (var i = 0; i < 5; i++) {
+                var obj = {
+                    id: 'midea' + i,
+                    action: goAction,
+                    index: i,
+                    right: 'midea' + (i < 4 ? (i + 1) : i),
+                    left: 'midea' + (i > 0 ? (i - 1) : i),
+                    up: '',
+                    down: '',
+                    focusClass: 'midea',
+                    beforeMove: upBeforeMove,
+                };
+                buttons.push(obj);
+            }
+
+
+            if (location.search.indexOf('haochuanBag') >= 0) {} else if (location.search.indexOf('childsBag') >= 0) {}
+            PageH5.btn.init([f, 'title_0'], buttons, '', false);
+            PageH5.cookie.del('activity_prize_name');
+        }
+
+        function mark(button) {
+            title_idx = button.index;
+        }
+
+        function upBeforeMove(dir, current) {
+            if ("down" === dir && current.id == "check") {
+                PageH5.btn.set('title_' + title_idx);
+                return false;
+            } else if ("up" === dir && current.id.indexOf('midea') >= 0) {
+                PageH5.btn.set('title_' + title_idx);
+                return false;
+            }
+        }
+
+        function tab(button) {
+            var midea = document.getElementsByClassName('midea');
+            var _html = '';
+            for (var i = 0; i < midea.length; i++) {
+                _html += '<div class="midea_' + i + '"><img src="./img/midea/midea' + button.index + '/' + i + '.jpg" /></div>';
+            }
+            G('mideaGroup').innerHTML = _html;
+        }
+
+        function ajaxWinning(type, status, idx, focusId) {
+            ajax({
+                url: webUrl + "index.php?c=Home&c=Activityv2&a=collect",
+                data: {
+                    uid: uid,
+                    act_code: act_id,
+                    type: type,
+                    is_vip: dudu_is_vip,
+                    run: status,
+                },
+                success: function(res) {
+                    if (res.code == 0) {
+                        goResult('yes', idx, focusId);
+                    } else {
+                        goResult('no', idx, focusId);
+                    }
+
+                },
+                error: function() {
+                    goUnusual();
+                }
+            })
+        }
+
+        function goResult(result, idx, focusId) {
+            if (result == 'yes') {
+                location.href = './gift.html?prizeImg=./img/title_' + idx + '.png&f=' + focusId + '&titleIdx=' + idx;
+            } else {
+                location.href = './noGift.html?f=' + focusId + '&titleIdx=' + idx;
+            }
+        }
+
+        function goUnusual() {
+            location.href = './index.html';
+        }
+
+
+        function goAction(button) {
+            if (button.id == 'back') { //返回
+                back();
+            } else if (button.id == 'rule') { //活动规则
+                S('ruleDiv');
+                ruleDivIsShow = true;
+                PageH5.btn.set('guize_btn');
+            } else if (button.id == 'medal') { //我的勋章
+                location.href = './medalInfo.html?f=' + button.id;
+            } else if (button.id == 'check') { //我的勋章
+                location.href = './winningInfo.html?f=' + button.id;
+            } else if (button.id.indexOf('midea') >= 0) { //内容
+                if (dudu_is_vip == 1) {
+                    setInterval(function() {
+                        ajaxWinning(typeArr[title_idx], 'uncomplate', title_idx, button.id);
+                    }, 10000)
+                    fullscreenPlay(midea[title_idx][button.index].id);
+                } else {
+                    PageH5.tip('需要订购“少儿包”,才能观看此内容噢!正在跳转订购,请稍等……', 4);
+                    setTimeout(function() {
+                        order(button.id)
+                    }, 4000)
+                }
+            }
+        }
+
+        function order(focusId) {
+            PageH5.cookie.set('focusMark', JSON.stringify({
+                'focus': focusId,
+                'title_idx': title_idx
+            }));
+            goMyCommonOrder(webUrl + 'h5v2/' + ACTIVITY_CFG.ACT_CODE + '/index.html?haochuanBag=' + uid)
+        }
+
+        function goGuizeBtn(button) {
+            H('ruleDiv');
+            ruleDivIsShow = false;
+            PageH5.btn.set('rule');
+        }
+
+        function back() {
+            if (ruleDivIsShow) {
+                goGuizeBtn(PageH5.btn.get('guize_btn'));
+            } else {
+                var url = ''; // 优先获取url上携带的返回地址
+                var backUrl2 = PageH5.getParam('returnUrl');
+                if (backUrl2 && backUrl2 != 'undefined' && backUrl2 != 'null') {
+                    url = backUrl2;
+                } else {
+                    Webview.closeBrwoser("返回");
+                    // url = CONFIG.CONTEXT_PATH + 'h5v2/index.html?Activity=' + act_id;
+                }
+                location.href = url;
+            }
+        }
+
+        window.onload = function() {
+            if (!PageH5.getParam('f')) {
+                addUser();
+                addData();
+            }
+            authorization(function() {
+                init();
+                var midea = document.getElementsByClassName('midea');
+                var _html = '';
+                for (var i = 0; i < midea.length; i++) {
+                    _html += '<div class="midea_' + i + '"><img src="./img/midea/midea' + title_idx + '/' + i + '.jpg" /></div>';
+                }
+                G('mideaGroup').innerHTML = _html;
+                if (location.search.indexOf('haochuanBag') >= 0) {
+                    mid_product_id = ACTIVITY_CFG.PRODUCT_ID;
+                    payResult();
+                }
+            })
+
+
+        }
+    </script>
+</body>
+
+</html>

+ 46 - 0
h5v2/act_20200708/js/activity_basic.js

@@ -0,0 +1,46 @@
+/** 活动配置 */
+var ACTIVITY_CFG = {
+    ACT_ID: 'looktv',
+    ACT_CODE: 'act_20200708',
+    CONTENT_CODE: '', //这里是嘟嘟,暂时无
+    CHILD_CONTENT_CODE: '00000001000000000018000000431421',
+    PRODUCT_ID: '', //这里是嘟嘟,暂时无
+    CHILD_PRODUCT_ID: '8801000638', //少儿29元
+    // CHILD_PRODUCT_ID2: '8801000079', //少儿25元
+    FROM_SOURCE: '15'
+}
+
+function goMyCommonOrder(orderBack) {
+    var version = ''; //备用
+    try {
+        version = Webview.readSystemProp('app.version'); //APK版本号
+    } catch (e) {}
+    var product_list = {
+        "product_id": CHILD_PRODUCT_ID,
+        "video_name": "",
+        "video_type": "",
+        "product_type": "2",
+        "cat_id": "",
+        "channel_id": ""
+    }
+    window.location.href = "https://hnydorder.yys.mgtv.com:8080/v2.0_new/order/index.html?product_list=" + JSON.stringify(product_list) + "&exitStr=" + escape(orderBack);
+}
+
+var webUrl = window.location.origin + '/';
+
+var back_url = webUrl + 'h5v2/' + ACTIVITY_CFG.ACT_CODE + '/index.html'; //活动主页面带http前缀
+var url_prefix = CONFIG.CONTEXT_PATH + ACTIVITY_CFG.ACT_CODE + '/'; //活动内跳转前缀
+
+/** 内容外链 */
+// function goContent(index, backUrl) {
+//     var exitStr = escape(backUrl);
+//     var url = '';
+//     if (index == 0) {
+
+//     } else if (index == 1) {
+
+//     } else if (index == 2) {
+
+//     }
+//     window.location.href = url;
+// }

+ 145 - 0
h5v2/act_20200708/medalInfo.html

@@ -0,0 +1,145 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <title>我的勋章</title>
+    <!--#include virtual="/h5v2/htm2/head.htm" -->
+    <style type="text/css">
+        body {
+            background-image: url(img/medalPopup.jpg);
+        }
+        
+        .btn_focus_btn {
+            border: 3px solid #fff;
+            border-radius: 20px;
+            box-shadow: 0px 0px 10px #3794e2;
+        }
+    </style>
+</head>
+
+<body>
+    <div id="medalDiv"></div>
+    <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 prize; //奖品信息
+        var phoneFlag = 0; //0表示未中奖,1表示中奖留了号码,2表示中奖没留号码
+        var prizeImg = ''; //奖品图片
+        var prizeCount = 0;
+        var dataJson = [];
+
+        var act_id = ACTIVITY_CFG.ACT_ID,
+            act_code = ACTIVITY_CFG.ACT_CODE; //活动id及code
+        var dudu_is_vip = PageH5.cookie.get('activity_is_vip');
+        var uid = PageH5.cookie.get('activity_userid');
+
+        function init() {
+
+            var html = '';
+            html += '<div style="position:absolute;left:421px;top:644px;"><img id="btn0" src="./img/btn_back.png"/></div>';
+            html += '<div style="position:absolute;left:711px;top:644px;"><img id="btn1" src="./img/btn_getPrize.png"/></div>';
+
+            G('buttonDiv').innerHTML = html;
+
+            var _html = "";
+            _html += '<div style="position:absolute;left:410px;top:210px;"><img id="title_0" src="./img/title_0_no.png"/></div>';
+            _html += '<div style="position:absolute;left:660px;top:210px;"><img id="title_1" src="./img/title_1_no.png"/></div>';
+            _html += '<div style="position:absolute;left:290px;top:390px;"><img id="title_2" src="./img/title_2_no.png"/></div>';
+            _html += '<div style="position:absolute;left:535px;top:390px;"><img id="title_3" src="./img/title_3_no.png"/></div>';
+            _html += '<div style="position:absolute;left:780px;top:390px;"><img id="title_4" src="./img/title_4_no.png"/></div>';
+            G('medalDiv').innerHTML = _html;
+
+            for (var i = 0; i < 2; i++) {
+                var obj = {
+                    id: 'btn' + i,
+                    action: goAction,
+                    index: i,
+                    left: 'btn' + (i - 1),
+                    right: 'btn' + (i + 1),
+                    up: '',
+                    down: '',
+                    focusClass: 'btn',
+                };
+                buttons.push(obj);
+            }
+            PageH5.btn.init('btn1', buttons, '', true);
+        }
+
+        function goAction(button) {
+            if (button.index == 1) {
+                if (phoneFlag == 1) {
+                    ajax({
+                        url: webUrl + "index.php?m=Home&c=Activityv2&a=prize",
+                        data: {
+                            uid: uid,
+                            act_code: act_id,
+                            is_vip: dudu_is_vip,
+                            run: 'complate',
+                        },
+                        success: function(res) {
+                            if (res.code == 0) {
+                                if (res.data.yes.prize_status == "none") { //没中奖
+                                } else if (res.data.yes.prize_status == "real") { //中实物
+                                    location.href = './prize.html?from=medalInfo';
+                                } else if (res.data.yes.prize_status == "vitual") { //虚拟
+                                    location.href = './noPrize.html?from=medalInfo';
+                                }
+                            } else {
+                                PageH5.tip(res.msg);
+                                // back()
+                            }
+                        },
+                        error: function() {
+                            // back()
+                        }
+                    })
+                } else {
+                    PageH5.tip('您还集齐5个勋章,继续加油噢!');
+                }
+            } else if (button.index == 0) {
+                back();
+            }
+        }
+
+        function back() {
+            location.href = './index.html?f=medal';
+        }
+
+        function getUserCollects(fn) {
+            ajax({
+                url: webUrl + "index.php?c=Home&c=Activityv2&a=getUserCollects",
+                data: {
+                    uid: uid,
+                    act_code: act_id,
+                    is_vip: dudu_is_vip
+                },
+                success: function(res) {
+                    if (res.code == 0) {
+                        for (var i = 0; i < res.data.collect.length; i++) {
+                            if (res.data.collect[i].num > 0)
+                                G('title_' + (res.data.collect[i].collect_id * 1 - 1)).src = './img/title_' + (res.data.collect[i].collect_id * 1 - 1) + '.png'
+                        }
+                        if (res.data.complate.length > 0) {
+                            phoneFlag = 1;
+                        } else {
+                            phoneFlag = 2;
+                        }
+
+                    }
+                    fn && fn(res);
+                }
+            })
+        }
+
+        window.onload = function() {
+            init();
+            getUserCollects()
+        }
+    </script>
+</body>
+
+</html>

+ 61 - 0
h5v2/act_20200708/noGift.html

@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <title>不中奖</title>
+    <!--#include virtual="/h5v2/htm2/head.htm" -->
+    <style type="text/css">
+        body {
+            background-image: url(img/noPrizePopup.jpg);
+        }
+        
+        .btn_focus_btn {
+            border: 3px solid #fff;
+            border-radius: 20px;
+            box-shadow: 0px 0px 10px #3794e2;
+        }
+    </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 dudu_is_vip = PageH5.cookie.get('activity_is_vip');
+        var uid = PageH5.cookie.get('activity_userid');
+
+        function init() {
+            var html = '';
+            html += '<div style="position:absolute;left: 580px;top:644px;"><img id="btn" src="./img/btn_back.png"/></div>';
+            G('buttonDiv').innerHTML = html;
+
+            buttons.push({
+                id: 'btn',
+                action: back,
+                left: '',
+                right: '',
+                up: '',
+                down: '',
+                focusClass: 'btn',
+            });
+            PageH5.btn.init('btn', buttons, '', true);
+        }
+
+        function back() {
+            location.href = './index.html?f=' + PageH5.getParam('f') + '&titleIdx=' + PageH5.getParam('titleIdx');
+        }
+
+        window.onload = function() {
+            init();
+        }
+    </script>
+</body>
+
+</html>

+ 71 - 0
h5v2/act_20200708/noPrize.html

@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <title>奖品已发放完</title>
+    <!--#include virtual="/h5v2/htm2/head.htm" -->
+    <style type="text/css">
+        body {
+            background-image: url(img/prizeOverPopup.jpg);
+        }
+        
+        .btn_focus_btn {
+            border: 3px solid #fff;
+            border-radius: 20px;
+            box-shadow: 0px 0px 10px #3794e2;
+        }
+    </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 dudu_is_vip = PageH5.cookie.get('activity_is_vip');
+        var uid = PageH5.cookie.get('activity_userid');
+
+        function init() {
+            var html = '';
+            html += '<div style="position:absolute;left: 580px;top:644px;"><img id="btn" src="./img/btn_back.png"/></div>';
+            G('buttonDiv').innerHTML = html;
+
+            buttons.push({
+                id: 'btn',
+                action: back,
+                left: '',
+                right: '',
+                up: '',
+                down: '',
+                focusClass: 'btn',
+            });
+            PageH5.btn.init('btn', buttons, '', true);
+        }
+
+        function back() {
+            if (PageH5.getParam('from') == 'winningInfo') {
+                location.href = './winningInfo.html';
+            } else if (PageH5.getParam('from') == 'medalInfo') {
+                location.href = './medalInfo.html';
+            } else {
+                location.href = './index.html';
+            }
+        }
+
+        // function back() {
+        //     location.href = './index.html?f=' + PageH5.getParam('f') + '&titleIdx=' + PageH5.getParam('titleIdx');
+        // }
+
+        window.onload = function() {
+            init();
+        }
+    </script>
+</body>
+
+</html>

+ 235 - 0
h5v2/act_20200708/phone.html

@@ -0,0 +1,235 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <title>兑奖页面</title>
+    <!--#include virtual="/h5v2/htm2/head.htm" -->
+    <style type="text/css">
+        body {
+            background-image: url(img/phone.jpg);
+        }
+        
+        .phoneNum {
+            float: left;
+            font-size: 20px;
+            color: #392316;
+            font-weight: bold;
+            width: 60px;
+            height: 60px;
+            text-align: center;
+            line-height: 60px;
+            border: 3px solid transparent;
+            margin-right: 2px;
+            margin-bottom: 2px;
+            border: 3px solid #ffb727;
+        }
+        
+        .btn_focus_btn {
+            border: 3px solid #ffffff;
+            border-radius: 5px;
+        }
+        
+        .btn_focus_btn1 {
+            border: 3px solid #ffffff;
+            border-radius: 20px;
+            box-shadow: 0px 0px 10px #3794e2;
+        }
+    </style>
+</head>
+
+<body>
+
+    <div id="buttonDiv"></div>
+    <div id="phoneRightDiv" style="visibility:hidden;"></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 dudu_is_vip = PageH5.cookie.get('activity_is_vip');
+        var uid = PageH5.cookie.get('activity_userid');
+
+        var prizeImg = PageH5.getParam('prizeImg');
+        var pnFocus = false,
+            pn = '';
+
+        var myKeys = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'd', 'c'];
+        PageH5.eventHandler = function(keyCode) {
+            if (keyCode == KEY_LEFT) {
+                PageH5.Button.move('left');
+            } else if (keyCode == KEY_RIGHT) {
+                PageH5.Button.move('right');
+            } else if (keyCode == KEY_UP) {
+                PageH5.Button.move('up');
+            } else if (keyCode == KEY_DOWN) {
+                PageH5.Button.move('down');
+            } else if (keyCode == KEY_ENTER) {
+                PageH5.Button.click();
+            } else if (keyCode == KEY_BACK || keyCode == KEY_EXIT) {
+                back();
+            } else if (pnFocus) {
+                if (G('pn').innerText.length < 11) {
+                    if (keyCode == KEY_0) {
+                        pn += '0';
+                    } else if (keyCode == KEY_1) {
+                        pn += '1';
+                    } else if (keyCode == KEY_2) {
+                        pn += '2';
+                    } else if (keyCode == KEY_3) {
+                        pn += '3';
+                    } else if (keyCode == KEY_4) {
+                        pn += '4';
+                    } else if (keyCode == KEY_5) {
+                        pn += '5';
+                    } else if (keyCode == KEY_6) {
+                        pn += '6';
+                    } else if (keyCode == KEY_7) {
+                        pn += '7';
+                    } else if (keyCode == KEY_8) {
+                        pn += '8';
+                    } else if (keyCode == KEY_9) {
+                        pn += '9';
+                    } else if (keyCode == KEY_BACK || keyCode == KEY_EXIT) {
+                        pn = pn.substring(0, pn.length - 1);
+                    }
+                    G('pn').innerHTML = pn;
+                }
+            }
+        }
+
+        function init() {
+            var html = '';
+            html += '<div style="position:absolute;left: 736px;top:247px;z-index:1;border-radius: 13px;width: 288px;height:34px;" id="pnBorder"></div>';
+            html += '<div id="pn" style="position:absolute;left: 736px;top: 248px;width: 290px;height: 34px;line-height:30px;text-align:center;font-size:30px;overflow: hidden;color:color: #513b27;border: 2px solid #feb728;border-radius: 12px;"></div>';
+
+            for (var i = 0; i < myKeys.length; i++) {
+                html += '<div class="phoneNum" id="key_' + i + '" style="position:absolute;left:' + (738 + (i % 4) * 75) + 'px;top:' + (i < 4 ? 315 : i >= 4 && i < 8 ? 385 : 455) + 'px;">' + (i > 10 ? '清空' : i == 10 ? '删除' : i == 9 ? 0 : (i + 1)) + '</div>';
+                var obj = {
+                    id: 'key_' + i,
+                    action: goKey,
+                    index: i,
+                    left: 'key_' + (i - 1),
+                    right: 'key_' + (i + 1),
+                    up: ['key_' + (i - 4), 'pnBorder'],
+                    down: ['key_' + (i + 4), 'submit'],
+                    focusClass: 'btn',
+                };
+                buttons.push(obj);
+            }
+            html += '<div style="position:absolute;left:400px;top:640px;"><img id="back" src="img/btn_back.png"/></div>';
+            html += '<div style="position:absolute;left:770px;top:640px;"><img id="submit" src="img/btn_submit.png"/></div>';
+            G('buttonDiv').innerHTML = html;
+
+            var phoneRightDivHTML = '<div style="position:absolute;left:0px;top:0px;z-index:11;"><img src="img/markdown.jpg" width="1280" height="720"/></div>';
+            phoneRightDivHTML += '<div style="position:absolute;left:572px;top:613px;z-index:11;"><img id="right_btn" src="./img/btn_back.png"/></div>';
+            G('phoneRightDiv').innerHTML = phoneRightDivHTML;
+
+            buttons.push({
+                id: 'pnBorder',
+                left: '',
+                right: '',
+                up: '',
+                down: 'key_0',
+                focusClass: 'btn',
+                focusHandler: "pnFocus=true",
+                blurHandler: "pnFocus=false"
+            });
+            buttons.push({
+                id: 'submit',
+                action: submit,
+                left: 'back',
+                right: '',
+                up: 'key_9',
+                down: '',
+                focusClass: 'btn1',
+            });
+
+            buttons.push({
+                id: 'back',
+                action: back,
+                left: '',
+                right: 'submit',
+                up: 'key_8',
+                down: '',
+                focusClass: 'btn1'
+            });
+
+            var phoneRightBtn = {
+                id: 'right_btn',
+                action: back,
+                left: '',
+                right: '',
+                up: '',
+                down: '',
+                focusClass: 'btn1',
+            };
+            buttons.push(phoneRightBtn);
+
+            PageH5.btn.init('pnBorder', buttons, '', false);
+        }
+
+
+        function goKey(button) {
+            if (button.index == 10) {
+                pn = pn.substring(0, pn.length - 1);
+            } else if (button.index == 11) {
+                pn = '';
+            } else {
+                if (G('pn').innerText.length < 11)
+                    pn += myKeys[button.index];
+            }
+            G('pn').innerHTML = pn;
+        }
+
+        function submit() {
+            var phone = G('pn').innerHTML;
+            var myreg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/; //19或16新号段也放开
+            if (!myreg.test(phone)) {
+                PageH5.tip('手机号码格式有误!');
+            } else {
+                ajax({
+                    url: webUrl + "index.php?m=Home&c=Activityv2&a=setUserInfo",
+                    data: {
+                        uid: uid,
+                        act_code: act_id,
+                        is_vip: dudu_is_vip,
+                        phone: phone
+                    },
+                    success: function(res) {
+                        if (res.code == 0) {
+                            goPhoneRight();
+                        } else {
+                            PageH5.tip('抱歉,号码保存失败!');
+                        }
+                    }
+                })
+            }
+        }
+
+        function goPhoneRight() {
+            S('phoneRightDiv');
+            H('buttonDiv');
+            PageH5.btn.set('right_btn');
+        }
+
+        function back() {
+            // if (PageH5.getParam('from') == 'winningInfo') {
+            //     location.href = './winningInfo.html';
+            // } else if (PageH5.getParam('from') == 'medalInfo') {
+            //     location.href = './medalInfo.html';
+            // } else {
+            location.href = './prize.html';
+            // }
+        }
+
+        window.onload = function() {
+            init();
+        }
+    </script>
+</body>
+
+</html>

+ 86 - 0
h5v2/act_20200708/prize.html

@@ -0,0 +1,86 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <title>电子奖状</title>
+    <!--#include virtual="/h5v2/htm2/head.htm" -->
+    <style type="text/css">
+        body {
+            background-image: url(img/canPrizePopup.jpg);
+        }
+        
+        .btn_focus_btn {
+            border: 3px solid #fff;
+            border-radius: 20px;
+            box-shadow: 0px 0px 10px #3794e2;
+        }
+    </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 dudu_is_vip = PageH5.cookie.get('activity_is_vip');
+        var uid = PageH5.cookie.get('activity_userid');
+
+        function init() {
+            var html = '';
+            html += '<div style="position:absolute;left:421px;top:644px;"><img id="btn0" src="./img/btn_back.png"/></div>';
+            html += '<div style="position:absolute;left:711px;top:644px;"><img id="btn1" src="./img/btn_phoneNum.png"/></div>';
+            G('buttonDiv').innerHTML = html;
+            for (var i = 0; i < 2; i++) {
+                var obj = {
+                    id: 'btn' + i,
+                    action: goAction,
+                    index: i,
+                    left: 'btn' + (i - 1),
+                    right: 'btn' + (i + 1),
+                    up: '',
+                    down: '',
+                    focusClass: 'btn',
+                };
+                buttons.push(obj);
+            }
+            PageH5.btn.init('btn1', buttons, '', true);
+        }
+
+        function goAction(button) {
+            if (button.index == 1) {
+                location.href = './phone.html?from=medalInfo';
+            } else {
+                if (PageH5.getParam('from') == 'winningInfo') {
+                    location.href = './winningInfo.html';
+                } else if (PageH5.getParam('from') == 'medalInfo') {
+                    location.href = './medalInfo.html';
+                } else {
+                    location.href = './index.html';
+                }
+
+            }
+        }
+
+        function back() {
+            if (PageH5.getParam('from') == 'winningInfo') {
+                location.href = './winningInfo.html';
+            } else if (PageH5.getParam('from') == 'medalInfo') {
+                location.href = './medalInfo.html';
+            } else {
+                location.href = './index.html';
+            }
+        }
+
+        window.onload = function() {
+            init();
+        }
+    </script>
+</body>
+
+</html>

+ 201 - 0
h5v2/act_20200708/winningInfo.html

@@ -0,0 +1,201 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+    <title>中奖查询</title>
+    <!--#include virtual="/h5v2/htm2/head.htm" -->
+    <style type="text/css">
+        body {
+            background-image: url(img/awardPopup.jpg);
+        }
+        
+        .btn_focus_btn {
+            border: 3px solid #fff;
+            border-radius: 20px;
+            box-shadow: 0px 0px 10px #3794e2;
+        }
+    </style>
+</head>
+
+<body>
+
+    <div id="dataListDiv"></div>
+    <div id="myPrize" style="position:absolute;left: 434px;top: 512px;width: 170px;height: 34px;line-height: 34px;text-align:center;font-size:18px;color: #e15d15;"></div>
+    <div id="myPhone" style="position:absolute;left: 784px;top: 512px;width: 170px;height: 34px;line-height: 34px;text-align:center;font-size:18px;color: #e15d15;"></div>
+
+    <div id="buttonDiv"></div>
+    <!--#include virtual="/h5v2/htm2/foot.htm" -->
+    <!--#include virtual="activity_cfg.htm" -->
+    <script type="text/javascript">
+        // 中奖查询展示
+        function prizelog(fn) {
+            ajax({
+                url: webUrl + "index.php?m=Home&c=Activityv2&a=prizelog",
+                data: {
+                    uid: uid,
+                    act_code: act_id,
+                    is_vip: dudu_is_vip
+                },
+                success: function(res) {
+                    if (res.code == 0) {
+                        var listHTML = '';
+                        listHTML += '<div style="position:absolute;left: 300px;top:280px;font-size: 20px;">';
+                        listHTML += '<marquee width="700" height="200" direction="up" behavior="scroll" scrolldelay="100">';
+                        listHTML += '<table width="700px" border="0" style="color:#000000">';
+                        for (var i = 0; i < res.data.length; i++) {
+                            listHTML += '<tr height="50">';
+                            listHTML += '<td width="200" align="center">';
+                            listHTML += res.data[i].user_phone;
+                            listHTML += '</td>';
+                            listHTML += '<td width="180" align="center">';
+                            listHTML += res.data[i].prize_name;
+                            listHTML += '</td>';
+                            listHTML += '<td align="center">';
+                            listHTML += res.data[i].created_at;
+                            listHTML += '</td>';
+                            listHTML += '</tr>';
+                        }
+                        listHTML += '</table>';
+                        listHTML += '</marquee>';
+                        listHTML += '</div>';
+                        G('dataListDiv').innerHTML = listHTML;
+                    }
+                    fn && fn(res);
+                }
+            })
+        }
+
+        // 用户获奖记录
+        function userPrizelog(fn) {
+            ajax({
+                url: webUrl + "index.php?m=Home&c=Activityv2&a=userPrizelog",
+                data: {
+                    uid: uid,
+                    act_code: act_id,
+                    is_vip: dudu_is_vip
+                },
+                success: function(res) {
+                    if (res.code == 0) {
+                        dataJson = res.data;
+                        if (res.data.my_prizes) {
+                            prizeCount = res.data.my_prizes.length;
+                        }
+                        if (res.data.user_phone) {
+                            G('myPhone').innerHTML = res.data.user_phone.user_phone;
+                            G('myPrize').innerHTML = res.data.my_prizes[0].prize_name;
+                        }
+                        if (res.data.my_prizes[0] && res.data.user_phone.phone_status != 1) {
+                            prize = res.data.my_prizes[0];
+                            phoneFlag = 2;
+                        } else if (res.data.my_prizes[0] && res.data.user_phone.phone_status == 1) {
+                            phoneFlag = 1;
+                        }
+
+                        if (res.data && res.data.prize_status && res.data.prize_status == "vitual") { //虚拟
+                            phoneFlag = 3;
+                        }
+                    }
+                    fn && fn(res);
+                }
+            })
+        }
+
+        var linkImage = CONFIG.SPACER; //透明图片
+        var buttons = []; //按钮数组
+        var prize; //奖品信息
+        var phoneFlag = 0; //0表示未中奖,1表示中奖留了号码,2表示中奖没留号码
+        var prizeImg = ''; //奖品图片
+        var prizeCount = 0;
+        var dataJson = [];
+
+        var act_id = ACTIVITY_CFG.ACT_ID,
+            act_code = ACTIVITY_CFG.ACT_CODE; //活动id及code
+        var dudu_is_vip = PageH5.cookie.get('activity_is_vip');
+        var uid = PageH5.cookie.get('activity_userid');
+
+        function init() {
+
+            var html = '';
+            html += '<div style="position:absolute;left:572px;top:645px;"><img id="btn0" src="./img/btn_back.png"/></div>';
+            // html += '<div style="position:absolute;left:711px;top:640px;"><img id="btn1" src="./img/btn_getPrize.png"/></div>';
+
+            // if (prizeCount > 0) {
+            //     for (var i = 0; i < prizeCount; i++) {
+            //         html += '<div style="position:absolute;left:458px;top:' + (401 + i * 27) + 'px;"><img src="img/prize_list_l.png"/></div>';
+            //         html += '<div style="position:absolute;left:458px;top:' + (401 + i * 27) + 'px;width:181px;height:21px;line-height:21px;text-align:center;font-size:18px;color:red;overflow:hidden;">' + dataJson.my_prizes[i].prize_name + '</div>';
+            //         html += '<div style="position:absolute;left:455px;top:' + (398 + i * 27) + 'px;"><img id="prizeList' + i + '" src="' + linkImage + '"/></div>';
+            //         var obj2 = {
+            //             id: 'prizeList' + i,
+            //             action: goPrizeList,
+            //             index: i,
+            //             left: '',
+            //             right: '',
+            //             up: ['prizeList' + (i - 1)],
+            //             down: ['prizeList' + (i + 1), 'btn0'],
+            //             prize_name: dataJson.my_prizes[i].prize_name,
+            //             prize_object: dataJson.my_prizes[i].prize_object,
+            //             focusImage: 'img/prize_list_f.png'
+            //         };
+            //         buttons.push(obj2);
+            //     }
+            // }
+            G('buttonDiv').innerHTML = html;
+
+            for (var i = 0; i < 2; i++) {
+                var obj = {
+                    id: 'btn' + i,
+                    action: goAction,
+                    index: i,
+                    left: '',
+                    right: '',
+                    up: '',
+                    down: '',
+                    focusClass: 'btn',
+                };
+                buttons.push(obj);
+            }
+
+            PageH5.btn.init('btn0', buttons, '', true);
+        }
+
+        function goPrizeList(button) {
+            if (button.prize_object == 'vitual') {
+                if (button.prize_name.indexOf('少儿会员') != -1) {
+                    location.href = url_prefix + 'selyg.html?sourceflag=winnerInfo&f=' + button.id;
+                } else {
+                    location.href = url_prefix + 'klg.html?sourceflag=winnerInfo&f=' + button.id;
+                }
+            } else if (button.prize_object == 'real') {}
+        }
+
+
+        function goAction(button) {
+            if (button.index == 1) {
+                if (phoneFlag == 1) {
+                    location.href = './phone.html?from=winningInfo';
+                } else if (phoneFlag == 2) {
+                    location.href = './phone.html?from=winningInfo';
+                } else if (phoneFlag == 3) {
+                    location.href = './noPrize.html?from=winningInfo';
+                } else {
+                    PageH5.tip('您还集5个齐勋章,继续加油噢!');
+                }
+            } else if (button.index == 0) {
+                back();
+            }
+        }
+
+        function back() {
+            location.href = './index.html?f=' + PageH5.getParam('f');
+        }
+
+        window.onload = function() {
+            prizelog();
+            userPrizelog(function() {
+                init();
+            });
+        }
+    </script>
+</body>
+
+</html>