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
e4b7f7a1
Commit
e4b7f7a1
authored
Jul 18, 2023
by
tangfh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+
parent
502cd83a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
base-page.vue
pages/template/base-page.vue
+3
-2
base-tab.vue
pages/template/base-tab.vue
+2
-2
No files found.
pages/template/base-page.vue
View file @
e4b7f7a1
...
...
@@ -74,8 +74,9 @@
this
.
init
(
option
);
},
onShow
()
{
if
(
!
this
.
firstRequest
)
{
//this.request()
if
(
!
this
.
firstRequest
&&
this
.
page
==
1
)
{
this
.
refreshFlag
=
true
;
this
.
getList
();
}
},
methods
:
{
...
...
pages/template/base-tab.vue
View file @
e4b7f7a1
...
...
@@ -104,7 +104,7 @@
onShow
()
{
var
tab
=
this
.
tabBars
[
this
.
tabIndex
];
if
(
!
tab
.
content
.
firstRequest
&&
tab
.
content
.
page
==
1
)
{
tab
.
content
.
refresh
in
g
=
true
;
tab
.
content
.
refresh
Fla
g
=
true
;
this
.
getList
();
}
},
...
...
@@ -193,7 +193,7 @@
tab
.
content
.
firstRequest
=
false
;
let
data
=
res
.
data
.
data
;
let
list
=
data
.
list
;
if
(
tab
.
content
.
refreshing
||
tab
.
content
.
list
.
length
==
0
)
{
if
(
tab
.
content
.
refreshing
||
tab
.
content
.
refreshFlag
||
tab
.
content
.
list
.
length
==
0
)
{
tab
.
content
.
total_pages
=
util
.
calTotalPage
(
data
.
total_list
);
this
.
clearTabData
(
this
.
tabIndex
);
tab
.
content
.
list
=
list
;
...
...
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