Authored by yyq

页面js

@@ -245,6 +245,7 @@ const index = (req, res, next) => { @@ -245,6 +245,7 @@ const index = (req, res, next) => {
245 if (_.isEmpty(result)) { 245 if (_.isEmpty(result)) {
246 return next(); 246 return next();
247 } 247 }
  248 + result.page = 'item';
248 res.display('item', result); 249 res.display('item', result);
249 }).catch(next); 250 }).catch(next);
250 }; 251 };
@@ -54,7 +54,7 @@ @@ -54,7 +54,7 @@
54 <span class="iconfont">&#xe605;</span> 54 <span class="iconfont">&#xe605;</span>
55 <div class="search-wrapper"> 55 <div class="search-wrapper">
56 <div class="search-input"> 56 <div class="search-input">
57 - <form id="search-form" action="/product/list/query"> 57 + <form id="search-form" action="{{../siteUrl}}/product/query">
58 <span class="iconfont left">&#xe605;</span> 58 <span class="iconfont left">&#xe605;</span>
59 <input type="text" name="query" id="search-key" class="search-key" placeholder="search"autocomplete="off"> 59 <input type="text" name="query" id="search-key" class="search-key" placeholder="search"autocomplete="off">
60 <span class="iconfont right clear-input">&#xe608;</span> 60 <span class="iconfont right clear-input">&#xe608;</span>