Merge branch 'hotfix/orderDetailUrl'
Showing
4 changed files
with
16 additions
and
8 deletions
@@ -45,7 +45,7 @@ module.exports = () => { | @@ -45,7 +45,7 @@ module.exports = () => { | ||
45 | res.set({ | 45 | res.set({ |
46 | 'Cache-Control': 'no-cache', | 46 | 'Cache-Control': 'no-cache', |
47 | Pragma: 'no-cache', | 47 | Pragma: 'no-cache', |
48 | - Expires: new Date(1900, 0, 1, 0, 0, 0, 0) | 48 | + Expires: (new Date(1900, 0, 1, 0, 0, 0, 0)).toUTCString() |
49 | }); | 49 | }); |
50 | } | 50 | } |
51 | 51 |
@@ -202,9 +202,9 @@ $.extend({ | @@ -202,9 +202,9 @@ $.extend({ | ||
202 | 202 | ||
203 | $footer.removeClass('hide'); | 203 | $footer.removeClass('hide'); |
204 | 204 | ||
205 | - // 接受微信商城或者第三方来源的数据埋点信息 | 205 | + // 单击下载按钮 - 接受微信商城或者第三方来源的数据埋点信息 |
206 | if (queryString().mkt_code) { | 206 | if (queryString().mkt_code) { |
207 | - setCookie('mkt_code', queryString().mkt_code); | 207 | + setCookie('unionType', queryString().mkt_code); |
208 | } | 208 | } |
209 | 209 | ||
210 | }()); | 210 | }()); |
@@ -25,16 +25,24 @@ function getQueryString(name) { | @@ -25,16 +25,24 @@ function getQueryString(name) { | ||
25 | } | 25 | } |
26 | 26 | ||
27 | function downLoadApp() { | 27 | function downLoadApp() { |
28 | - var appUrl = 'http://www.yohoshow.com/about/index/yohobuyqr/'; | 28 | + var appUrl = 'http://union.yoho.cn/union/downapp.html'; |
29 | var clickedAt = new Date(); | 29 | var clickedAt = new Date(); |
30 | 30 | ||
31 | setTimeout(function() { | 31 | setTimeout(function() { |
32 | - var mkt = getQueryString('mkt_code'); | 32 | + var mkt = window.queryString.mkt_code || window.cookie('unionType') || false; |
33 | 33 | ||
34 | if ((new Date()) - clickedAt < 2000) { | 34 | if ((new Date()) - clickedAt < 2000) { |
35 | if (mkt) { | 35 | if (mkt) { |
36 | appUrl += '?union_type=' + mkt; | 36 | appUrl += '?union_type=' + mkt; |
37 | } | 37 | } |
38 | + | ||
39 | + if (window._yas && window._yas.sendCustomInfo) { | ||
40 | + window._yas.sendCustomInfo({ | ||
41 | + op: 'YB_DOWNLOAD_C', | ||
42 | + param: JSON.stringify({C_ID: window._ChannelVary[window.cookie('_Channel')] || 1, TO_URL: appUrl}) | ||
43 | + }, true); | ||
44 | + } | ||
45 | + | ||
38 | window.location = appUrl; | 46 | window.location = appUrl; |
39 | } | 47 | } |
40 | }, 500); | 48 | }, 500); |
@@ -127,7 +127,7 @@ plusstar = { | @@ -127,7 +127,7 @@ plusstar = { | ||
127 | TAB_ID: that.ParentLiDom.index() + 1, | 127 | TAB_ID: that.ParentLiDom.index() + 1, |
128 | F_ID: $dom.closest('ul').data('id'), | 128 | F_ID: $dom.closest('ul').data('id'), |
129 | F_NAME: '焦点图', | 129 | F_NAME: '焦点图', |
130 | - F_URL: $dom.find('a').attr('href'), | 130 | + F_URL: encodeURIComponent($dom.find('a').attr('href').replace(/\"/g, '\\"')), |
131 | F_INDEX: 1, | 131 | F_INDEX: 1, |
132 | I_INDEX: index % 2 + 1// banner,li是双倍的 | 132 | I_INDEX: index % 2 + 1// banner,li是双倍的 |
133 | }, speckParamApp)) | 133 | }, speckParamApp)) |
@@ -143,7 +143,7 @@ plusstar = { | @@ -143,7 +143,7 @@ plusstar = { | ||
143 | TAB_ID: that.ParentLiDom.index() + 1, | 143 | TAB_ID: that.ParentLiDom.index() + 1, |
144 | F_ID: $dom.data('fid'), | 144 | F_ID: $dom.data('fid'), |
145 | F_NAME: $dom.data('name'), | 145 | F_NAME: $dom.data('name'), |
146 | - F_URL: $domA.attr('href'), | 146 | + F_URL: encodeURIComponent($domA.attr('href').replace(/\"/g, '\\"')), |
147 | F_INDEX: $dom.index() + 1, | 147 | F_INDEX: $dom.index() + 1, |
148 | I_INDEX: $domA.hasClass('more') ? 0 : ($domA.index() + 1) | 148 | I_INDEX: $domA.hasClass('more') ? 0 : ($domA.index() + 1) |
149 | }, speckParamApp)) | 149 | }, speckParamApp)) |
@@ -164,7 +164,7 @@ plusstar = { | @@ -164,7 +164,7 @@ plusstar = { | ||
164 | 164 | ||
165 | this.common.codeDefault = code;// 记住最后一次的tab code | 165 | this.common.codeDefault = code;// 记住最后一次的tab code |
166 | this.common.page = 1;// 商品列表从第一页开始 | 166 | this.common.page = 1;// 商品列表从第一页开始 |
167 | - searching = false;//初始化翻页 | 167 | + searching = false;// 初始化翻页 |
168 | 168 | ||
169 | $.ajax({ | 169 | $.ajax({ |
170 | type: 'GET', | 170 | type: 'GET', |
-
Please register or login to post a comment