Reiskuchen 5 سال پیش
والد
کامیت
d16ae6a1db
3فایلهای تغییر یافته به همراه7 افزوده شده و 7 حذف شده
  1. 5 5
      minigame/WebContent/lottery.html
  2. 1 1
      minigame/WebContent/result.html
  3. 1 1
      minigame/WebContent/result_all.html

+ 5 - 5
minigame/WebContent/lottery.html

@@ -33,7 +33,7 @@
             
             
             //获取
-            $.post("../prize/luckDrawList", {}, function(resp) {
+            $.post("./prize/luckDrawList", {}, function(resp) {
 				if (resp.code == 'error') {
 					console.log(resp.code);
 				}else{
@@ -52,7 +52,7 @@
             $(".button").click(function () {
                 if(enable == true){
 					//获取抽奖结果
-                    $.post("../prize/luckDraw", {userId: id}, function(resp) {
+                    $.post("./prize/luckDraw", {userId: id}, function(resp) {
         				if (resp.code == 'error') {
         					alert(resp.msg);
         				}else{
@@ -104,7 +104,7 @@
                 if(name == "" || phone == ""){
                 	alert("请填写完整信息");
                 }else{
-                	$.post("../prize/luckDrawAddInfo", {
+                	$.post("./prize/luckDrawAddInfo", {
                 		id: id,
                 		phone: phone,
                 		username: name
@@ -185,7 +185,7 @@
         document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
     		//发送给好友
     		WeixinJSBridge.on('menu:share:appmessage', function(argv){
-    			$.post("../prize/luckDrawAddShare", {uid: id}, function(resp) {
+    			$.post("./prize/luckDrawAddShare", {uid: id}, function(resp) {
     				if (resp.code == 'error') {
     					console.log(resp.code);
     				}else{
@@ -195,7 +195,7 @@
     		});
     		//分享到朋友圈
     		WeixinJSBridge.on('menu:share:timeline', function(argv){
-    			$.post("../prize/luckDrawAddShare", {uid: id}, function(resp) {
+    			$.post("./prize/luckDrawAddShare", {uid: id}, function(resp) {
     				if (resp.code == 'error') {
     					console.log(resp.code);
     				}else{

+ 1 - 1
minigame/WebContent/result.html

@@ -18,7 +18,7 @@
 	    $(function(){
 	    	var id = localStorage.getItem("userId");
 			if(id != null){
-				$.post("../prize/getluckDrawByUserId", {
+				$.post("./prize/getluckDrawByUserId", {
 					UserId: id
 				}, function(resp) {
 					if (resp.code == 'error') {

+ 1 - 1
minigame/WebContent/result_all.html

@@ -16,7 +16,7 @@
     <link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
     <script type="text/javascript">
 	    $(function(){
-			$.post("../prize/luckDrawListBack", {}, function(resp) {
+			$.post("./prize/luckDrawListBack", {}, function(resp) {
 				if (resp.code == 'error') {
 					console.log(resp.code);
 				}else{