Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
b63ae168
Commit
b63ae168
authored
Jun 12, 2020
by
zhangjianguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
卡券接口注释
parent
eb07179b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
index.vue
pages/card/index/index.vue
+24
-24
No files found.
pages/card/index/index.vue
View file @
b63ae168
...
@@ -88,7 +88,6 @@ export default {
...
@@ -88,7 +88,6 @@ export default {
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
"px"
;
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
"px"
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
console
.
log
(
this
.
u
)
if
(
!
this
.
u
)
{
if
(
!
this
.
u
)
{
this
.
u
=
{
this
.
u
=
{
nickName
:
"未登录"
,
nickName
:
"未登录"
,
...
@@ -117,7 +116,7 @@ export default {
...
@@ -117,7 +116,7 @@ export default {
},
},
methods
:
{
methods
:
{
change
(
index
)
{
change
(
index
)
{
console
.
log
(
index
)
this
.
current
=
index
;
this
.
current
=
index
;
this
.
page
=
1
;
this
.
page
=
1
;
this
.
g
=
[];
this
.
g
=
[];
...
@@ -127,30 +126,31 @@ export default {
...
@@ -127,30 +126,31 @@ export default {
init
()
{
init
()
{
this
.
isover
=
false
;
this
.
isover
=
false
;
let
h
=
this
.
apiheader
();
let
h
=
this
.
apiheader
();
this
.
request
(
this
.
loading
=
false
;
{
// this.request(
url
:
""
,
// {
header
:
h
,
// url: "",
data
:
{
// header: h,
r
:
"api/card/user-card"
,
// data: {
status
:
this
.
current
+
1
,
// r: "api/card/user-card",
page
:
this
.
page
,
// status: this.current+1,
},
// page: this.page,
},
// },
(
res
)
=>
{
// },
this
.
loading
=
false
;
// (res) => {
// this.loading = false;
if
(
res
.
data
.
list
.
length
>
0
){
//
if(res.data.list.length>0){
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
list
);
//
this.g = this.g.concat(res.data.list);
// TODO 这里没返一共多少页 注意下
//
//
TODO 这里没返一共多少页 注意下
// this.page_count = res.data.pagination.page_count;
//
//
this.page_count = res.data.pagination.page_count;
// if (this.page_count == 1) {
//
//
if (this.page_count == 1) {
// this.isover = true;
//
//
this.isover = true;
// }
//
//
}
}
//
}
}
//
}
);
//
);
},
},
lower
(
e
)
{
lower
(
e
)
{
if
(
this
.
page
<
this
.
page_count
)
{
if
(
this
.
page
<
this
.
page_count
)
{
...
...
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