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
c0d04b41
Commit
c0d04b41
authored
Jun 05, 2023
by
tangfh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+
parent
acb05240
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
base-page.vue
pages/template/base-page.vue
+5
-5
common.scss
static/common.scss
+6
-2
No files found.
pages/template/base-page.vue
View file @
c0d04b41
...
...
@@ -12,10 +12,10 @@
:item=
"item"
@
onItemClick=
"onItemClick"
></view>
</view>
<c-status-view
@
onStatusClick=
"onStatusClick"
v-if=
"contentStatus.value"
></c-status-view>
<uni-load-more
:status=
"loadMore
View
Status"
:icon-size=
"16"
v-if=
"items.length > 0"
<uni-load-more
:status=
"loadMoreStatus"
:icon-size=
"16"
v-if=
"items.length > 0"
:content-text=
"loadMoreViewContentText"
/>
</scroll-view>
<text
class=
"text-bottom-btn"
@
click=
"onBottomBtnClick"
>
我要报修
</text>
<text
class=
"text-bottom-btn"
@
click=
"onBottomBtnClick"
>
底部按钮
</text>
</view>
</
template
>
...
...
@@ -33,7 +33,7 @@
loadMoreViewContentText
:
{
contentnomore
:
"到底啦~"
},
loadMore
View
Status
:
'noMore'
,
loadMoreStatus
:
'noMore'
,
page
:
1
,
total_page
:
1
,
loadMoreStatus
:
null
,
...
...
@@ -48,7 +48,7 @@
//scroll-view的高度 = 屏幕高度 -(顶部状态栏高度 + 导航栏高度) -(底部tabBar高度 + 底部安全区域高度)
this
.
scrollViewHeight
=
systemInfo
.
screenHeight
-
(
uni
.
getSystemInfoSync
()
.
statusBarHeight
+
this
.
$refs
.
navBar
.
height
)
-
(
systemInfo
.
safeAreaInsets
.
bottom
)
-
90
/
getApp
().
globalData
.
pxToRpxScale
;
84
/
getApp
().
globalData
.
pxToRpxScale
;
this
.
init
(
option
);
},
onShow
()
{
...
...
@@ -121,7 +121,7 @@
let
list
=
data
.
list
;
try
{
this
.
page
++
;
this
.
total_page
=
data
.
total_list
;
this
.
total_page
=
data
.
total_list
/
10
+
(
data
.
total_list
%
10
>
0
?
1
:
0
)
;
}
catch
(
e
)
{
this
.
total_page
=
1
;
console
.
log
(
e
);
...
...
static/common.scss
View file @
c0d04b41
...
...
@@ -195,8 +195,8 @@ input {
border-radius
:
10rpx
;
margin-left
:
32rpx
;
margin-right
:
32rpx
;
height
:
90
rpx
;
width
:
9
0
%
;
height
:
84
rpx
;
width
:
9
2
%
;
font-size
:
$uni-font-size-base
;
}
...
...
@@ -304,6 +304,10 @@ input {
font-size
:
$uni-font-size-sm
;
color
:
$com-text-color-666
;
}
.text-normal-666
{
font-size
:
$uni-font-size-sm
;
color
:
$com-text-color-666
;
}
.text-small-grey
{
font-size
:
$uni-font-size-sm
;
color
:
$com-text-color-grey
;
...
...
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