|
@@ -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{
|