Authored by zhangxiaoru

guang User-Agent

... ... @@ -314,10 +314,10 @@ const index = (req, res, next) => {
if (isShare && detail && detail.share && detail.share.length !== 0) {
if (detail.share.qqShareImgUrl || detail.share.wechatShareImgUrl || detail.share.showShareImgUrl) {
if (isqq) {
data.guang.codeShare = detail.share.qqShareImgUrl;
} else if (isWeixin) {
if (isWeixin) {
data.guang.codeShare = detail.share.wechatShareImgUrl;
} else if (isqq) {
data.guang.codeShare = detail.share.qqShareImgUrl;
} else if (isWeibo) {
data.guang.codeShare = detail.share.showShareImgUrl;
}
... ...
... ... @@ -27,7 +27,7 @@ module.exports = () => {
yoho.isApp = req.query.app_version || req.query.appVersion;
yoho.isWechat = /micromessenger/i.test(req.get('User-Agent') || '');
yoho.isWeibo = ua.match(/weibo/i) === 'weibo';
yoho.isqq = ua.indexOf('qq') != -1;
yoho.isqq = ua.indexOf('qq/') != -1;
Object.assign(res.locals, yoho);
Object.assign(req.yoho, yoho);
... ...
... ... @@ -26,6 +26,6 @@
.receive-right-btn {
left: 460px;
bottom: 245px;
bottom: 167px;
}
}
... ...
... ... @@ -598,7 +598,7 @@
background: #fff;
img {
width: 100%;
/*width: 280px;*/
height: 275px;
}
... ...