|
@@ -308,14 +308,13 @@
|
|
up:["ip_btn",2],
|
|
up:["ip_btn",2],
|
|
onEnterPress:function(){
|
|
onEnterPress:function(){
|
|
if(!this.current.getAttribute("data-mark")){
|
|
if(!this.current.getAttribute("data-mark")){
|
|
- var idx = this.currentIndex>3?this.currentIndex-4:this.currentIndex;
|
|
|
|
- // tips(mengwaMediaArr[idx]+"++++++++"+numArr[idx],6000);
|
|
|
|
- fullscreenPlay(mengwaMediaArr[idx],numArr[idx]);
|
|
|
|
|
|
+ // var idx = this.currentIndex>3?this.currentIndex-4:this.currentIndex;
|
|
|
|
+ fullscreenPlay(this.current.getAttribute("data-media"),this.current.getAttribute("data-num"));
|
|
}else{
|
|
}else{
|
|
- vote(uid,voteArr[this.currentIndex-4],function(res){
|
|
|
|
|
|
+ vote(uid,this.current.getAttribute("data-mengbao"),function(res){
|
|
if(res.code == 0){
|
|
if(res.code == 0){
|
|
G("number").innerHTML = res.data.num;
|
|
G("number").innerHTML = res.data.num;
|
|
- G("vote"+(main.currentIndex-4)).innerHTML = G("vote"+(main.currentIndex-4)).innerHTML*1+1;
|
|
|
|
|
|
+ G("vote"+(main.current.getAttribute("data-mark"))).innerHTML = G("vote"+(main.current.getAttribute("data-mark"))).innerHTML*1+1;
|
|
tips("投票成功");
|
|
tips("投票成功");
|
|
getPrizeNum(uid,function(res){
|
|
getPrizeNum(uid,function(res){
|
|
if(res.code==0){
|
|
if(res.code==0){
|
|
@@ -704,15 +703,15 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- function toZhuanti(idx){
|
|
|
|
- var exitStr = escape(backUrl);
|
|
|
|
- var url = '';
|
|
|
|
|
|
+ function toZhuanti(index){
|
|
|
|
+ // var exitStr = escape(backUrl);
|
|
|
|
+ // var url = '';
|
|
if(index==0){
|
|
if(index==0){
|
|
- fullscreenPlay("00000001000000000002000000120684")
|
|
|
|
|
|
+ fullscreenPlay("00000001000000000025000000326508")
|
|
}else if(index==1){
|
|
}else if(index==1){
|
|
- fullscreenPlay("00000001000000000014000000387305")
|
|
|
|
|
|
+ fullscreenPlay("00000001000000000032000000221170")
|
|
}else if(index==2){
|
|
}else if(index==2){
|
|
- fullscreenPlay("00000001000000000029000000278889")
|
|
|
|
|
|
+ fullscreenPlay("00000001000000000028000000428043")
|
|
}
|
|
}
|
|
// window.location.href = url;
|
|
// window.location.href = url;
|
|
}
|
|
}
|
|
@@ -1001,7 +1000,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
function fullscreenPlay(mid,idx) {
|
|
function fullscreenPlay(mid,idx) {
|
|
- idx = idx || 0;
|
|
|
|
|
|
+ idx = idx*1-1 || 0;
|
|
var playIntent = {
|
|
var playIntent = {
|
|
package : "com.hunantv.operator",
|
|
package : "com.hunantv.operator",
|
|
action: "mangotv://com.hunantv.operator/player/vod",
|
|
action: "mangotv://com.hunantv.operator/player/vod",
|
|
@@ -1091,11 +1090,11 @@
|
|
_li="";_span="";
|
|
_li="";_span="";
|
|
for(var j=0;j<4;j++){
|
|
for(var j=0;j<4;j++){
|
|
if(i*4+j<res.data.length){
|
|
if(i*4+j<res.data.length){
|
|
- _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>';
|
|
|
|
|
|
+ _li+= '<li class="voteLi"><div class="u_img voteBtn" data-media="'+res.data[i*4+j].media_id+'" data-num="'+res.data[i*4+j].media_num+'"><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>';
|
|
if(i==_len-1&&res.data.length%4!=0){
|
|
if(i==_len-1&&res.data.length%4!=0){
|
|
- _span += '<span class="voteBtn voteTxt" data-mark="1" data-key="1"><i>投你一票</i></span>';
|
|
|
|
|
|
+ _span += '<span class="voteBtn voteTxt" data-mark="'+(i*4+j)+'" data-key="1" data-mengbao="'+res.data[i*4+j].mengbao_id+'"><i>投你一票</i></span>';
|
|
}else{
|
|
}else{
|
|
- _span += '<span class="voteBtn voteTxt" data-mark="1"><i>投你一票</i></span>';
|
|
|
|
|
|
+ _span += '<span class="voteBtn voteTxt" data-mark="'+(i*4+j)+'" data-mengbao="'+res.data[i*4+j].mengbao_id+'"><i>投你一票</i></span>';
|
|
}
|
|
}
|
|
|
|
|
|
}else if(i*4+j>=res.data.length&&(i*4+j)<res.data.length+(4-(res.data.length%4))){
|
|
}else if(i*4+j>=res.data.length&&(i*4+j)<res.data.length+(4-(res.data.length%4))){
|
|
@@ -1156,10 +1155,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
function juge(){
|
|
function juge(){
|
|
- if(init.isYearVip){
|
|
|
|
- init.is_vip = 2;
|
|
|
|
- }
|
|
|
|
- else if(init.othersProduct_isVip || init.oursProduct_isVip || init.allProduce_isVip){
|
|
|
|
|
|
+ if(init.othersProduct_isVip || init.oursProduct_isVip){
|
|
init.is_vip = 1;
|
|
init.is_vip = 1;
|
|
}
|
|
}
|
|
else if(init.othersProduct_isVip==0 && init.oursProduct_isVip==0){
|
|
else if(init.othersProduct_isVip==0 && init.oursProduct_isVip==0){
|