Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangxiaoru
8 years ago
Commit
62f24439b4f736d5d2bfa2c841d8fe99ec10cc8d
1 parent
04f23d9e
guang User-Agent
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
apps/guang/controllers/info.js
doraemon/middleware/set-yoho-data.js
public/scss/activity/_ali-cloud.css
public/scss/guang/_detail.css
apps/guang/controllers/info.js
View file @
62f2443
...
...
@@ -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
;
}
...
...
doraemon/middleware/set-yoho-data.js
View file @
62f2443
...
...
@@ -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
);
...
...
public/scss/activity/_ali-cloud.css
View file @
62f2443
...
...
@@ -26,6 +26,6 @@
.receive-right-btn
{
left
:
460px
;
bottom
:
245
px
;
bottom
:
167
px
;
}
}
...
...
public/scss/guang/_detail.css
View file @
62f2443
...
...
@@ -598,7 +598,7 @@
background
:
#fff
;
img
{
width
:
100%
;
/*width: 280px;*/
height
:
275px
;
}
...
...
Please
register
or
login
to post a comment