Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
7 years ago
Commit
ec38a1b7db39bb235a2683fee603fb9dd5141c10
1 parent
7177737a
hostname-dynamic
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
public/js/activity/feature.page.js
public/js/activity/feature.page.js
View file @
ec38a1b
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
)
{
...
...
Please
register
or
login
to post a comment