Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
a6162f6a
Commit
a6162f6a
authored
Feb 15, 2019
by
Junling Bu
Browse files
chore: 简化无用代码。
parent
01c18313
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxCatalogController.java
View file @
a6162f6a
...
...
@@ -36,14 +36,10 @@ public class WxCatalogController {
* @param id 分类类目ID。
* 如果分类类目ID是空,则选择第一个分类类目。
* 需要注意,这里分类类目是一级类目
* @param page 分页页数
* @param size 分页大小
* @return 分类详情
*/
@GetMapping
(
"index"
)
public
Object
index
(
Integer
id
,
@RequestParam
(
defaultValue
=
"1"
)
Integer
page
,
@RequestParam
(
defaultValue
=
"10"
)
Integer
size
)
{
public
Object
index
(
Integer
id
)
{
// 所有一级分类目录
List
<
LitemallCategory
>
l1CatList
=
categoryService
.
queryL1
();
...
...
litemall-wx/pages/catalog/catalog.js
View file @
a6162f6a
...
...
@@ -65,15 +65,6 @@ Page({
onUnload
:
function
()
{
// 页面关闭
},
getList
:
function
()
{
var
that
=
this
;
util
.
request
(
api
.
ApiRootUrl
+
'
api/catalog/
'
+
that
.
data
.
currentCategory
.
catId
)
.
then
(
function
(
res
)
{
that
.
setData
({
categoryList
:
res
.
data
,
});
});
},
switchCate
:
function
(
event
)
{
var
that
=
this
;
var
currentTarget
=
event
.
currentTarget
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment