...
|
...
|
@@ -29,47 +29,30 @@ |
|
|
<body>
|
|
|
<script>
|
|
|
var activityInfo = {};
|
|
|
/* function getUser() {
|
|
|
var c = cookie('_UID'), user;
|
|
|
if (typeof c === 'undefined') {
|
|
|
return 0;
|
|
|
}
|
|
|
user = c.split('::');
|
|
|
if (typeof user === 'undefined' || user.length < 4) {
|
|
|
return 0;
|
|
|
}
|
|
|
return user;
|
|
|
}
|
|
|
function getUid() {
|
|
|
var user = getUser();
|
|
|
if (user === 0) {
|
|
|
return 0;
|
|
|
}
|
|
|
return user[1];
|
|
|
}
|
|
|
|
|
|
(function(w, d, s, j, f) {
|
|
|
var a = d.createElement(s);
|
|
|
var m = d.getElementsByTagName(s)[0];
|
|
|
w.YohoAcquisitionObject = f;
|
|
|
w[f] = function() {
|
|
|
w[f].p = arguments;
|
|
|
};
|
|
|
a.async = 1;
|
|
|
a.src = j;
|
|
|
m.parentNode.insertBefore(a, m);
|
|
|
})(window, document, 'script', ('https:' === document.location.protocol ? 'https' : 'http') + '://' +
|
|
|
'cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas');
|
|
|
(function() {
|
|
|
var uid = getUid();
|
|
|
uid = uid === 0 ? '' : uid;
|
|
|
window._ozuid = uid;// 暴露ozuid
|
|
|
if (window._yas) {
|
|
|
window._yas(1 * new Date(), '1.0.17', 'yohobuy_m', uid, '', '');
|
|
|
}
|
|
|
}()); */
|
|
|
|
|
|
/**
|
|
|
|
|
|
(function(w, d, s, j, f) {
|
|
|
var a = d.createElement(s);
|
|
|
var m = d.getElementsByTagName(s)[0];
|
|
|
|
|
|
w.YohoAcquisitionObject = f;
|
|
|
|
|
|
w[f] = function() {
|
|
|
w[f].p = arguments;
|
|
|
};
|
|
|
|
|
|
a.async = 1;
|
|
|
a.src = j;
|
|
|
m.parentNode.insertBefore(a, m);
|
|
|
}(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas'));
|
|
|
|
|
|
(function() {
|
|
|
if (window._yas) {
|
|
|
window._yas(1 * new Date(), '1.0.17', 'yohobuy_m', '', '', '');
|
|
|
}
|
|
|
}());
|
|
|
|
|
|
|
|
|
/**
|
|
|
* html中传递参数,获取方法
|
|
|
* @param key
|
|
|
* @returns
|
...
|
...
|
@@ -81,34 +64,17 @@ |
|
|
}
|
|
|
var activityCode = getQueryStr("code");
|
|
|
var activityData = null;
|
|
|
|
|
|
(function(w, d, s, j, f) {
|
|
|
var a = d.createElement(s);
|
|
|
var m = d.getElementsByTagName(s)[0];
|
|
|
|
|
|
w.YohoAcquisitionObject = f;
|
|
|
let search = window.location.search;
|
|
|
if (search.indexOf('&expires=') === -1) {
|
|
|
search = search ? (search + '&') : '?';
|
|
|
search = search + 'expires=' + (7 * 24 * 60 * 60 * 1000);
|
|
|
search = search + '&union_type='+activityCode;
|
|
|
}
|
|
|
$('<iframe style="display:none;" src="//m.yohobuy.com/activity/wechat/1111' + search + '"></iframe>').prependTo('body');
|
|
|
|
|
|
w[f] = function() {
|
|
|
w[f].p = arguments;
|
|
|
};
|
|
|
|
|
|
a.async = 1;
|
|
|
a.src = j;
|
|
|
m.parentNode.insertBefore(a, m);
|
|
|
})(window, document, 'script', 'http://cdn.yoho.cn/yas-jssdk/1.0.18/yas.js', '_yas');
|
|
|
|
|
|
|
|
|
$(function() {
|
|
|
if (window._yas) {
|
|
|
window._yas(1 * new Date(), '1.0.18', 'yohobuy_m', 0, '', '');
|
|
|
}
|
|
|
|
|
|
if (window._yas && window._yas.sendCustomInfo) {
|
|
|
window._yas.sendCustomInfo({}, true);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
</script>
|
|
|
<div class="main-wrap">
|
|
|
|
|
|
<div class="receive-coupon-page">
|
...
|
...
|
|