Authored by yyq

birth coupon

... ... @@ -261,8 +261,8 @@ const getMessageDetail = (uid, params, limit) => {
coupons.push({
id: value.id,
remark: value.couponName || '',
useTime: _.get(value, 'body.use_time', ''),
pickTime: _.get(value, 'body.collar_time', ''),
useTime: _.get(msg, 'body.use_time', ''),
pickTime: _.get(msg, 'body.collar_time', ''),
canPick: true
});
});
... ...
... ... @@ -62,6 +62,7 @@ $pickBtn.click(function() {
if (pickBusy) {
return;
}
pickBusy = true;
$.ajax({
type: 'GET',
... ... @@ -70,13 +71,13 @@ $pickBtn.click(function() {
}).then(function(jsonData) {
var msg = jsonData.message;
if (jsonData.code === 200) {
if (+jsonData.code === 200) {
msg = '领取成功';
$(this).removeClass('pick-coupon-btn');
$pickBtn.removeClass('pick-coupon-btn');
} else {
pickBusy = false;
}
pickBusy = false;
new Alert(msg);
new Alert(msg).show();
});
});
... ...