Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
bb45ad2dc2c34a11e142a7319fe6b22fcbf6f376
1 parent
8576521a
next page url
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
apps/3party/controllers/material.js
apps/3party/views/partial/tbl.hbs
apps/3party/controllers/material.js
View file @
bb45ad2
...
...
@@ -7,9 +7,14 @@ const index = (req, res, next) => {
let
uid
=
req
.
user
.
uid
;
let
params
=
{
limit
:
req
.
query
.
limit
||
50
,
page
:
req
.
query
.
page
||
1
page
:
req
.
query
.
page
||
1
,
};
if
(
req
.
query
.
union_type
)
{
params
.
union_type
=
req
.
query
.
union_type
;
}
Model
.
canLogin
(
uid
).
then
(
canLogin
=>
{
if
(
canLogin
===
'N'
)
{
return
next
();
...
...
apps/3party/views/partial/tbl.hbs
View file @
bb45ad2
...
...
@@ -11,8 +11,8 @@
{{#
each
product_list
}}
<tr>
<td>
{{
productSkn
}}
</td>
<td><a
href=
"//item.yohobuy.com/p
{{
productId
}}
.html
{{#if
@root
.
unionType
}}
?union_type=
{{
@root
.
unionType
}}{{/if}}
"
target=
"_blank"
>
{{
productName
}}
</a></td>
<td><a
href=
"//item.yohobuy.com/p
{{
productId
}}
.html
{{#if
@root
.
unionType
}}
?union_type=
{{
@root
.
unionType
}}{{/if}}
"
target=
"_blank"
><img
src=
"
{{
picImgUrl
}}
"
alt=
""
></a></td>
<td><a
href=
"//item.yohobuy.com/
{{
productSkn
}}
.html
{{#if
@root
.
unionType
}}
?union_type=
{{
@root
.
unionType
}}{{/if}}
"
target=
"_blank"
>
{{
productName
}}
</a></td>
<td><a
href=
"//item.yohobuy.com/
{{
productSkn
}}
.html
{{#if
@root
.
unionType
}}
?union_type=
{{
@root
.
unionType
}}{{/if}}
"
target=
"_blank"
><img
src=
"
{{
picImgUrl
}}
"
alt=
""
></a></td>
<td>
{{
standardVal
}}
</td>
<td>
{{
style
}}
</td>
<td>
{{
pattern
}}
</td>
...
...
Please
register
or
login
to post a comment