Merge branch 'hotfix/mkt' into gray
Showing
1 changed file
with
10 additions
and
5 deletions
@@ -20,9 +20,6 @@ var _ChannelVary = { | @@ -20,9 +20,6 @@ var _ChannelVary = { | ||
20 | lifestyle: 4 | 20 | lifestyle: 4 |
21 | }; | 21 | }; |
22 | 22 | ||
23 | -// 尝试打开 APP | ||
24 | -require('./common/open-app'); | ||
25 | - | ||
26 | function cookie(name) { | 23 | function cookie(name) { |
27 | var cookies = document.cookie, | 24 | var cookies = document.cookie, |
28 | cookieVal; | 25 | cookieVal; |
@@ -222,12 +219,20 @@ $.extend({ | @@ -222,12 +219,20 @@ $.extend({ | ||
222 | $footer.removeClass('hide'); | 219 | $footer.removeClass('hide'); |
223 | 220 | ||
224 | // 单击下载按钮 - 接受微信商城或者第三方来源的数据埋点信息 | 221 | // 单击下载按钮 - 接受微信商城或者第三方来源的数据埋点信息 |
225 | - if (queryString().union_type) { | ||
226 | - setCookie('unionTypeYas', queryString().union_type, { | 222 | + let mktc = queryString().union_type || queryString().mkt_code || ''; |
223 | + | ||
224 | + if (mktc) { | ||
225 | + setCookie('unionTypeYas', mktc, { | ||
226 | + path: '/' | ||
227 | + }); | ||
228 | + setCookie('mkt_code', mktc, { | ||
227 | path: '/' | 229 | path: '/' |
228 | }); | 230 | }); |
229 | } | 231 | } |
230 | 232 | ||
233 | + // 尝试打开 APP | ||
234 | + require('./common/open-app'); | ||
235 | + | ||
231 | }()); | 236 | }()); |
232 | 237 | ||
233 | $header.on('touchstart', 'a', function() { | 238 | $header.on('touchstart', 'a', function() { |
-
Please register or login to post a comment