Browse Source

跳转修改

Reiskuchen 5 years ago
parent
commit
be505d7b4c
1 changed files with 9 additions and 4 deletions
  1. 9 4
      minigame/WebContent/lottery.html

+ 9 - 4
minigame/WebContent/lottery.html

@@ -25,7 +25,7 @@
             if(id == null || id == undefined || id == ""){
             if(id == null || id == undefined || id == ""){
             	window.location.href = "https://wx.ttkuaiban.com/minigame";
             	window.location.href = "https://wx.ttkuaiban.com/minigame";
             }
             }
-        	success();
+        	
             $.post("./user/getWxConfigParam?url=https://wx.ttkuaiban.com/minigame/lottery.html", {}, function(resp) {
             $.post("./user/getWxConfigParam?url=https://wx.ttkuaiban.com/minigame/lottery.html", {}, function(resp) {
         		if (resp.code == 'error') {
         		if (resp.code == 'error') {
         			console.log(resp.code);
         			console.log(resp.code);
@@ -154,8 +154,7 @@
                 	alert("请填写完整信息");
                 	alert("请填写完整信息");
                 }else{
                 }else{
                 	$.post("./prize/luckDrawAddInfo", {
                 	$.post("./prize/luckDrawAddInfo", {
-//                 		id: recordId,
-						id: 16,
+                		id: recordId,
                 		phone: phone,
                 		phone: phone,
                 		username: name
                 		username: name
                 	}, function(resp) {
                 	}, function(resp) {
@@ -163,7 +162,13 @@
         					console.log(resp.code);
         					console.log(resp.code);
         				}else{
         				}else{
         					alert("填写成功");
         					alert("填写成功");
-//         					window.location.href = "index.html";
+        					$(".mask").hide();
+        		            $(".success").hide();
+        		            $(".result_success_title").hide();
+        		            $(".result_success_logo").hide();
+        		            $(".result_success_name").hide();
+        		            $(".result_success_phone").hide();
+        		            $(".result_success_button").hide();
         				}
         				}
         			});
         			});
                 }
                 }