瀏覽代碼

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

xiaosongshu007 5 年之前
父節點
當前提交
ff2056267a

+ 14 - 11
h5v2/yd20191203/css/page.css

@@ -2,7 +2,7 @@
 * @Author: Wang
 * @Date:   2019-12-03 16:53:40
 * @Last Modified by:   Marte
-* @Last Modified time: 2019-12-04 12:07:17
+* @Last Modified time: 2019-12-06 14:17:46
 */
 html, body, ul, li, p, h1, h2, h3, h4, h5, h6, form, img { margin:0; padding:0; }
 img,input,button { border:none; padding:0;margin:0;outline-style:none; }
@@ -167,29 +167,29 @@ body{
 }
 
 .btnGroup .ob_1,#oursProduct{
-    background: url('../img/btn_seb_def.png') no-repeat center;
+    background: url('../img/btn_ours_def.png') no-repeat center;
 }
 
 .btnGroup .ob_1{
     bottom:146px;
 }
 .btnGroup .ob_1.current,#oursProduct.current{
-    background: url('../img/btn_seb_sel.png') no-repeat center;
+    background: url('../img/btn_ours_sel.png') no-repeat center;
 }
 
 
 .btnGroup .ob_2,#othersProduct{
-    background: url('../img/btn_ysb_def.png') no-repeat center;
+    background: url('../img/btn_others_def.png') no-repeat center;
 }
 .btnGroup .ob_2.current,#othersProduct.current{
-    background: url('../img/btn_ysb_sel.png') no-repeat center;
+    background: url('../img/btn_others_sel.png') no-repeat center;
 }
 
 .btnGroup .ob_1.hasOrder,#oursProduct.hasOrder{
-    background: url('../img/btn_seb_hasOrder.png') no-repeat center;
+    background: url('../img/btn_ours_hasOrder.png') no-repeat center;
 }
 .btnGroup .ob_2.hasOrder,#othersProduct.hasOrder{
-    background: url('../img/btn_ysb_hasOrder.png') no-repeat center;
+    background: url('../img/btn_others_hasOrder.png') no-repeat center;
 }
 
 
@@ -246,7 +246,7 @@ body{
 }
 
 
-.rulesBtn,.myBoxBtn,.unExchangeBtn,.confirm,.cancel,.markDownBtn,.unWinToyVipBtn,.runOutBtn,.submittedBtn{
+.rulesBtn,.myBoxBtn,.unExchangeBtn,.confirm,.cancel,.markDownBtn,.unWinToyVipBtn,.runOutBtn,.submittedBtn,.timeOutBtn{
     width: 227px;
     height: 91px;
     /*background: url('../img/btn_qd_def.png') no-repeat center;*/
@@ -255,7 +255,7 @@ body{
     left: 524px;
 }
 
-.rulesBtn.current,.myBoxBtn.current,.unExchangeBtn.current,.confirm.current,.markDownBtn.current,.unWinToyVipBtn.current,.runOutBtn.current,.submittedBtn.current{
+.rulesBtn.current,.myBoxBtn.current,.unExchangeBtn.current,.confirm.current,.markDownBtn.current,.unWinToyVipBtn.current,.runOutBtn.current,.submittedBtn.current,.timeOutBtn.current{
     background: url('../img/btn_qd_sel.png') no-repeat center;
 }
 
@@ -298,7 +298,6 @@ body{
     position: absolute;
     top: 364px;
     left: 674px;
-
 }
 
 .phoneNum{
@@ -470,7 +469,7 @@ body{
     left: 524px;
 }
 .CollectedSuccessBtn.current{
-    background: url('../img/btn_dj_del.png') no-repeat center;
+    background: url('../img/btn_dj_sel.png') no-repeat center;
 }
 
 #openBoxPopup{
@@ -520,3 +519,7 @@ body{
 #submittedPopup{
     background: url('../img/page_15.png') no-repeat center;
 }
+
+#timeOutPopup{
+    background: url('../img/page_16.png') no-repeat center;
+}

+ 240 - 0
h5v2/yd20191203/html/phone.html

@@ -0,0 +1,240 @@
+<!DOCTYPE html>
+<html lang="en">
+    <head>
+        <meta charset="utf-8">
+        <style type="text/css">
+            html, body, ul, li, p, h1, h2, h3, h4, h5, h6, form, img { margin:0; padding:0; }
+            img,input,button { border:none; padding:0;margin:0;outline-style:none; }
+            ul{ list-style:none; }
+            iframe{display:none;}
+            input { padding-top:0; padding-bottom:0; font-family: "SimSun","Microsoft YaHei";}
+            select, input { vertical-align:middle;}
+            select, input{ font-size:12px; margin:0; }
+            img {border:0; vertical-align:middle; display:block;}
+            body { color:#666;background:#fff;}
+            h1,h2,h3,h4,h5,h6 {text-decoration:none;font-weight:normal;font-size:100%;}
+            s,i,em{font-style:normal;text-decoration:none;}
+            html {
+                width: 1280px;
+                height: 720px;
+                margin: 0 auto;
+            }
+            body{
+                font-size:20px;
+                font-family:'Microsoft Yahei;Arial';
+                color: #f1f1f1;
+                background: url('../img/page_04.png') no-repeat center;
+                background-attachment: fixed;
+                background-size: 100%;
+                overflow: hidden;
+                width:1280px;
+                height:720px;
+                margin: 0 auto;
+            }
+            
+            #myPrize{
+                position: absolute;
+                top: 310px;
+                left: 248px;
+            }
+
+            #keyBoard{
+                width: 340px;
+                height: 110px;
+                position: absolute;
+                top: 364px;
+                left: 674px;
+            }
+            #phone{
+                width: 331px;
+                height: 71px;
+                position: absolute;
+                top: 283px;
+                left: 667px;
+                line-height: 71px;
+                font-size: 26px;
+                text-align: center;
+            }
+
+            .phoneNum{
+                float: left;
+                font-size: 20px;
+                background:#5988eb;
+                width: 46px;
+                height: 46px;
+                text-align: center;
+                line-height: 50px;
+                border:3px solid transparent;
+                margin-right: 2px;
+                margin-bottom: 2px;
+                box-shadow: 0px 0px 5px 5px #4068d3 inset;
+            }
+
+            .phoneNum.current{
+                border:3px solid #d4c020;
+            }
+
+            .confirm,.cancel{
+                width: 227px;
+                height: 91px;
+                background: url('../img/btn_qd_def.png') no-repeat center;
+                position: absolute;
+                top: 590px;
+                left: 390px;
+            }
+            
+            .confirm.current{
+                background: url('../img/btn_qd_sel.png') no-repeat center;
+            }
+            .cancel{
+                left: 650px;
+                background: url('../img/btn_qx_def.png') no-repeat center;
+            }
+
+            .cancel.current{
+                background: url('../img/btn_qx_sel.png') no-repeat center;
+            }
+        </style>
+    </head>
+    <body>
+        <div id="exchangePopup" class="popup">
+            <img id="myPrize" src="" alt="" />
+            <div id="phone"></div>
+            <ul id="keyBoard">
+                <li class="phoneNum">1</li>
+                <li class="phoneNum">2</li>
+                <li class="phoneNum">3</li>
+                <li class="phoneNum">4</li>
+                <li class="phoneNum">5</li>
+                <li class="phoneNum">6</li>
+                <li class="phoneNum">7</li>
+                <li class="phoneNum">8</li>
+                <li class="phoneNum">9</li>
+                <li class="phoneNum">0</li>
+                <li class="phoneNum otherBtn">删除</li>
+                <li class="phoneNum otherBtn">清空</li>
+            </ul>
+            <div class="exchangeBtn confirm"></div>
+            <div class="exchangeBtn cancel"></div>
+        </div>
+        <script src="../js/webview.js" type="text/javascript"></script>
+        <script src="../js/tvSysBtnBind.v2.js" type="text/javascript"></script>
+        <script src="../js/comm.js" type="text/javascript"></script>
+        <script src="../js/api.js" type="text/javascript"></script>
+        <script type="text/javascript">
+            var data = {};
+            data.rules = {
+                exchangeBtn:{
+                    0:[0,["phoneNum",6],1,0],
+                    1:[-1,["phoneNum",8],0,0],
+                    "onEnterPress":exchangePopups,
+                    onPress:cellphoneNum,
+                    onBack:function(){
+                        G("phone").innerHTML = "";
+                        window.location.href =  "../index.html";
+                    },
+                },
+                phoneNum:{
+                    line:6,
+                    down:["exchangeBtn",1],
+                    onEnterPress:function(){
+                        try{
+                            alert('phoneNum'+this.currentIndex+this.className+G("phone").innerHTML.length);
+                            if(this.currentIndex<=9){
+                                if(G("phone").innerHTML.length>10) return;
+                                if(this.currentIndex == 9){
+                                    G("phone").innerHTML += 0;
+                                }else{
+                                    G("phone").innerHTML += this.currentIndex*1+1;   
+                                }  
+                            }else if(this.currentIndex == 10){
+                                if(G("phone").innerHTML.length>0)
+                                G("phone").innerHTML = G("phone").innerHTML.slice(0,-1);
+                            }else if(this.currentIndex == 11){
+                                if(G("phone").innerHTML.length>0)
+                                G("phone").innerHTML = "";
+                            }
+                        }catch(e){
+                            alert(e)
+                        }
+                    },
+                    onPress:cellphoneNum,
+                    onBack:function(){
+                        if(G("phone").innerHTML.length>0){
+                            G("phone").innerHTML = G("phone").innerHTML.slice(0,-1);
+                        }else{
+                            // H("exchangePopup");
+                            G("phone").innerHTML = "";
+                            window.location.href =  "../index.html";
+                            // this.reSetClass(heguiItem);
+                        }
+                    },
+                },
+            }
+
+            function exchangePopups(){
+                try{
+                    if(this.currentIndex==1){
+                        H("exchangePopup");
+                        G("phone").innerHTML = "";
+                        this.reSetClass(heguiItem);
+                    }else if(this.currentIndex==0){
+                        var phone = G("phone").innerText;
+                        var myreg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/;
+                        if(!myreg.test(phone)){
+                            tips('手机号码格式有误!');
+                        }else{
+                            ajax({
+                                url: webUrl + "index.php?m=Home&c=Activityv2&a=setUserInfo",
+                                data: {
+                                    uid: uid,
+                                    act_id: init.act_id,
+                                    is_vip: init.oursProduct_isVip+init.othersProduct_isVip,
+                                    phone: phone
+                                },
+                                success: function (res) {
+                                    if(res.code == 0){
+                                        H("exchangePopup");
+                                        G("phone").innerHTML = "";
+                                        S("markDownPopup");
+                                        main.reSetClass("markDownBtn");
+                                    }else{
+                                        tips(res.msg);
+                                    }
+                                    
+                                }
+                            })
+                        }
+                    }
+                    
+                }catch(e){
+                    alert(e);
+                }
+            }
+
+             function cellphoneNum(){
+                if(G("phone").innerHTML.length>10) return;
+                var key = this.event.keyCode;
+                try {
+                    // Webview.setInputTypeTextFlag("true");
+                    if (key >= 0 && key <= 9) {
+                        G("phone").innerText += key;
+                    }
+                } catch (e) {
+                    if (key > 47 && key < 58) {
+                        G("phone").innerText += (key - 48);
+                    }
+                }
+            }
+
+
+             var btnConfig = {
+                className: 'phoneNum',
+                currentIndex: 0,
+                rules: data.rules,
+            }
+            window.main = new tvSysBtnBind(btnConfig);
+            main.reLoad();
+        </script>
+    </body>
+</html>

二進制
h5v2/yd20191203/img/btn_others_def.png


二進制
h5v2/yd20191203/img/btn_others_hasOrder.png


二進制
h5v2/yd20191203/img/btn_others_sel.png


h5v2/yd20191203/img/btn_seb_def.png → h5v2/yd20191203/img/btn_ours_def.png


h5v2/yd20191203/img/btn_seb_hasOrder.png → h5v2/yd20191203/img/btn_ours_hasOrder.png


h5v2/yd20191203/img/btn_seb_sel.png → h5v2/yd20191203/img/btn_ours_sel.png


二進制
h5v2/yd20191203/img/btn_ysb_def.png


二進制
h5v2/yd20191203/img/btn_ysb_hasOrder.png


二進制
h5v2/yd20191203/img/btn_ysb_sel.png


二進制
h5v2/yd20191203/img/page_02.png


二進制
h5v2/yd20191203/img/page_16.png


+ 109 - 66
h5v2/yd20191203/index.html

@@ -3,7 +3,7 @@
     <head>
         <meta charset="utf-8">
         <meta name="page-view-size" content="1280*720" />
-        <link rel="stylesheet" type="text/css" href="./css/page.css?v=201908"/>
+        <link rel="stylesheet" type="text/css" href="./css/page.css?v=201909"/>
         <title>移动-明侦盲盒活动</title>
     </head>
     <body>
@@ -118,6 +118,9 @@
             <div id="submittedPopup" class="popup">
                 <div class="submittedBtn"></div>
             </div>
+            <div id="timeOutPopup" class="popup">
+                <div class="timeOutBtn"></div>
+            </div>
         </div>
         <script src="./js/webview.js" type="text/javascript"></script>
         <script src="js/tvSysBtnBind.v2.js" type="text/javascript"></script>
@@ -134,29 +137,19 @@
 
             var init = {
                 prize:0,
-                act_id:5,
+                act_id:1,
                 gameNum:0,
                 canPrize:0,
                 oursProduct_isVip:0,
                 othersProduct_isVip:0,
-                contentcode:"D00000001201808211755370019993899",//内容标识
-                contentcode1:"D00000001201911281044560065291302"
+                contentcode:"00000001000000000018000000431421",//内容标识
+                contentcode1:"00000001000000000029000000278889",
             }
 
             var pageItem = ["box","myBox_btn","page_btn","order_btn"];
             // var popupItem = ["rulesBtn","myBoxBtn","unExchangeBtn","unExchangeBtn","exchangeBtn","phoneNum","markDownBtn","unWinToyBtn","unWinToyVipBtn","poster","winToyBtn"]
 
-            var webUrl = '';
-            try {
-                Webview.setInputTypeTextFlag("true");
-                webUrl = 'http://10.255.1.98:8090/DuduToy_v2/';
-            } catch (e) {
-                if (location.href.indexOf('10.255.1.98:8090') >= 0) {
-                    webUrl = 'http://10.255.1.98:8090/DuduToy_v2/';
-                } else if (location.href.indexOf('10.200.10.28:28090') >= 0) {
-                    webUrl = 'http://10.200.10.28:28090/DuduToy_v2/';
-                }
-            }
+            var webUrl = 'http://111.23.13.123:8091/';
 
             try{
                 var uid = Webview.readSystemProp('user.id');
@@ -164,10 +157,10 @@
                 var mac = Webview.readSystemProp('device.mac');//机顶盒mac地址
                 var version = Webview.readSystemProp('app.version');//APK版本号
             } catch(e) {
-                var uid = getStr("uid") || '6830011';
-                var usertoken = "00139025650832263889980824152950"
-                var mac = 'OC-41-E9-DD-EC-DE'
-                var version = "YYS.4.6.15.266.5.HNDX.0.0_Release"
+                var uid = getStr("uid") || '0100834547692768574';
+                var usertoken = "CB89C105577A4E5344E7EC39F993A4B6"
+                var mac = 'OC-49-33-BF-10-A6'
+                var version = "YYS.5.7.7.Y3.4.HNYD.0.0_Beta"
             }
 
             var backUrl = webUrl+'h5v2/yd20191203/index.html';
@@ -185,9 +178,9 @@
                     "onEnterPress":openBox,
                     onPress:function(){
                         if((this.event.keyCode == 39 || this.event.keyCode == "RIGHT") && this.prevIndex == 6){
-                            if(init.othersProduct_isVip == 0){
+                            if(init.oursProduct_isVip == 0){
                                 this.reSetClass("order_btn",0);
-                            }else if(init.othersProduct_isVip == 1 && init.oursProduct_isVip == 0){
+                            }else if(init.othersProduct_isVip == 0 && init.oursProduct_isVip == 1){
                                 this.reSetClass("order_btn",1);
                             }
                         }
@@ -207,9 +200,9 @@
                     "onEnterPress":openPopups,
                     onPress:function(){
                         if((this.event.keyCode == 40 || this.event.keyCode == "DOWN")&& this.prevIndex == 2){
-                            if(init.othersProduct_isVip == 0){
+                            if(init.oursProduct_isVip == 0){
                                 this.reSetClass("order_btn",0);
-                            }else if(init.othersProduct_isVip == 1 && init.oursProduct_isVip == 0){
+                            }else if(init.othersProduct_isVip == 0 && init.oursProduct_isVip == 1){
                                 this.reSetClass("order_btn",1);
                             }
                         }
@@ -223,11 +216,11 @@
                     },
                     onPress:function(){
                         if((this.event.keyCode == 40 || this.event.keyCode == "DOWN") && this.currentIndex == 0){
-                            if(init.oursProduct_isVip == 0){
+                            if(init.othersProduct_isVip == 0){
                                 this.reSetClass("order_btn",1);
                             }
                         }else if((this.event.keyCode == 38 || this.event.keyCode == "UP")&& this.currentIndex == 1){
-                            if(init.othersProduct_isVip == 0){
+                            if(init.oursProduct_isVip == 0){
                                 this.reSetClass("order_btn",0);
                             }else{
                                 this.reSetClass("page_btn",2);
@@ -282,7 +275,6 @@
                 },
                 phoneNum:{
                     line:6,
-                    // up:["exchangeBtn",0],
                     down:["exchangeBtn",1],
                     onEnterPress:function(){
                         if(this.currentIndex<=9){
@@ -291,7 +283,7 @@
                                 G("phone").innerHTML += 0;
                             }else{
                                 G("phone").innerHTML += this.currentIndex*1+1;   
-                            }
+                            }  
                         }else if(this.currentIndex == 10){
                             if(G("phone").innerHTML.length>0)
                             G("phone").innerHTML = G("phone").innerHTML.slice(0,-1);
@@ -342,6 +334,7 @@
                             H("unWinToyPopup");
                             this.reSetClass("box");
                         }else{
+                            setCookie("unWinToy",this.currentIndex);
                             order(this.currentIndex);
                         }
                     },
@@ -378,10 +371,12 @@
                     line:1,
                     up:["poster"],
                     onEnterPress:function(){
+                        setCookie("itemIdx","");
                         H("unWinToyVipPopup");
                         this.reSetClass("box");
                     }, 
                     onBack:function(){
+                        setCookie("itemIdx","");
                         H("unWinToyVipPopup");
                         this.reSetClass("box");
                     },
@@ -391,7 +386,7 @@
                     down:["unWinToyVipBtn"],
                     onEnterPress:function(){
                         var url = '',index=this.currentIndex;
-                        setCookie("videoIdx",index);
+                        setCookie("itemIdx",index);
                         if(index==0){
                             fullscreenPlay("00000001000000000002000000120684")
                         }else if(index==1){
@@ -399,9 +394,9 @@
                         }else if(index==2){
                             fullscreenPlay("00000001000000000029000000278889")
                         }
-                        window.location.href = url;
                     }, 
                     onBack:function(){
+                        setCookie("itemIdx","");
                         H("unWinToyVipPopup");
                         this.reSetClass("box");
                     },
@@ -493,6 +488,17 @@
                         H("submittedPopup");
                         this.reSetClass(heguiItem);
                     },
+                },
+                timeOutBtn:{
+                   line:1,
+                   onEnterPress:function(){
+                        H("timeOutPopup");
+                        this.reSetClass("order_btn");
+                     },
+                    onBack:function(){
+                        H("timeOutPopup");
+                        this.reSetClass("order_btn");
+                    }, 
                 }
             }
 
@@ -504,30 +510,49 @@
             // }
 
             function order(idx){
-                var product_id = "11187";
-                var price = "125";
-                var name = "少儿包";
-                var bag = "se_bag";
-                var mark = "oursBag";
-                if(idx==1){
-                    product_id = "8801000077";
-                    price = "15";
-                    name = "影视包"
-                    bag = "ys_bag";
-                    mark = "othersBag";
-                }
-                var product_list={
-                    "product_id":product_id,
-                    "time":"30",
-                    "product_type":"1",
-                    "price":price,
-                    "button_name":name,
-                    "name":name,
-                    "bag":bag,
-                    "back_url":backUrl+'?'+mark+'='+uid,
+                if(init.gameNum==0 && (init.othersProduct_isVip || init.oursProduct_isVip)){
+                    S("timeOutPopup");
+                    main.reSetClass("timeOutBtn");
+                }else{
+                    var pid = "8801000079";
+                    var mark = "oursBag";
+                    if(idx == 1){
+                        pid = "8801000077";
+                        mark = "othersBag";
+                    }
+                    var orderBack = backUrl+'?'+mark+'='+uid;
+                    if(version.indexOf("5a.7") || version.indexOf("5a.8")){
+                        var product_list={
+                            "product_id":pid,
+                            "video_name":"",
+                            "video_type":"",
+                            "product_type":"2",
+                            "cat_id":"",
+                            "channel_id":"",
+                        }
+                        window.location.href = "https://hnydorder.yys.mgtv.com:8080/order/index.html?product_list="+JSON.stringify(product_list)+"&exitStr="+escape(orderBack);
+                    }else{
+                        var playIntent = {
+                            package: "com.hunantv.operator",
+                            action: "mangotv://com.hunantv.operator/order",
+                            data: "",
+                            extras: {
+                                product: {
+                                    "id": pid,
+                                    "time": "",
+                                    "price": "",
+                                    "type": "",
+                                    "name": "",
+                                    "bag": "",
+                                    "back_url":orderBack,
+                                }
+                            },
+                            flags: []
+                        };
+                        Webview.sendIntent("startActivity", playIntent); 
+                    }
                 }
-                window.location.href = "https://hnydorder.yys.mgtv.com:8080/v2.0_new/order/index.html?product_list="+JSON.stringify(product_list);  
-            }
+            } 
 
             function fullscreenPlay(mid) {
                 var playIntent = {
@@ -564,6 +589,7 @@
                                     main.reSetClass("winToyBtn");
                                 }else{
                                     if(init.othersProduct_isVip || init.oursProduct_isVip){
+                                        setCookie("item","chance");
                                         S("unWinToyVipPopup");
                                         main.reSetClass("unWinToyVipBtn");
                                     }else{
@@ -578,9 +604,11 @@
                     }else{
                         if(init.othersProduct_isVip || init.oursProduct_isVip){
                             G("unWinToyVipPopup").style.background = "url('./img/page_08.png') no-repeat center";
+                            setCookie("item","");
                             S("unWinToyVipPopup");
                             this.reSetClass("poster");
                         }else{
+                            setCookie("item",'fromOrder0');
                             G("unWinToyPopup").style.background = "url('./img/page_07.png') no-repeat center";
                             S("unWinToyPopup");
                             this.reSetClass("unWinToyBtn");
@@ -689,11 +717,10 @@
             }
 
             function cellphoneNum(){
-                console.log(this.event.keyCode)
                 if(G("phone").innerHTML.length>10) return;
                 var key = this.event.keyCode;
                 try {
-                    Webview.setInputTypeTextFlag("true");
+                    // Webview.setInputTypeTextFlag("true");
                     if (key >= 0 && key <= 9) {
                         G("phone").innerText += key;
                     }
@@ -747,7 +774,7 @@
 
             function addData(fn) {
                 ajax({
-                    url:webUrl+"index.php?m=Home&c=ThemeData&addData&a=addData",
+                    url:webUrl+"index.php?m=Home&c=ThemeData&a=addData",
                     data:{
                         uid: uid, 
                         theme_id: 1
@@ -784,7 +811,7 @@
                         usertoken:usertoken,
                         mac:mac,
                         version:version,
-                        fromsource:4
+                        fromsource:15
                     },
                     type: "post",
                     dataType: "json",
@@ -881,6 +908,24 @@
                 })
             }
 
+            function markOrder(idx){
+                if(!!getCookie("unWinToy")){
+                    if(getCookie("item") == 'fromOrder0'){
+                        G("unWinToyPopup").style.background = "url('./img/page_07.png') no-repeat center";
+                    }else{
+                        G("unWinToyPopup").style.background = "url('./img/page_05.png') no-repeat center";
+                    }
+                    S("unWinToyPopup");
+                    pageConf.focusItem = "unWinToyBtn";
+                    pageConf.focusIdx = idx;
+                    setCookie("unWinToy","")
+                    setCookie("item",'');
+                }else{
+                    pageConf.focusItem = "order_btn";
+                    pageConf.focusIdx = idx;
+                }
+            }
+
             function pageInit(){
                 if(!getStr("oursBag") && !getStr("othersBag") && !getStr("for")){
                     addUser();
@@ -894,13 +939,12 @@
                             addClass(G("oursP"),'hasOrder');
                             addClass(G("oursProduct"),'hasOrder');
                             if(!!getStr("oursBag")){
-                                payResult(init.oursProduct_isVip,uid,"11187");
+                                payResult(init.oursProduct_isVip,uid,"8801000077");
                             }
                         }else{
                             init.oursProduct_isVip = 0;
                             if(!!getStr("oursBag")){
-                                pageConf.focusItem = "order_btn";
-                                pageConf.focusIdx = 1;
+                                markOrder(0);
                             }
                         }
                         authorization(init.contentcode1,uid,usertoken,mac,version,function(res){
@@ -910,13 +954,12 @@
                                     addClass(G("othersP"),'hasOrder');
                                     addClass(G("othersProduct"),'hasOrder');
                                     if(!!getStr("othersBag")){
-                                        payResult(init.othersProduct_isVip,uid,"10664")   
+                                        payResult(init.othersProduct_isVip,uid,"8801000079")   
                                     }
                                 }else{
                                     othersProduct_isVip = 0;
                                     if(!!getStr("othersBag")){
-                                        pageConf.focusItem = "order_btn";
-                                        pageConf.focusIdx = 0;
+                                        markOrder(1);
                                     }
                                 }
                                 var vv = init.oursProduct_isVip+init.othersProduct_isVip;
@@ -925,16 +968,16 @@
                                     if(res.code == 0){
                                         init.gameNum = res.data;  
                                         G("times").innerHTML = res.data; 
-                                        if(!!getCookie("videoIdx")){
-                                            if(res.data == 0){
+                                        if(!!getCookie("itemIdx")){
+                                            if(getCookie("item") == 'chance'){
                                                 G("unWinToyVipPopup").style.background = "url('./img/page_08.png') no-repeat center";
                                             }else{
                                                 G("unWinToyVipPopup").style.background = "url('./img/page_06.png') no-repeat center";
                                             }
                                             S("unWinToyVipPopup");
                                             pageConf.focusItem = "poster";
-                                            pageConf.focusIdx = getCookie("videoIdx");
-                                            setCookie("videoIdx","");
+                                            pageConf.focusIdx = getCookie("itemIdx");
+                                            
                                         }
                                         btnInit();
                                     }else{