Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
U
uni-app-base
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
tangfh
uni-app-base
Commits
acb05240
Commit
acb05240
authored
May 25, 2023
by
tangfh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+
parent
cf6d3f04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
base-tab.vue
pages/template/base-tab.vue
+3
-1
No files found.
pages/template/base-tab.vue
View file @
acb05240
...
@@ -192,6 +192,7 @@
...
@@ -192,6 +192,7 @@
return
;
return
;
}
}
let
data
=
res
.
data
.
data
;
let
data
=
res
.
data
.
data
;
tab
.
firstRequest
=
false
;
tab
.
refreshing
=
false
;
tab
.
refreshing
=
false
;
tab
.
isRequestComplete
=
true
;
tab
.
isRequestComplete
=
true
;
this
.
clearTabData
(
this
.
tabIndex
);
this
.
clearTabData
(
this
.
tabIndex
);
...
@@ -208,6 +209,7 @@
...
@@ -208,6 +209,7 @@
item
.
addtimeformat
=
dayjs
.
unix
(
item
.
addtime
).
format
(
"YYYY-MM-DD HH:mm"
)
item
.
addtimeformat
=
dayjs
.
unix
(
item
.
addtime
).
format
(
"YYYY-MM-DD HH:mm"
)
})
})
this
.
tabList
[
this
.
tabIndex
].
data
=
this
.
tabList
[
this
.
tabIndex
].
data
.
concat
(
data
.
list
);
this
.
tabList
[
this
.
tabIndex
].
data
=
this
.
tabList
[
this
.
tabIndex
].
data
.
concat
(
data
.
list
);
tab
.
contentStatus
=
this
.
tabList
[
this
.
tabIndex
].
data
.
length
==
0
?
constant
.
CONTENT_STATUS
.
EMPTY
:
{}
},
},
requestFail
(
res
,
status
)
{
requestFail
(
res
,
status
)
{
if
(
this
.
tabList
[
this
.
tabIndex
].
data
.
length
==
0
)
{
if
(
this
.
tabList
[
this
.
tabIndex
].
data
.
length
==
0
)
{
...
@@ -215,8 +217,8 @@
...
@@ -215,8 +217,8 @@
}
}
},
},
requestComplete
()
{
requestComplete
()
{
this
.
tabList
[
this
.
tabIndex
].
firstRequest
=
false
;
var
tab
=
this
.
tabList
[
this
.
tabIndex
];
var
tab
=
this
.
tabList
[
this
.
tabIndex
];
tab
.
firstRequest
=
false
;
tab
.
refreshing
=
false
;
tab
.
refreshing
=
false
;
tab
.
isRequestComplete
=
true
;
tab
.
isRequestComplete
=
true
;
uni
.
hideLoading
()
uni
.
hideLoading
()
...
...
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