|
|
var $ = require('yoho-jquery');
|
|
|
var lazyLoad = require('yoho-jquery-lazyload');
|
|
|
var Swiper = require('yoho-swiper');
|
|
|
var qs = require('yoho-qs');
|
|
|
var yoho = require('../yoho-app');
|
|
|
|
|
|
global.jQuery = $;
|
...
|
...
|
@@ -219,9 +218,10 @@ function persenalCouponInit() { |
|
|
let data = {
|
|
|
activity_id: $('.feature-page').data('id')
|
|
|
};
|
|
|
let href = '//activity.yoho.cn/individuation/coupon';
|
|
|
|
|
|
if (qs.uid) {
|
|
|
data.uid = qs.uid;
|
|
|
if (location.hostname === 'm.yohobuy.com') {
|
|
|
href = '//m.yohobuy.com/activity/individuation/coupon';
|
|
|
}
|
|
|
|
|
|
$('.yoho-conpon').each(function() {
|
...
|
...
|
@@ -229,7 +229,7 @@ function persenalCouponInit() { |
|
|
|
|
|
if ($this.data('persenal-enable')) {
|
|
|
$.ajax({
|
|
|
url: '//m.yohobuy.com/activity/individuation/coupon',
|
|
|
url: href,
|
|
|
dataType: 'jsonp',
|
|
|
data: data,
|
|
|
success: function(res) {
|
...
|
...
|
|