|
@@ -118,6 +118,9 @@
|
|
<div id="submittedPopup" class="popup">
|
|
<div id="submittedPopup" class="popup">
|
|
<div class="submittedBtn"></div>
|
|
<div class="submittedBtn"></div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div id="timeOutPopup" class="popup">
|
|
|
|
+ <div class="timeOutBtn"></div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<script src="./js/webview.js" type="text/javascript"></script>
|
|
<script src="./js/webview.js" type="text/javascript"></script>
|
|
<script src="js/tvSysBtnBind.v2.js" type="text/javascript"></script>
|
|
<script src="js/tvSysBtnBind.v2.js" type="text/javascript"></script>
|
|
@@ -485,6 +488,17 @@
|
|
H("submittedPopup");
|
|
H("submittedPopup");
|
|
this.reSetClass(heguiItem);
|
|
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){
|
|
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{
|
|
}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);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|