Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mocp-uniapp
Overview
Overview
Details
Activity
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
pangchong
mocp-uniapp
Commits
d147911a
Commit
d147911a
authored
Mar 03, 2025
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 解决ios底部兼容问题
parent
ff3315a9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
src/mocp/components/global-page/global-page.vue
+10
-2
src/mocp/components/global-picker/global-picker.vue
+3
-0
src/mocp/components/global-popup/global-popup.vue
+1
-0
No files found.
src/mocp/components/global-page/global-page.vue
View file @
d147911a
...
...
@@ -84,8 +84,8 @@
<slot
v-else
></slot>
</view>
<!-- 底部 -->
<
template
#
bottom
>
<view
class=
"footer-btn"
v-if=
"showFooterBtn"
>
<
template
#
bottom
v-if=
"showBottom"
>
<view
class=
"footer-btn"
v-if=
"showFooterBtn"
:style=
"
{ visibility: showBottom ? 'visible' : 'hidden' }"
>
<global-button
type=
"primary"
size=
"large"
@
tap=
"handleFooterClick"
>
{{
footerBtnText
}}
</global-button>
</view>
<slot
name=
"bottom"
></slot>
...
...
@@ -476,6 +476,14 @@ defineExpose({
},
element
:
paging
})
//处理ios底部兼容问题
const
showBottom
=
ref
(
true
)
uni
.
$on
(
'changeShowBottom'
,
(
boolean
)
=>
{
const
systemInfo
=
uni
.
getSystemInfoSync
()
if
(
systemInfo
.
platform
===
'ios'
)
{
showBottom
.
value
=
!
boolean
}
})
</
script
>
<
script
>
export
default
{
...
...
src/mocp/components/global-picker/global-picker.vue
View file @
d147911a
...
...
@@ -287,6 +287,9 @@ watch(
},
{
immediate
:
true
}
)
watch
(
show
,
(
value
)
=>
{
uni
.
$emit
(
'changeShowBottom'
,
value
)
})
//点击确定按钮
const
confirm
=
(
e
)
=>
{
show
.
value
=
false
...
...
src/mocp/components/global-popup/global-popup.vue
View file @
d147911a
...
...
@@ -120,6 +120,7 @@ watch(
scrollTop
.
value
=
ps
.
distance
>
0
?
ps
.
distance
:
oldScrollTop
.
value
})
}
uni
.
$emit
(
'changeShowBottom'
,
value
)
}
)
const
close
=
()
=>
{
...
...
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