...
|
...
|
@@ -158,7 +158,13 @@ function modalInit() { |
|
|
}
|
|
|
|
|
|
function persenalCouponInit() {
|
|
|
let activityId = $('.feature-page').data('id');
|
|
|
let data = {
|
|
|
activity_id: $('.feature-page').data('id')
|
|
|
};
|
|
|
|
|
|
if (qs.uid) {
|
|
|
data.uid = qs.uid;
|
|
|
}
|
|
|
|
|
|
$('.yoho-conpon').each(function() {
|
|
|
let $this = $(this);
|
...
|
...
|
@@ -167,10 +173,7 @@ function persenalCouponInit() { |
|
|
$.ajax({
|
|
|
url: '//m.yohobuy.com/activity/individuation/coupon',
|
|
|
dataType: 'jsonp',
|
|
|
data: {
|
|
|
uid: qs.uid || 0,
|
|
|
activity_id: activityId
|
|
|
},
|
|
|
data: data,
|
|
|
success: function(res) {
|
|
|
if (res.code === 200 && res.data && res.data.couponId && res.data.personCouponId) {
|
|
|
$this.attr('data-token', `${res.data.couponId}:${res.data.personCouponId}`);
|
...
|
...
|
|