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
e057426b
Commit
e057426b
authored
May 22, 2023
by
tangfh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+
parent
be64ade2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
base-page.vue
pages/template/base-page.vue
+11
-4
base-tab.vue
pages/template/base-tab.vue
+7
-1
No files found.
pages/template/base-page.vue
View file @
e057426b
...
...
@@ -37,7 +37,8 @@
page
:
1
,
total_page
:
1
,
items
:
[],
channel
:
"ongoning"
channel
:
"ongoning"
,
firstRequest
:
true
}
},
onLoad
(
option
)
{
...
...
@@ -48,6 +49,11 @@
90
/
getApp
().
globalData
.
pxToRpxScale
;
this
.
init
(
option
);
},
onShow
()
{
if
(
!
this
.
firstRequest
)
{
//this.request()
}
},
methods
:
{
init
(
option
)
{
this
.
onRefresh
()
...
...
@@ -66,14 +72,14 @@
onRefresh
(
e
)
{
this
.
refresherTriggered
=
true
;
this
.
refreshInit
();
this
.
getLi
st
();
this
.
reque
st
();
},
onLoadMore
(
e
)
{
if
(
'noMore'
==
this
.
status
)
{
return
;
}
this
.
status
=
'loading'
;
this
.
getLi
st
();
this
.
reque
st
();
},
onBottomBtnClick
()
{
uni
.
navigateTo
({
...
...
@@ -85,7 +91,7 @@
url
:
"/pages/repair-detail/repair-detail"
})
},
getLi
st
()
{
reque
st
()
{
this
.
page
=
this
.
page
>
this
.
total_page
?
this
.
total_page
:
this
.
page
;
let
url
=
""
;
let
param
=
{
...
...
@@ -133,6 +139,7 @@
this
.
status
=
constant
.
LOAD_STATUS
.
more
;
}
}
this
.
firstRequest
=
false
uni
.
hideLoading
()
}
}
...
...
pages/template/base-tab.vue
View file @
e057426b
...
...
@@ -85,7 +85,8 @@
order_sn
:
"SN2023050813"
,
date
:
"2023-05-06-08 13:16"
,
item
:
"公共照明"
,
}
},
firstRequest
:
true
,
}
},
onLoad
(
option
)
{
...
...
@@ -100,6 +101,11 @@
this
.
init
(
option
);
},
onShow
()
{
if
(
!
this
.
firstRequest
)
{
//this.getList()
}
},
methods
:
{
init
(
option
)
{
this
.
initTabBar
();
...
...
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