...
|
...
|
@@ -42,12 +42,25 @@ let _queryString = function() { |
|
|
};
|
|
|
|
|
|
let _sParamByIframe = function() {
|
|
|
let search = window.location.search;
|
|
|
if (search.indexOf('&expires=') === -1) {
|
|
|
search = search ? (search + '&') : '?';
|
|
|
search = search + 'expires=' + (7 * 24 * 60 * 60 * 1000);
|
|
|
let paramsObj = _queryString();
|
|
|
let queryArray = [];
|
|
|
let queryString = '?';
|
|
|
|
|
|
delete paramsObj['uid'];
|
|
|
delete paramsObj['app_version'];
|
|
|
delete paramsObj['client_type'];
|
|
|
delete paramsObj['session_key'];
|
|
|
|
|
|
for(let i in paramsObj) {
|
|
|
queryArray.push(i + '=' + paramsObj[i]);
|
|
|
}
|
|
|
$('<iframe style="display:none;" src="//m.yohobuy.com/activity/wechat/1111' + search + '"></iframe>').prependTo('body');
|
|
|
|
|
|
if (!paramsObj['expires']) {
|
|
|
queryArray.push('expires=' + (7 * 24 * 60 * 60 * 1000));
|
|
|
}
|
|
|
|
|
|
queryString += queryArray.join('&');
|
|
|
$('<iframe style="display:none;" src="//m.yohobuy.com/activity/wechat/1111' + queryString + '"></iframe>').prependTo('body');
|
|
|
};
|
|
|
|
|
|
let _bindEvent = function() {
|
...
|
...
|
|