Authored by 周少峰

next page url

@@ -7,9 +7,14 @@ const index = (req, res, next) => { @@ -7,9 +7,14 @@ const index = (req, res, next) => {
7 let uid = req.user.uid; 7 let uid = req.user.uid;
8 let params = { 8 let params = {
9 limit: req.query.limit || 50, 9 limit: req.query.limit || 50,
10 - page: req.query.page || 1 10 + page: req.query.page || 1,
  11 +
11 }; 12 };
12 13
  14 + if (req.query.union_type) {
  15 + params.union_type = req.query.union_type;
  16 + }
  17 +
13 Model.canLogin(uid).then(canLogin => { 18 Model.canLogin(uid).then(canLogin => {
14 if (canLogin === 'N') { 19 if (canLogin === 'N') {
15 return next(); 20 return next();
@@ -11,8 +11,8 @@ @@ -11,8 +11,8 @@
11 {{#each product_list}} 11 {{#each product_list}}
12 <tr> 12 <tr>
13 <td>{{productSkn}}</td> 13 <td>{{productSkn}}</td>
14 - <td><a href="//item.yohobuy.com/p{{productId}}.html{{#if @root.unionType}}?union_type={{@root.unionType}}{{/if}}" target="_blank">{{productName}}</a></td>  
15 - <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> 14 + <td><a href="//item.yohobuy.com/{{productSkn}}.html{{#if @root.unionType}}?union_type={{@root.unionType}}{{/if}}" target="_blank">{{productName}}</a></td>
  15 + <td><a href="//item.yohobuy.com/{{productSkn}}.html{{#if @root.unionType}}?union_type={{@root.unionType}}{{/if}}" target="_blank"><img src="{{picImgUrl}}" alt=""></a></td>
16 <td>{{standardVal}}</td> 16 <td>{{standardVal}}</td>
17 <td>{{style}}</td> 17 <td>{{style}}</td>
18 <td>{{pattern}}</td> 18 <td>{{pattern}}</td>