Showing
1 changed file
with
4 additions
and
4 deletions
1 | var $ = require('yoho-jquery'); | 1 | var $ = require('yoho-jquery'); |
2 | var lazyLoad = require('yoho-jquery-lazyload'); | 2 | var lazyLoad = require('yoho-jquery-lazyload'); |
3 | var Swiper = require('yoho-swiper'); | 3 | var Swiper = require('yoho-swiper'); |
4 | -var qs = require('yoho-qs'); | ||
5 | var yoho = require('../yoho-app'); | 4 | var yoho = require('../yoho-app'); |
6 | 5 | ||
7 | global.jQuery = $; | 6 | global.jQuery = $; |
@@ -219,9 +218,10 @@ function persenalCouponInit() { | @@ -219,9 +218,10 @@ function persenalCouponInit() { | ||
219 | let data = { | 218 | let data = { |
220 | activity_id: $('.feature-page').data('id') | 219 | activity_id: $('.feature-page').data('id') |
221 | }; | 220 | }; |
221 | + let href = '//activity.yoho.cn/individuation/coupon'; | ||
222 | 222 | ||
223 | - if (qs.uid) { | ||
224 | - data.uid = qs.uid; | 223 | + if (location.hostname === 'm.yohobuy.com') { |
224 | + href = '//m.yohobuy.com/activity/individuation/coupon'; | ||
225 | } | 225 | } |
226 | 226 | ||
227 | $('.yoho-conpon').each(function() { | 227 | $('.yoho-conpon').each(function() { |
@@ -229,7 +229,7 @@ function persenalCouponInit() { | @@ -229,7 +229,7 @@ function persenalCouponInit() { | ||
229 | 229 | ||
230 | if ($this.data('persenal-enable')) { | 230 | if ($this.data('persenal-enable')) { |
231 | $.ajax({ | 231 | $.ajax({ |
232 | - url: '//m.yohobuy.com/activity/individuation/coupon', | 232 | + url: href, |
233 | dataType: 'jsonp', | 233 | dataType: 'jsonp', |
234 | data: data, | 234 | data: data, |
235 | success: function(res) { | 235 | success: function(res) { |
-
Please register or login to post a comment