Authored by 毕凯

更新分享按钮

... ... @@ -14,9 +14,7 @@ module.exports = (req, res, next) => {
referrer = referrer.split('?')[0];
loginUrl += '?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"' + referrer.replace(/\//g, '\\/') + '","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}';
return res.send('<br><br><br><br><br><br><br><br><br><br><br><br><a href=\'' + loginUrl + '\'>点击登录</a>');
// return res.redirect(loginUrl); // 跳转APP登录页
return res.redirect(loginUrl); // 跳转APP登录页
} else if (!req.isAPP && !req.cookies._UID) {
loginUrl = loginUrl + '?refer=' + encodeURIComponent(referrer);
... ...
... ... @@ -13,7 +13,6 @@ exports.first = (req, res) => {
module: 'coupon/summer-1',
title: 'YOHO!BUY有货【夏日新品节】',
isApp: req.query.app_version || '',
needShare: /micromessenger/i.test(req.get('Referer')),
couponUrl: urlFormat('/home/coupons', null, 'default') + '?openby:yohobuy={"action":"go.coupon"}', // 个人中心优惠券
banner: {
img: '',
... ...
... ... @@ -17,11 +17,9 @@
<div class="main-wrap home">
<div class="header"></div>
<a class="coupon" href="{{couponUrl}}"></a>
{{#if needShare}}
<div class="share">
快去分享给小伙伴吧 <span class="arrow"></span>
</div>
{{/if}}
<a class="banner" href="{{banner.url}}">
<img src="{{banner.img}}">
</a>
... ...