Authored by zhangxiaoru

自测

... ... @@ -48,9 +48,9 @@ module.exports = class extends global.yoho.BaseModel {
if (isApp) {
val.detailUrl = val.detailUrl +
'&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"http://m.yohobuy.com/activity/share-buy/detail","params":{"counum":"' +
val.couponValue + '","couponType":"' + val.shareCouponType + '","detailDes":"' +
val.detailDes + '","couponId":"' + val.couponId + '"}}}';
'&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"http:' + val.detailUrl +
'","params":{"counum":"' + val.couponValue + '","couponType":"' + val.shareCouponType +
'","detailDes":"' + val.detailDes + '","couponId":"' + val.couponId + '"}}}';
}
});
... ... @@ -236,11 +236,11 @@ module.exports = class extends global.yoho.BaseModel {
});
result.data.currencyUrl = isApp ? currencyUrl +
'&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"http:' +
'&openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"' +
currencyUrl + '"}}' : currencyUrl;
result.data.shareUrl = isApp ? shareUrl +
'?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"http:' +
'?openby:yohobuy={"action":"go.h5","params":{"islogin":"N","url":"' +
shareUrl + '"}}' : shareUrl;
return result.data;
... ...
... ... @@ -114,6 +114,10 @@ function productData() {
setting.coupon_id = couponId;
}
if ($('.coupon-code').text().indexOf('*') < 0) {
setting.coupon_code = $('.coupon-code').text();
}
if (!onloading) {
onloading = true;
... ... @@ -154,11 +158,11 @@ $(window).scroll(function() {
window.requestAnimationFrame(scrollHandler);
});
if ($('.share-dialog-tip')) {
// window.setCookie('refer', window.location.href);
// if ($('.share-dialog-tip')) {
// // window.setCookie('refer', window.location.href);
window.setCookie('share', '1', { path: '/' });
}
// window.setCookie('share', '1', { path: '/' });
// }
$(function() {
productData();
... ...
... ... @@ -499,13 +499,13 @@ $(
}
// 分享购
if (window.cookie('share') && parseInt(window.cookie('share'), 10) === 1) {
setTimeout(function() {
// if (window.cookie('share') && parseInt(window.cookie('share'), 10) === 1) {
// setTimeout(function() {
window.setCookie('share', '0', { path: '/' });
// window.setCookie('share', '0', { path: '/' });
window.location.replace(decodeURIComponent(window.cookie('refer')));
}, 3000);
}
// window.location.replace(decodeURIComponent(window.cookie('refer')));
// }, 3000);
// }
}
);
... ...
.share-buy-page {
width: 100%;
height: 100%;
background-image: resolve("activity/share-buy/back.png");
background-image: resolve("activity/share-buy/back.jpg");
background-size: 100%;
padding-bottom: 145px;
... ...