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
毕凯
8 years ago
Commit
c50eb60a1ef676780070fdcceb18acd1408e18d6
1 parent
769924b0
mkt_code 控制移动到 YAS
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
public/js/common.js
public/js/common.js
View file @
c50eb60
...
...
@@ -256,28 +256,30 @@ $.extend({
5. yas的cookies 种在 .yohobuy.com 根域下
周奇琪
*/
let
isWechat
=
/micromessenger/i
.
test
(
navigator
.
userAgent
||
''
);
let
mktc
=
queryString
().
mkt_code
||
queryString
().
union_type
||
''
;
function
saveMktCode
()
{
if
(
mktc
)
{
setCookie
(
'mkt_code'
,
mktc
,
{
path
:
'/'
,
domain
:
'yohobuy.com'
,
expires
:
7
// 7天
});
}
}
mkt_code 控制移动到 YAS 2017.07.13
*/
if
(
isWechat
)
{
saveMktCode
();
}
else
{
if
(
!
cookie
(
'mkt_code'
)
||
mktc
===
'100000000000349'
)
{
saveMktCode
();
}
}
// let isWechat = /micromessenger/i.test(navigator.userAgent || '');
// let mktc = queryString().mkt_code || queryString().union_type || '';
// function saveMktCode() {
// if (mktc) {
// setCookie('mkt_code', mktc, {
// path: '/',
// domain: 'yohobuy.com',
// expires: 7 // 7天
// });
// }
// }
// if (isWechat) {
// saveMktCode();
// } else {
// if (!cookie('mkt_code') || mktc === '100000000000349') {
// saveMktCode();
// }
// }
// 尝试打开 APP
require
(
'./common/open-app'
);
...
...
Please
register
or
login
to post a comment