Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郑秀明
shop_mobile_uni
Commits
5db2345f
Commit
5db2345f
authored
Feb 24, 2020
by
王建威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
9b956690
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
Category.vue
pages/category/Category.vue
+10
-2
Detail.vue
pages/detail/Detail.vue
+10
-2
No files found.
pages/category/Category.vue
View file @
5db2345f
...
...
@@ -118,7 +118,6 @@
this
.
cate_id_2
=
cate_id
+
''
;
}
this
.
tabIndex
=
index
;
this
.
$refs
.
pagination
.
parentsChangeCurrent
(
1
);
uni
.
request
({
url
:
'/uni/api/credit_goods/get_credit_second_goods'
,
method
:
'POST'
,
...
...
@@ -134,6 +133,11 @@
{
page
}
=
res
.
data
;
this
.
goods_list
=
credit_goods_list
;
this
.
page
=
page
;
if
(
credit_goods_list
instanceof
Array
)
{
setTimeout
(()
=>
{
this
.
$refs
.
pagination
.
parentsChangeCurrent
(
1
);
},
0
);
}
!!
cb
&&
cb
();
}
});
...
...
@@ -181,7 +185,11 @@
this
.
page
=
page
;
!!
cb
&&
cb
();
this
.
tabIndex
=
-
1
;
this
.
$refs
.
pagination
.
parentsChangeCurrent
(
1
);
if
(
credit_goods_list
instanceof
Array
)
{
setTimeout
(()
=>
{
this
.
$refs
.
pagination
.
parentsChangeCurrent
(
1
);
},
0
);
}
}
});
},
...
...
pages/detail/Detail.vue
View file @
5db2345f
...
...
@@ -116,7 +116,6 @@
this
.
cate_id_1
=
''
;
}
this
.
tabIndex
=
index
;
this
.
$refs
.
pagination
.
parentsChangeCurrent
(
1
);
uni
.
request
({
url
:
'/uni/api/credit_goods/get_credit_all_goods'
,
method
:
'POST'
,
...
...
@@ -132,6 +131,11 @@
{
page
}
=
res
.
data
;
this
.
goods_list
=
credit_goods_list
;
this
.
page
=
page
;
if
(
credit_goods_list
instanceof
Array
)
{
setTimeout
(()
=>
{
this
.
$refs
.
pagination
.
parentsChangeCurrent
(
1
);
},
0
);
}
!!
cb
&&
cb
();
}
});
...
...
@@ -171,7 +175,11 @@
this
.
page
=
page
;
!!
cb
&&
cb
();
this
.
tabIndex
=
-
1
;
this
.
$refs
.
pagination
.
parentsChangeCurrent
(
1
);
if
(
credit_goods_list
instanceof
Array
)
{
setTimeout
(()
=>
{
this
.
$refs
.
pagination
.
parentsChangeCurrent
(
1
);
},
0
);
}
}
});
},
...
...
Write
Preview
Markdown
is supported
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