Wang 5 gadi atpakaļ
vecāks
revīzija
9fd0d3e0d4

+ 6 - 2
h5v2/yd20191203/css/page.css

@@ -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;
 }
 
@@ -519,3 +519,7 @@ body{
 #submittedPopup{
     background: url('../img/page_15.png') no-repeat center;
 }
+
+#timeOutPopup{
+    background: url('../img/page_16.png') no-repeat center;
+}

BIN
h5v2/yd20191203/img/page_16.png


+ 54 - 35
h5v2/yd20191203/index.html

@@ -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>
@@ -485,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");
+                    }, 
                 }
             }
 
@@ -496,42 +510,47 @@
             // }
 
             function order(idx){
-                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);
+                if(init.gameNum==0 && (init.othersProduct_isVip || init.oursProduct_isVip)){
+                    S("timeOutPopup");
+                    main.reSetClass("timeOutBtn");
                 }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); 
+                    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); 
+                    }
                 }
             }