|
@@ -309,6 +309,7 @@
|
|
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;
|
|
var idx = this.currentIndex>3?this.currentIndex-4:this.currentIndex;
|
|
|
|
+ // tips(mengwaMediaArr[idx]+"++++++++"+numArr[idx],6000);
|
|
fullscreenPlay(mengwaMediaArr[idx],numArr[idx]);
|
|
fullscreenPlay(mengwaMediaArr[idx],numArr[idx]);
|
|
}else{
|
|
}else{
|
|
vote(uid,voteArr[this.currentIndex-4],function(res){
|
|
vote(uid,voteArr[this.currentIndex-4],function(res){
|
|
@@ -341,7 +342,7 @@
|
|
if(this.prevIndex == this.hotbtn.length-2){
|
|
if(this.prevIndex == this.hotbtn.length-2){
|
|
this.reSetClass("voteBtn",this.hotbtn.length-1);
|
|
this.reSetClass("voteBtn",this.hotbtn.length-1);
|
|
}else{
|
|
}else{
|
|
- this.reSetClass("voteBtn",this.hotbtn.length-listM);
|
|
|
|
|
|
+ this.reSetClass("voteBtn",this.hotbtn.length-1-listM);
|
|
}
|
|
}
|
|
}else if(!!this.prev.getAttribute("data-mark") && !!this.hotbtn[this.prevIndex+4].getAttribute("data-mark")){
|
|
}else if(!!this.prev.getAttribute("data-mark") && !!this.hotbtn[this.prevIndex+4].getAttribute("data-mark")){
|
|
this.reSetClass("voteBtn",this.hotbtn.length-2);
|
|
this.reSetClass("voteBtn",this.hotbtn.length-2);
|
|
@@ -1085,8 +1086,8 @@
|
|
var _len = res.data.length%4==0?res.data.length/4:parseInt(res.data.length/4)+1;
|
|
var _len = res.data.length%4==0?res.data.length/4:parseInt(res.data.length/4)+1;
|
|
for(var i=0;i<_len;i++){
|
|
for(var i=0;i<_len;i++){
|
|
mengwaMediaArr.push(res.data[i].media_id);
|
|
mengwaMediaArr.push(res.data[i].media_id);
|
|
- numArr.push(res.data[i].media_id);
|
|
|
|
- voteArr.push(res.data[i].media_num);
|
|
|
|
|
|
+ numArr.push(res.data[i].media_num);
|
|
|
|
+ voteArr.push(res.data[i].mengbao_id);
|
|
_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){
|