Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
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
ef0e554b056e2cdf1530822b99de990ab6d2175c
1 parent
7e05b6c1
first-screen-server-render
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
apps/product/router.js
public/js/product/brand-index.page.js
public/js/product/product-list-with-filter.js
apps/product/router.js
View file @
ef0e554
...
...
@@ -165,7 +165,7 @@ router.get('/index/getBrandCouponsList', list.getBrandCouponsList);
// 店铺重构
router
.
get
(
'/shop'
,
newShop
.
entry
);
// 统一店铺入口
router
.
get
(
'/index/brand'
,
newShop
.
index
);
router
.
get
(
'/index/brand'
,
newShop
.
entry
);
router
.
get
(
'/index/baseShopFav'
,
newShop
.
baseShopFav
);
router
.
get
(
'/index/brandFav'
,
newShop
.
brandFav
);
router
.
get
(
'/new/shop/hotlist'
,
newShop
.
shopHotList
);
...
...
public/js/product/brand-index.page.js
View file @
ef0e554
...
...
@@ -6,6 +6,7 @@ let brandId = $('#brandId').val();
let
productListWithFilterModel
=
new
ProductListWithFilter
({
brand_id
:
brandId
,
page
:
2
,
// 首页服务端已经渲染
isBrandShop
:
'Y'
// 传给 filter,表明调用哪个接口获取筛选面板的数据
},
'product/search/brand/goods'
);
...
...
public/js/product/product-list-with-filter.js
View file @
ef0e554
...
...
@@ -58,7 +58,7 @@ class ProductListWithFilter {
this
.
defaultOpt
=
Object
.
assign
({},
this
.
navInfo
.
default
,
this
.
filterParams
);
// 默认参数
this
.
onSearching
=
false
;
// 是否正在搜索
this
.
isScrollLoad
=
false
;
// 是否是滚动加载
this
.
page
=
1
;
// 页码
this
.
page
=
filterParams
.
page
||
1
;
this
.
view
.
listNav
.
bind
(
'contextmenu'
,
function
()
{
return
false
;
});
...
...
Please
register
or
login
to post a comment