chenguoliang лет назад: 5
Родитель
Сommit
a50c3861d8
1 измененных файлов с 11 добавлено и 11 удалено
  1. 11 11
      h5v2/lyj_20200519_activity/index.html

+ 11 - 11
h5v2/lyj_20200519_activity/index.html

@@ -298,8 +298,16 @@ body{
     }
     
     function goCJ(){
-        isLock = true;
-        ajaxWinning(Math.random()>0.5?'complate':'nocomplate');
+        if(remainTimes<=0){
+            if(dudu_is_vip==1 || child_is_vip==1){
+                location.href =  url_prefix + 'cyg.html';
+            }else{
+                location.href =  url_prefix + 'cyg_free.html';
+            }
+        }else{
+            isLock = true;
+            ajaxWinning(Math.random()>0.5?'complate':'nocomplate');
+        }
     }
 
 	function goAction(button){
@@ -314,15 +322,7 @@ body{
         }else if(button.id=='xxjnh'){//线下嘉年华
             location.href =  url_prefix + 'xxjnh.html?f='+button.id;
         }else if(button.id=='start'){
-            if(remainTimes<=0){
-                if(dudu_is_vip==1 || child_is_vip==1){
-                    location.href =  url_prefix + 'cyg.html';
-                }else{
-                    location.href =  url_prefix + 'cyg_free.html';
-                }
-            }else{
-                goCJ();
-            }
+            goCJ();
         }else if(button.id=='cj0'){//10
            if(checkTime('6/1/2020 10:00:00','6/1/2020 11:00:00')){
                 goCJ();