|
|
$(
|
|
|
function() {
|
|
|
function () {
|
|
|
$(".rule-btn").click(
|
|
|
function (){
|
|
|
function () {
|
|
|
$("body").append("<div class='dia-bg'></div>");
|
|
|
$(".dia-c").show();
|
|
|
}
|
...
|
...
|
@@ -12,7 +12,7 @@ $( |
|
|
// $(".dia-bg").remove();
|
|
|
// }
|
|
|
// );
|
|
|
$(".dia-c .close-btn").live("click",function (){
|
|
|
$(".dia-c .close-btn").live("click", function () {
|
|
|
$(this).parents(".dia-c").hide();
|
|
|
$(".dia-bg").remove();
|
|
|
});
|
...
|
...
|
@@ -21,61 +21,78 @@ $( |
|
|
$(".dia-bg").remove();
|
|
|
});
|
|
|
$(".check-awa-btn").click(
|
|
|
function (){
|
|
|
function () {
|
|
|
$(".awa-list-c").toggle();
|
|
|
}
|
|
|
);
|
|
|
$(".close-list-btn").click(
|
|
|
function (){
|
|
|
function () {
|
|
|
$(this).parents(".awa-list-c").hide();
|
|
|
}
|
|
|
);
|
|
|
$(".awa-cover .close-btn").live("click", function (){
|
|
|
$(".awa-cover .close-btn").live("click", function () {
|
|
|
$(".dia-bg").remove();
|
|
|
$(".awa-cover").remove();
|
|
|
});
|
|
|
$(".dia-c .try-again").live("click",function (){
|
|
|
$(".dia-c .try-again").live("click", function () {
|
|
|
$(this).parents(".dia-c").remove();
|
|
|
$(".dia-bg").remove();
|
|
|
}
|
|
|
);
|
|
|
}
|
|
|
);
|
|
|
function awaCover(prize){
|
|
|
function awaCover(prize) {
|
|
|
var cHtml = '<div class="awa-cover">' +
|
|
|
'<div class="awa-cover-main">' +
|
|
|
'<p class="title-1">'+prize+'</p>' +
|
|
|
'<p class="title-2">现金券可至【我的-我的资产】查看</p>'+
|
|
|
'<img class="pic-1" src="images/coupon.gif" />' +
|
|
|
'<a>' +
|
|
|
'<img class="pic-2" src="images/awa-button.png" />' +
|
|
|
'</a>' +
|
|
|
'<img class="pic-3" src="images/go_word.png" />' +
|
|
|
'</div>' +
|
|
|
'<a class="close-btn">' +
|
|
|
'<img src="images/close-btn.png" />' +
|
|
|
'</a>' +
|
|
|
'</div>' +
|
|
|
'<div class="dia-bg"></div>'
|
|
|
'<div class="awa-cover-main">' +
|
|
|
'<p class="title-1">' + prize + '</p>' +
|
|
|
'<p class="title-2">现金券可至【我的-我的资产】查看</p>' +
|
|
|
'<img class="pic-1" src="images/coupon.gif" />' +
|
|
|
'<a>' +
|
|
|
'<img class="pic-2" src="images/awa-button.png" />' +
|
|
|
'</a>' +
|
|
|
'<img class="pic-3" src="images/go_word.png" />' +
|
|
|
'</div>' +
|
|
|
'<a class="close-btn">' +
|
|
|
'<img src="images/close-btn.png" />' +
|
|
|
'</a>' +
|
|
|
'</div>' +
|
|
|
'<div class="dia-bg"></div>'
|
|
|
return cHtml;
|
|
|
}
|
|
|
function awaBrand(){
|
|
|
|
|
|
function addPrize(uid, boxid) {
|
|
|
var str;
|
|
|
$.ajax({
|
|
|
url: '/activity/brandDraw/addBrandActPrize?uid=' + uid + '&boxId=' + boxid,
|
|
|
type: "get",
|
|
|
contentType: "application/json",
|
|
|
dataType: 'json',
|
|
|
async:false, //为了简便,设置为同步操作
|
|
|
success: function (data) {
|
|
|
str=data;
|
|
|
}
|
|
|
});
|
|
|
return str ;
|
|
|
}
|
|
|
|
|
|
|
|
|
function awaBrand() {
|
|
|
var cHtml = '<div class="dia-c-2" style="display:block;">' +
|
|
|
'<a class="close-btn">' +
|
|
|
'<img src="images/close-btn.png" />' +
|
|
|
'</a>' +
|
|
|
'<img class="try-again" src="images/Levis.png" />' +
|
|
|
'</div>' +
|
|
|
'<div class="dia-bg"></div>'
|
|
|
'<a class="close-btn">' +
|
|
|
'<img src="images/close-btn.png" />' +
|
|
|
'</a>' +
|
|
|
'<img class="try-again" src="images/Levis.png" />' +
|
|
|
'</div>' +
|
|
|
'<div class="dia-bg"></div>'
|
|
|
return cHtml;
|
|
|
}
|
|
|
function noAwa(){
|
|
|
function noAwa() {
|
|
|
var cHtml = '<div class="dia-c-2" style="display:block;">' +
|
|
|
'<a class="close-btn">' +
|
|
|
'<img src="images/close-btn.png" />' +
|
|
|
'</a>' +
|
|
|
'<img class="try-again-2" src="images/coupon.gif" />' +
|
|
|
'</div>' +
|
|
|
'<div class="dia-bg"></div>'
|
|
|
'<a class="close-btn">' +
|
|
|
'<img src="images/close-btn.png" />' +
|
|
|
'</a>' +
|
|
|
'<img class="try-again-2" src="images/coupon.gif" />' +
|
|
|
'</div>' +
|
|
|
'<div class="dia-bg"></div>'
|
|
|
return cHtml;
|
|
|
} |
...
|
...
|
|