...
|
...
|
@@ -32,11 +32,12 @@ |
|
|
aArr[liNnm] = 1;
|
|
|
if (arr.prize == 1) {
|
|
|
var newCover = awaCover(arr.prizeRemark);
|
|
|
var res= addPrize(88,arr.id);
|
|
|
if(res.code==200){
|
|
|
var res = addPrize(88, arr.id);
|
|
|
if (res.code == 200) {
|
|
|
$("body").append(newCover);
|
|
|
}else{
|
|
|
} $("body").append(noAwa());
|
|
|
} else {
|
|
|
}
|
|
|
$("body").append(noAwa());
|
|
|
} else {
|
|
|
var newCover = noAwa();
|
|
|
$("body").append(newCover);
|
...
|
...
|
@@ -92,30 +93,36 @@ |
|
|
});
|
|
|
|
|
|
//我的奖品
|
|
|
$.ajax({
|
|
|
url: '/activity/brandDraw/getBrandPrizeListByUid?uid=' + 2,
|
|
|
type: "get",
|
|
|
contentType: "application/json",
|
|
|
dataType: 'json',
|
|
|
success: function (data) {
|
|
|
if (data.code === 200) {
|
|
|
var arr = data.data;
|
|
|
for (var i = 0; i < boxNumLimit; i++) {
|
|
|
aArr[i] = 0;
|
|
|
var _obj = arr[i];
|
|
|
var dtime = _obj.createTime;
|
|
|
if(dtime>0){
|
|
|
var strTime = new Date(parseInt(dtime) * 1000).toISOString().slice(0,16).replace("T"," ");
|
|
|
}
|
|
|
$(".awa-list-ul ul").append('<li><span>' + _obj.prizeRemark + '</span><span>' + strTime + '</span></li>');
|
|
|
$(".act-list-ul").append('<a><li>' + _obj.brandInfo + '</li></a>');
|
|
|
}
|
|
|
} else {
|
|
|
// $(".a-box-ul").append('<li awa="yes"><img src=' + _obj.boxImage + ' /></li>');
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(function () {
|
|
|
$(".check-awa-btn").live("click", function () {
|
|
|
$.ajax({
|
|
|
url: '/activity/brandDraw/getBrandPrizeListByUid?uid=' + 2,
|
|
|
type: "get",
|
|
|
contentType: "application/json",
|
|
|
dataType: 'json',
|
|
|
success: function (data) {
|
|
|
if (data.code === 200) {
|
|
|
var arr = data.data;
|
|
|
for (var i = 0; i < arr.length; i++) {
|
|
|
var _obj = arr[i];
|
|
|
if (_obj != null) {
|
|
|
var dtime = _obj.createTime;
|
|
|
if (dtime > 0) {
|
|
|
var strTime = new Date(parseInt(dtime) * 1000).toISOString().slice(0, 16).replace("T", " ");
|
|
|
}
|
|
|
$(".awa-list-ul ul").append('<li><span>' + _obj.prizeRemark + '</span><span>' + strTime + '</span></li>');
|
|
|
$(".act-list-ul").append('<a><li>' + _obj.brandInfo + '</li></a>');
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
// $(".a-box-ul").append('<li awa="yes"><img src=' + _obj.boxImage + ' /></li>');
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
);
|
|
|
|
|
|
</script>
|
|
|
</head>
|
...
|
...
|
|