|
@@ -11,7 +11,7 @@
|
|
|
<div id="scrollCont">
|
|
|
<div class="code">
|
|
|
<img id="QRcode" src="" alt="" />
|
|
|
- <span>扫码上转萌娃贺岁视频</span>
|
|
|
+ <span>扫码上传萌娃贺岁视频</span>
|
|
|
<span>拼人气赢大奖</span>
|
|
|
</div>
|
|
|
<div class="page_btn pg0"></div>
|
|
@@ -82,7 +82,7 @@
|
|
|
</div>
|
|
|
<div id="unWinToyPopup" class="popup">
|
|
|
<div id="product1" class="unWinToyBtn"></div>
|
|
|
- <div id="product2" class="unWinToyBtn"></div>
|
|
|
+ <!-- <div id="product2" class="unWinToyBtn"></div> -->
|
|
|
<div class="unWinToyBtn confirm"></div>
|
|
|
</div>
|
|
|
<div id="unWinToyVipPopup" class="popup">
|
|
@@ -127,6 +127,7 @@
|
|
|
|
|
|
|
|
|
var init = {
|
|
|
+ is_vip:0,
|
|
|
act_id:2,
|
|
|
gameNum:0,
|
|
|
theme_id:2,
|
|
@@ -140,16 +141,20 @@
|
|
|
}
|
|
|
|
|
|
var webUrl = 'http://111.23.13.123:8091/';
|
|
|
- var backUrl = webUrl+'h5v2/mw_20200108_act/index.html';
|
|
|
+ var backUrl = webUrl+'h5v2/mw_20200108_act/index1.html';
|
|
|
// var indexUrl = webUrl+'html/index.html?activity='+init.act_id;
|
|
|
var link = "http://111.23.12.38:8093/h5/act/index.html?mark="+uid;//http://120.78.169.79/h5/act/index.html";
|
|
|
var videoId = "00000001000000000033000000121962";
|
|
|
var videoArr = ["00000001000000000014000000153851","00000001000000000032000000221170","00000001000000000025000000326508","00000001000000000028000000428043","00000001000000000026000000325529","00000001000000000015000000283749"]
|
|
|
+ var mengwaMediaArr = [],voteArr = [],numArr=[];
|
|
|
|
|
|
var pageConf = {
|
|
|
focusIdx:3,
|
|
|
focusItem:"page_btn",
|
|
|
}
|
|
|
+
|
|
|
+ var heguiItem = "";
|
|
|
+ var changeOrwin = "";
|
|
|
var rulesPopup = false;
|
|
|
var errorMark = false;
|
|
|
var rulesMark = 0;
|
|
@@ -158,7 +163,7 @@
|
|
|
page_btn:{
|
|
|
0:[3,0,0,1],
|
|
|
1:[2,-1,0,1],
|
|
|
- 2:[1,-1,0,0],
|
|
|
+ 2:[1,-1,0,1],
|
|
|
3:[0,-1,-1,0],
|
|
|
4:[0,-1,0,["ip_btn",2]],
|
|
|
onEnterPress:function(){
|
|
@@ -173,7 +178,7 @@
|
|
|
this.reSetClass("rules_btn",1);
|
|
|
break;
|
|
|
case 2:
|
|
|
- prizelog(uid,init.act_id,init.othersProduct_isVip+init.oursProduct_isVip,function(res){
|
|
|
+ prizelog(uid,init.act_id,function(res){
|
|
|
if (res.code == 0) {
|
|
|
var content = [];
|
|
|
for (var i = 0; i < res.data.length; i++) {
|
|
@@ -224,7 +229,7 @@
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- userPrizelog(uid,init.act_id,init.othersProduct_isVip+init.oursProduct_isVip,function(res){
|
|
|
+ userPrizelog(uid,init.act_id,function(res){
|
|
|
if(res.code==0){
|
|
|
if (res.data.my_prizes[0]) {
|
|
|
G("myAward").innerText = res.data.my_prizes[0].prize_name;
|
|
@@ -272,8 +277,7 @@
|
|
|
line:6,
|
|
|
down:["voteBtn"],
|
|
|
onEnterPress:function(){
|
|
|
- // details_page(videoArr[this.currentIndex]);
|
|
|
- order();
|
|
|
+ details_page(videoArr[this.currentIndex]);
|
|
|
},
|
|
|
onPress:function(){
|
|
|
stopPlay();
|
|
@@ -302,28 +306,40 @@
|
|
|
line:4,
|
|
|
up:["ip_btn",2],
|
|
|
onEnterPress:function(){
|
|
|
- vote(uid,init.oursProduct_isVip+init.othersProduct_isVip,voteArr[this.currentIndex],function(res){
|
|
|
- if(res.code == 0){
|
|
|
- G("number").innerHTML = res.data.num;
|
|
|
- G("vote"+main.currentIndex).innerHTML = G("vote"+main.currentIndex).innerHTML*1+1;
|
|
|
- tips("投票成功");
|
|
|
- if(init.gameNum>0){
|
|
|
- S("lotteryPopup");
|
|
|
- main.reSetClass("lottery_btn",0);
|
|
|
+ if(!this.current.getAttribute("data-mark")){
|
|
|
+ var idx = this.currentIndex>3?this.currentIndex-4:this.currentIndex;
|
|
|
+ fullscreenPlay(mengwaMediaArr[idx],numArr[idx]);
|
|
|
+ }else{
|
|
|
+ vote(uid,voteArr[this.currentIndex-4],function(res){
|
|
|
+ if(res.code == 0){
|
|
|
+ G("number").innerHTML = res.data.num;
|
|
|
+ G("vote"+(main.currentIndex-4)).innerHTML = G("vote"+(main.currentIndex-4)).innerHTML*1+1;
|
|
|
+ tips("投票成功");
|
|
|
+ getPrizeNum(uid,function(res){
|
|
|
+ if(res.code==0){
|
|
|
+ init.gameNum = res.data.num>=0?res.data.num:0;
|
|
|
+ G("num").innerHTML = res.data.num>=0?res.data.num:0;
|
|
|
+ if( res.data.num>0){
|
|
|
+ setCookie("mark",main.currentIndex)
|
|
|
+ S("lotteryPopup");
|
|
|
+ main.reSetClass("lottery_btn",0);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else if(res.code == "-1"){
|
|
|
+ tips("您的票已用完");
|
|
|
}
|
|
|
- }else if(res.code == "-1"){
|
|
|
- tips("您的票已用完");
|
|
|
- }
|
|
|
- })
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
onPress:function(){
|
|
|
- G("scrollCont").style.top = - 780-(parseInt(this.currentIndex/4)*268) + "px";
|
|
|
+ if(!this.current.getAttribute("data-mark")){
|
|
|
+ var h = document.getElementsByClassName("voteTxt")[0].offsetHeight+document.getElementsByClassName("voteLi")[0].offsetHeight+20
|
|
|
+ G("scrollCont").style.top = - 770-(parseInt(this.currentIndex/4/2)*h) + "px";
|
|
|
+ }
|
|
|
errorMark = true;
|
|
|
},
|
|
|
- onBack:function(){
|
|
|
- H("lotteryPopup");
|
|
|
- this.reSetClass("voteBtn");
|
|
|
- }
|
|
|
},
|
|
|
rules_btn:{
|
|
|
line:1,
|
|
@@ -348,6 +364,7 @@
|
|
|
prize(function(res){
|
|
|
if(res.code==0){
|
|
|
init.gameNum -= 1;
|
|
|
+ H("lotteryPopup");
|
|
|
if(res.data.yes.prize_status=="none"){
|
|
|
nowin("nowin");
|
|
|
}else if(res.data.yes.prize_status=="real"){//中奖
|
|
@@ -424,7 +441,7 @@
|
|
|
0:[0,["phoneNum",6],1,0],
|
|
|
1:[-1,["phoneNum",8],0,0],
|
|
|
"onEnterPress":exchangePopups,
|
|
|
- onPress:cellphoneNum,
|
|
|
+ "onPress":cellphoneNum,
|
|
|
onBack:function(){
|
|
|
H("exchangePopup");
|
|
|
G("phone").innerHTML = "";
|
|
@@ -457,7 +474,7 @@
|
|
|
G("phone").innerHTML = "";
|
|
|
}
|
|
|
},
|
|
|
- onPress:cellphoneNum,
|
|
|
+ "onPress":cellphoneNum,
|
|
|
onBack:function(){
|
|
|
if(G("phone").innerHTML.length>0){
|
|
|
G("phone").innerHTML = G("phone").innerHTML.slice(0,-1);
|
|
@@ -502,8 +519,8 @@
|
|
|
},
|
|
|
unWinToyBtn:{
|
|
|
0:[0,0,0,1],
|
|
|
- 1:[0,0,0,1],
|
|
|
- 2:[0,0,0,0],
|
|
|
+ 1:[0,-1,0,0],
|
|
|
+ // 2:[0,0,0,0],
|
|
|
onEnterPress:function(){
|
|
|
if(this.currentIndex==2){
|
|
|
H("unWinToyPopup");
|
|
@@ -513,31 +530,31 @@
|
|
|
}
|
|
|
},
|
|
|
onPress:function(){
|
|
|
- if(this.prevIndex == 0){
|
|
|
- if(this.event.keyCode == 40 || this.event.keyCode == "DOWN"){
|
|
|
- if(init.oursProduct_isVip == 0){
|
|
|
- this.reSetClass("unWinToyBtn",1);
|
|
|
- }else{
|
|
|
- this.reSetClass("unWinToyBtn",2);
|
|
|
- }
|
|
|
- }
|
|
|
- }else if(this.prevIndex == 1){
|
|
|
- if(this.event.keyCode == 38 || this.event.keyCode == "UP"){
|
|
|
- if(init.othersProduct_isVip == 0){
|
|
|
- this.reSetClass("unWinToyBtn",0);
|
|
|
- }
|
|
|
- }
|
|
|
- }else if(this.prevIndex == 2){
|
|
|
- if(this.event.keyCode == 38 || this.event.keyCode == "UP"){
|
|
|
- if(init.oursProduct_isVip == 1){
|
|
|
- this.reSetClass("unWinToyBtn",0);
|
|
|
- }else if(init.oursProduct_isVip == 0){
|
|
|
- this.reSetClass("unWinToyBtn",1);
|
|
|
- }else if(init.othersProduct_isVip == 0){
|
|
|
- this.reSetClass("unWinToyBtn",0);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // if(this.prevIndex == 0){
|
|
|
+ // if(this.event.keyCode == 40 || this.event.keyCode == "DOWN"){
|
|
|
+ // if(init.oursProduct_isVip == 0){
|
|
|
+ // this.reSetClass("unWinToyBtn",1);
|
|
|
+ // }else{
|
|
|
+ // this.reSetClass("unWinToyBtn",2);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }else if(this.prevIndex == 1){
|
|
|
+ // if(this.event.keyCode == 38 || this.event.keyCode == "UP"){
|
|
|
+ // if(init.othersProduct_isVip == 0){
|
|
|
+ // this.reSetClass("unWinToyBtn",0);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }else if(this.prevIndex == 2){
|
|
|
+ // if(this.event.keyCode == 38 || this.event.keyCode == "UP"){
|
|
|
+ // if(init.oursProduct_isVip == 1){
|
|
|
+ // this.reSetClass("unWinToyBtn",0);
|
|
|
+ // }else if(init.oursProduct_isVip == 0){
|
|
|
+ // this.reSetClass("unWinToyBtn",1);
|
|
|
+ // }else if(init.othersProduct_isVip == 0){
|
|
|
+ // this.reSetClass("unWinToyBtn",0);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
},
|
|
|
onBack:function(){
|
|
|
H("unWinToyPopup");
|
|
@@ -550,14 +567,26 @@
|
|
|
onEnterPress:function(){
|
|
|
if(this.currentIndex==0){
|
|
|
H("unWinToyVipPopup");
|
|
|
- this.reSetClass("voteBtn");
|
|
|
+ if(!!getCookie("mark")&&(!!getCookie("gameItemIdx") || !!getCookie("itemIdx"))){
|
|
|
+ this.reSetClass("voteBtn",getCookie("mark"));
|
|
|
+ }else{
|
|
|
+ this.reSetClass("voteBtn");
|
|
|
+ }
|
|
|
+ setCookie("gameItemIdx","");
|
|
|
+ setCookie("itemIdx","");
|
|
|
+ setCookie("mark","");
|
|
|
}
|
|
|
},
|
|
|
onBack:function(){
|
|
|
+ H("unWinToyVipPopup");
|
|
|
+ if(!!getCookie("mark")&&(!!getCookie("gameItemIdx") || !!getCookie("itemIdx"))){
|
|
|
+ this.reSetClass("voteBtn",getCookie("mark"));
|
|
|
+ }else{
|
|
|
+ this.reSetClass("voteBtn");
|
|
|
+ }
|
|
|
setCookie("gameItemIdx","");
|
|
|
setCookie("itemIdx","");
|
|
|
- H("unWinToyVipPopup");
|
|
|
- this.reSetClass("voteBtn");
|
|
|
+ setCookie("mark","");
|
|
|
},
|
|
|
},
|
|
|
poster:{
|
|
@@ -573,9 +602,15 @@
|
|
|
toZhuanti(index);
|
|
|
},
|
|
|
onBack:function(){
|
|
|
+ H("unWinToyVipPopup");
|
|
|
+ if(!!getCookie("mark")&&(!!getCookie("gameItemIdx") || !!getCookie("itemIdx"))){
|
|
|
+ this.reSetClass("voteBtn",getCookie("mark"));
|
|
|
+ }else{
|
|
|
+ this.reSetClass("voteBtn");
|
|
|
+ }
|
|
|
setCookie("gameItemIdx","");
|
|
|
setCookie("itemIdx","");
|
|
|
- window.location.href = "../index.html";
|
|
|
+ setCookie("mark","");
|
|
|
},
|
|
|
},
|
|
|
}
|
|
@@ -585,17 +620,19 @@
|
|
|
closeRulesPopup();
|
|
|
}else{
|
|
|
stopPlay();
|
|
|
- window.location.href = indexUrl;
|
|
|
+ Webview.closeBrwoser("返回");
|
|
|
+ // window.location.href = indexUrl;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- function userPrizelog(uid,act_id,is_vip,fn) {
|
|
|
+ function userPrizelog(uid,act_id,fn) {
|
|
|
+ juge();
|
|
|
ajax({
|
|
|
url: webUrl + "index.php?m=Home&c=Activityv2&a=userPrizelog",
|
|
|
data: {
|
|
|
uid: uid,
|
|
|
act_id: act_id,
|
|
|
- is_vip: is_vip
|
|
|
+ is_vip: init.is_vip,
|
|
|
},
|
|
|
success: function (res) {
|
|
|
fn && fn(res);
|
|
@@ -624,12 +661,13 @@
|
|
|
if(!myreg.test(phone)){
|
|
|
tips('手机号码格式有误!');
|
|
|
}else{
|
|
|
+ juge();
|
|
|
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,
|
|
|
+ is_vip: init.is_vip,
|
|
|
phone: phone
|
|
|
},
|
|
|
success: function (res) {
|
|
@@ -651,14 +689,14 @@
|
|
|
function toZhuanti(idx){
|
|
|
var exitStr = escape(backUrl);
|
|
|
var url = '';
|
|
|
- if(idx==0){
|
|
|
- url = 'http://10.255.0.219/en/pandian2018/index.html?activityId=1991&exitStr=' + exitStr;
|
|
|
- }else if(idx==1){
|
|
|
- url = 'http://10.255.0.219/en/pandian2018/index.html?activityId=1956&exitStr=' + exitStr;
|
|
|
- }else if(idx==2){
|
|
|
- url = 'http://10.255.0.219/en/pandian2018/index.html?activityId=1467&exitStr=' + exitStr;
|
|
|
+ if(index==0){
|
|
|
+ fullscreenPlay("00000001000000000002000000120684")
|
|
|
+ }else if(index==1){
|
|
|
+ fullscreenPlay("00000001000000000014000000387305")
|
|
|
+ }else if(index==2){
|
|
|
+ fullscreenPlay("00000001000000000029000000278889")
|
|
|
}
|
|
|
- window.location.href = url;
|
|
|
+ // window.location.href = url;
|
|
|
}
|
|
|
|
|
|
function details_page (id) {
|
|
@@ -747,13 +785,14 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- function prizelog(uid,act_id,is_vip,fn) {
|
|
|
+ function prizelog(uid,act_id,fn) {
|
|
|
+ juge();
|
|
|
ajax({
|
|
|
url: webUrl + "index.php?m=Home&c=Activityv2&a=prizelog",
|
|
|
data: {
|
|
|
uid: uid,
|
|
|
act_id: act_id,
|
|
|
- is_vip: is_vip,
|
|
|
+ is_vip: init.is_vip,
|
|
|
},
|
|
|
success: function (res) {
|
|
|
fn && fn(res);
|
|
@@ -765,12 +804,13 @@
|
|
|
}
|
|
|
|
|
|
function prize(fn) {
|
|
|
+ juge();
|
|
|
ajax({
|
|
|
url: webUrl + "index.php?m=Home&c=Activityv2&a=prize",
|
|
|
data: {
|
|
|
uid: uid,
|
|
|
act_id: init.act_id,
|
|
|
- is_vip: init.oursProduct_isVip+init.othersProduct_isVip,//is_vip1+is_vip2
|
|
|
+ is_vip: init.is_vip,//is_vip1+is_vip2
|
|
|
run: "complate",//'complate',
|
|
|
is_test:1,
|
|
|
},
|
|
@@ -870,13 +910,14 @@
|
|
|
}
|
|
|
|
|
|
|
|
|
- function getMengbaoList(uid,is_vip,fn) {
|
|
|
+ function getMengbaoList(uid,fn) {
|
|
|
+ juge();
|
|
|
ajax({
|
|
|
url:webUrl+"index.php?m=Home&c=Activityv2&a=getMengbaoList",
|
|
|
data:{
|
|
|
act_id:init.act_id,
|
|
|
uid: uid,
|
|
|
- is_vip: is_vip,
|
|
|
+ is_vip: init.is_vip,
|
|
|
},
|
|
|
success: function (res) {
|
|
|
fn && fn(res);
|
|
@@ -886,13 +927,14 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- function getVoteChance(uid,is_vip,fn) {
|
|
|
+ function getVoteChance(uid,fn) {
|
|
|
+ juge();
|
|
|
ajax({
|
|
|
url:webUrl+"index.php?m=Home&c=Activityv2&a=getVoteChance",
|
|
|
data:{
|
|
|
act_id:init.act_id,
|
|
|
uid: uid,
|
|
|
- is_vip: is_vip,
|
|
|
+ is_vip: init.is_vip,
|
|
|
},
|
|
|
success: function (res) {
|
|
|
fn && fn(res);
|
|
@@ -902,13 +944,14 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- function vote(uid,is_vip,voteid,fn) {
|
|
|
+ function vote(uid,voteid,fn) {
|
|
|
+ juge();
|
|
|
ajax({
|
|
|
url:webUrl+"index.php?m=Home&c=Activityv2&a=vote",
|
|
|
data:{
|
|
|
act_id:init.act_id,
|
|
|
uid: uid,
|
|
|
- is_vip: is_vip,
|
|
|
+ is_vip: init.is_vip,
|
|
|
mengbao_id:voteid,
|
|
|
score:1,
|
|
|
},
|
|
@@ -920,13 +963,14 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- function getPrizeNum(uid,is_vip,fn) {
|
|
|
+ function getPrizeNum(uid,fn) {
|
|
|
+ juge();
|
|
|
ajax({
|
|
|
url:webUrl+"index.php?m=Home&c=Activityv2&a=getPrizeNum",
|
|
|
data:{
|
|
|
act_id:init.act_id,
|
|
|
uid: uid,
|
|
|
- is_vip: is_vip,
|
|
|
+ is_vip: init.is_vip,
|
|
|
},
|
|
|
success: function (res) {
|
|
|
fn && fn(res);
|
|
@@ -974,7 +1018,9 @@
|
|
|
try{
|
|
|
starcorExt.setHandler("Resume",function(isResumed){
|
|
|
if(isResumed){//从全屏或设置键回来
|
|
|
+ if(main.className == "page_btn"){
|
|
|
smallvodPlay(videoId);
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
starcorExt.setHandler("PlayOnCompletion",function(isCompleted){
|
|
@@ -1001,25 +1047,33 @@
|
|
|
}
|
|
|
|
|
|
function times(){
|
|
|
- getVoteChance(uid,init.oursProduct_isVip+init.othersProduct_isVip,function(res){
|
|
|
+ getVoteChance(uid,function(res){
|
|
|
if(res.code==0){
|
|
|
G("number").innerHTML = res.data.num;
|
|
|
}
|
|
|
});
|
|
|
- getPrizeNum(uid,init.oursProduct_isVip+init.othersProduct_isVip,function(res){
|
|
|
+ getPrizeNum(uid,function(res){
|
|
|
if(res.code==0){
|
|
|
init.gameNum = res.data.num>=0?res.data.num:0;
|
|
|
G("num").innerHTML = res.data.num>=0?res.data.num:0;
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- getMengbaoList(uid,init.oursProduct_isVip+init.othersProduct_isVip,function(res){
|
|
|
+ getMengbaoList(uid,function(res){
|
|
|
if(res.code==0){
|
|
|
- var _html="";
|
|
|
- for(var i=0;i<res.data.length;i++){
|
|
|
+ var _html="",_li="",_span="";
|
|
|
+ var _len = res.data.length%4==0?res.data.length/4:parseInt(res.data.length/4)+1;
|
|
|
+ for(var i=0;i<_len;i++){
|
|
|
mengwaMediaArr.push(res.data[i].media_id);
|
|
|
- voteArr.push(res.data[i].mengbao_id);
|
|
|
- _html+='<li class="voteLi"><div class="u_img"><img src="'+res.data[i].image+'" alt="" /><i id="vote'+i+'">'+res.data[i].score+'</i></div><div class="u_msg">'+res.data[i].name+' '+res.data[i].age+'</div><span class="voteBtn">投你一票</span></li>'
|
|
|
+ numArr.push(res.data[i].media_id);
|
|
|
+ voteArr.push(res.data[i].media_num);
|
|
|
+ _li="";_span="";
|
|
|
+ for(var j=0;j<4;j++){
|
|
|
+ if(i*4+j>=res.data.length) return;
|
|
|
+ _li+= '<li class="voteLi"><div class="u_img voteBtn"><img src="'+res.data[i*4+j].image+'" alt="" /><i id="vote'+(i*4+j)+'">'+res.data[i*4+j].score+'</i></div><div class="u_msg">'+res.data[i*4+j].name+' '+res.data[i*4+j].age+'</div></li>';
|
|
|
+ _span += '<span class="voteBtn voteTxt" data-mark="1"><i>投你一票</i></span>';
|
|
|
+ }
|
|
|
+ _html += (_li + _span);
|
|
|
}
|
|
|
G("voteUl").innerHTML = _html;
|
|
|
}
|
|
@@ -1040,7 +1094,7 @@
|
|
|
|
|
|
authorization(init.contentcode,uid,usertoken,mac,version,function(res){
|
|
|
if(res.code == 0 && res.data.result==0){
|
|
|
- // init.oursProduct_isVip = 1;
|
|
|
+ init.oursProduct_isVip = 1;
|
|
|
addClass(G("othersProduct"),'hasOrder');
|
|
|
if(!!getStr("mw_oursBag")){
|
|
|
payResult(init.oursProduct_isVip,uid,init.oursId);
|
|
@@ -1053,13 +1107,45 @@
|
|
|
},function(){
|
|
|
times();
|
|
|
});
|
|
|
+ // if(!!getCookie("itemIdx") || !!getCookie("gameItemIdx")){
|
|
|
+ // if(!!getCookie("itemIdx")){
|
|
|
+ // 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";
|
|
|
+ // }
|
|
|
+ // var idx = (!!getCookie("mark"))?getCookie("mark")-4:0;
|
|
|
+ // var h = document.getElementsByClassName("voteTxt")[0].offsetHeight+document.getElementsByClassName("voteLi")[0].offsetHeight+20
|
|
|
+ // G("scrollCont").style.top = - 770-(parseInt(idx/4/2)*h) + "px";
|
|
|
+ // S("unWinToyVipPopup");
|
|
|
+ // pageConf.focusItem = "poster";
|
|
|
+ // pageConf.focusIdx = getCookie("itemIdx");
|
|
|
+ // setCookie("gameItemIdx","");
|
|
|
+ // setCookie("itemIdx","");
|
|
|
+ // }
|
|
|
btnInit();
|
|
|
- if(main.className == "page_btn"){
|
|
|
- smallvodPlay(videoId);
|
|
|
+ }
|
|
|
+
|
|
|
+ function juge(){
|
|
|
+ if(init.isYearVip){
|
|
|
+ init.is_vip = 2;
|
|
|
+ }
|
|
|
+ else if(init.othersProduct_isVip || init.oursProduct_isVip || init.allProduce_isVip){
|
|
|
+ init.is_vip = 1;
|
|
|
+ }
|
|
|
+ else if(init.othersProduct_isVip==0 && init.oursProduct_isVip==0){
|
|
|
+ init.is_vip = 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function btnInit(){
|
|
|
+ if(!!getStr("for")){
|
|
|
+ pageConf.focusItem = "ip_btn";
|
|
|
+ pageConf.focusIdx = getStr("for");
|
|
|
+ G("scrollCont").style.top = - 500 + "px";
|
|
|
+ }
|
|
|
+ if(pageConf.focusItem == "page_btn"){
|
|
|
+ smallvodPlay(videoId);
|
|
|
+ }
|
|
|
var btnConfig = {
|
|
|
className: pageConf.focusItem,
|
|
|
currentIndex: pageConf.focusIdx,
|
|
@@ -1070,7 +1156,6 @@
|
|
|
window.main = new tvSysBtnBind(btnConfig);
|
|
|
main.reLoad();
|
|
|
}
|
|
|
- btnInit();
|
|
|
pageInit();
|
|
|
|
|
|
window.onunload = function(){
|