Authored by 周少峰

next page url

... ... @@ -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();
... ...
... ... @@ -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>
... ...