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
郭成尧
7 years ago
Commit
6a599385e68f4f1cea9d64d47fcd2d840860daee
1 parent
111a6b32
url-src-modified
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
apps/guang/models/rss.js
apps/guang/models/rss.js
View file @
6a59938
...
...
@@ -33,16 +33,16 @@ class RssModel extends global.yoho.BaseModel {
if
(
value
.
text
)
{
// 文字
result
+=
htmlProcess
.
removeHtml
(
htmlProcess
.
escapeToHtml
(
value
.
text
.
data
.
text
))
+
'<br/>'
;
}
else
if
(
value
.
singleImage
)
{
// 单张图
result
+=
`
<
img
src
=
"${helpers.image(value.singleImage.data[0].src, 640, 640)}"
/><
br
/>
`
;
result
+=
`
<
img
src
=
"
https:
${helpers.image(value.singleImage.data[0].src, 640, 640)}"
/><
br
/>
`
;
}
else
if
(
value
.
smallPic
&&
value
.
smallPic
.
data
)
{
// 多张小图
value
.
smallPic
.
data
.
forEach
((
small
)
=>
{
result
+=
`
<
img
src
=
"${helpers.image(small.src, 315, 420)}"
/>
`
;
result
+=
`
<
img
src
=
"
https:
${helpers.image(small.src, 315, 420)}"
/>
`
;
});
result
+=
'<br/>'
;
}
});
result
+=
`
<
a
href
=
"http
://guang.m.yohobuy.com/info/index?id=${id}
"
>
查看原文
<
/a>`
;
result
+=
`
<
a
href
=
"http
s://m.yohobuy.com/guang/${id}.html?ref=rss
"
>
查看原文
<
/a>`
;
return
result
;
}
});
...
...
Please
register
or
login
to post a comment