Commit 6f70817a by 颜景龙

礼物领取

parent a11d17bc
正在显示 包含 3 行增加9 行删除
...@@ -707,13 +707,7 @@ ...@@ -707,13 +707,7 @@
success: function(result){ success: function(result){
$('#submitBtn').removeClass("disabled"); $('#submitBtn').removeClass("disabled");
if (result.code == 0) { if (result.code == 0) {
$("#uploadForm")[0].reset(); location.reload();
$.dialog({
content : '礼物领取成功',
title: 'ok',
width: 600,
time : 2000
});
} else { } else {
$.dialog({ $.dialog({
content : result.message, content : result.message,
......
...@@ -106,11 +106,11 @@ ...@@ -106,11 +106,11 @@
if (id && customerUserId) { if (id && customerUserId) {
$.ajax({ $.ajax({
type: 'get', type: 'get',
url: HTTP_URL+"/wedofit/gift/isAcquireGift/"+customerUserId, url: HTTP_URL+"/wedofit/gift/isHasGift/"+customerUserId,
contentType: 'application/json', contentType: 'application/json',
dataType: 'json', dataType: 'json',
success: function(result){ success: function(result){
if (result.code == 0 && result.data.status) { if (result.code == 0 && result.data) {
$('<button type="submit" id="submitBtn" class="zbtn zbtn-full zbtn-lg submit-btn">参加活动</button>').appendTo($("body")); $('<button type="submit" id="submitBtn" class="zbtn zbtn-full zbtn-lg submit-btn">参加活动</button>').appendTo($("body"));
$("#submitBtn").on('click', function(e){ $("#submitBtn").on('click', function(e){
if (id && customerUserId) { if (id && customerUserId) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此消息的编辑!
注册登录 后发表评论