Wang před 5 roky
rodič
revize
a925408c8d

+ 2 - 2
h5v2/mw_20200108_act/css/page1.css

@@ -2,7 +2,7 @@
 * @Author: Marte
 * @Date:   2020-01-14 09:57:52
 * @Last Modified by:   Marte
-* @Last Modified time: 2020-01-21 19:36:57
+* @Last Modified time: 2020-01-21 21:19:29
 */
 html, body, ul, li, p, img { margin:0; padding:0; }
 ul, ol { list-style:none; }
@@ -278,7 +278,7 @@ body{
     width: 1000px;
     /*height: 820px;*/
     padding: 30px;
-    margin: 220px auto 0;
+    margin: 120px auto 100px;
     border: 6px solid #7A0B18;
     border-radius: 30px;
     margin-bottom: 230px;

+ 4 - 3
h5v2/mw_20200108_act/index1.html

@@ -309,6 +309,7 @@
                     onEnterPress:function(){
                         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]);
                         }else{
                             vote(uid,voteArr[this.currentIndex-4],function(res){
@@ -341,7 +342,7 @@
                                 if(this.prevIndex == this.hotbtn.length-2){
                                     this.reSetClass("voteBtn",this.hotbtn.length-1);
                                 }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")){
                                 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;
                         for(var i=0;i<_len;i++){
                             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="";
                             for(var j=0;j<4;j++){
                                 if(i*4+j<res.data.length){