Authored by yyq

shop query key

... ... @@ -10,7 +10,7 @@
<form action="/shoplist" method="get" id="shop-search-form">
<span>
<input type="hidden" name="shopId" value="{{shopId}}">
<input id="shop-query-key" type="text" name="query" class="shop-query-key" autocomplete="off" x-webkit-speech="" lang="zh-CN" placeholder="关键词搜索">
<input id="shop-query-key" type="text" name="query" class="shop-query-key" autocomplete="off" x-webkit-speech="" lang="zh-CN" placeholder="关键词搜索" {{# shopQueryKey}}value="{{.}}"{{/ shopQueryKey}}>
</span>
<span class="iconfont shop-query-submit">&#xe611;</span>
</form>
... ...
... ... @@ -10,7 +10,7 @@
<form action="/shoplist" method="get" id="shop-search-form">
<span>
<input type="hidden" name="shopId" value="{{shopId}}">
<input id="shop-query-key" type="text" name="query" class="shop-query-key" autocomplete="off" x-webkit-speech="" lang="zh-CN" placeholder="关键词搜索">
<input id="shop-query-key" type="text" name="query" class="shop-query-key" autocomplete="off" x-webkit-speech="" lang="zh-CN" placeholder="关键词搜索" {{# shopQueryKey}}value="{{.}}"{{/ shopQueryKey}}>
</span>
<span class="iconfont shop-query-submit">&#xe611;</span>
</form>
... ...
... ... @@ -489,8 +489,9 @@ class IndexController extends WebAction
$data = array_merge(
array(
'shopId' => $shopId,
'shopIndexPage' => true,
'shopId' => $shopId,
'shopQueryKey' => $this->get('query', ''),
'pathNav' => false, // pathNav数据结构同其他页面
'coupon' => false, // 先不做
'trendInfo' => ShopModel::getArticle($shopId),
... ... @@ -542,6 +543,7 @@ class IndexController extends WebAction
array(
'shopIndexPage' => true,
'shopId' => $shopId,
'shopQueryKey' => $this->get('query', ''),
'pathNav' => false, // pathNav数据结构同其他页面
'coupon' => false, // 先不做
),
... ...