Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
b56cf24a
U
uni-app
项目概览
DCloud
/
uni-app
4 个月 前同步成功
通知
730
Star
38707
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
7
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
7
Issue
7
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b56cf24a
编写于
11月 28, 2020
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复摇树优化后 uni.openLocation、uni.chooseLocation 页面样式错乱的问题
上级
ffd13efa
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
55 addition
and
56 deletion
+55
-56
src/platforms/h5/components/system-routes/choose-location/index.vue
...rms/h5/components/system-routes/choose-location/index.vue
+38
-39
src/platforms/h5/components/system-routes/open-location/index.vue
...forms/h5/components/system-routes/open-location/index.vue
+17
-17
未找到文件。
src/platforms/h5/components/system-routes/choose-location/index.vue
浏览文件 @
b56cf24a
...
...
@@ -9,17 +9,17 @@
@
regionchange=
"_regionchange"
>
<div
class=
"map-location"
/>
<div
class=
"map-move"
@
click=
"_moveToLocation"
<div
class=
"map-move"
@
click=
"_moveToLocation"
>
<i>

</i>
</div>
</v-uni-map>
<div
class=
"nav"
>
<div
class=
"nav-btn back"
@
click=
"_back"
<div
class=
"nav-btn back"
@
click=
"_back"
>
<i
class=
"uni-btn-icon"
>

</i>
</div>
...
...
@@ -51,14 +51,14 @@
取消
</div>
</div>
<v-uni-scroll-view
scroll-y
class=
"list"
@
scrolltolower=
"_scrolltolower"
<v-uni-scroll-view
scroll-y
class=
"list"
@
scrolltolower=
"_scrolltolower"
>
<div
v-if=
"loading"
class=
"list-loading"
<div
v-if=
"loading"
class=
"list-loading"
>
<i
class=
"uni-loading"
/>
</div>
...
...
@@ -213,7 +213,7 @@ export default {
}
}
</
script
>
<
style
scoped
>
<
style
>
@font-face
{
font-weight
:
normal
;
font-style
:
normal
;
...
...
@@ -232,7 +232,7 @@ export default {
background
:
#f8f8f8
;
}
.map
{
.
uni-system-choose-location
.
map
{
position
:
absolute
;
top
:
-40px
;
left
:
0
;
...
...
@@ -240,7 +240,7 @@ export default {
height
:
380px
;
}
.map-location
{
.
uni-system-choose-location
.
map-location
{
position
:
absolute
;
left
:
50%
;
bottom
:
50%
;
...
...
@@ -252,7 +252,7 @@ export default {
background-size
:
100%
;
}
.map-move
{
.
uni-system-choose-location
.
map-move
{
position
:
absolute
;
bottom
:
50px
;
right
:
10px
;
...
...
@@ -267,7 +267,7 @@ export default {
box-shadow
:
0px
0
5px
1px
rgba
(
0
,
0
,
0
,
0.3
);
}
.map-move
>
i
{
.
uni-system-choose-location
.
map-move
>
i
{
display
:
block
;
width
:
100%
;
height
:
100%
;
...
...
@@ -279,7 +279,7 @@ export default {
-webkit-font-smoothing
:
antialiased
;
}
.nav
{
.
uni-system-choose-location
.
nav
{
position
:
absolute
;
top
:
0
;
left
:
0
;
...
...
@@ -293,7 +293,7 @@ export default {
);
}
.nav-btn
{
.
uni-system-choose-location
.
nav-btn
{
position
:
absolute
;
box-sizing
:
border-box
;
top
:
0
;
...
...
@@ -308,16 +308,16 @@ export default {
cursor
:
pointer
;
}
.nav-btn.confirm
{
.
uni-system-choose-location
.
nav-btn.confirm
{
left
:
auto
;
right
:
0
;
}
.nav-btn.disable
{
.
uni-system-choose-location
.
nav-btn.disable
{
opacity
:
0.4
;
}
.nav-btn
>
.uni-btn-icon
{
.
uni-system-choose-location
.
nav-btn
>
.uni-btn-icon
{
display
:
block
;
width
:
100%
;
height
:
100%
;
...
...
@@ -325,11 +325,11 @@ export default {
border-radius
:
2px
;
}
.nav-btn.confirm
>
.uni-btn-icon
{
.
uni-system-choose-location
.
nav-btn.confirm
>
.uni-btn-icon
{
background-color
:
#007aff
;
}
.menu
{
.
uni-system-choose-location
.
menu
{
position
:
absolute
;
top
:
300px
;
left
:
0
;
...
...
@@ -338,7 +338,7 @@ export default {
background-color
:
white
;
}
.search
{
.
uni-system-choose-location
.
search
{
display
:
flex
;
flex-direction
:
row
;
height
:
50px
;
...
...
@@ -348,7 +348,7 @@ export default {
background-color
:
white
;
}
.search-input
{
.
uni-system-choose-location
.
search-input
{
flex
:
1
;
height
:
100%
;
border-radius
:
5px
;
...
...
@@ -356,15 +356,14 @@ export default {
background
:
#ebebeb
;
}
.search-btn
{
.
uni-system-choose-location
.
search-btn
{
width
:
2.8em
;
color
:
#007aff
;
font-size
:
17px
;
text-align
:
center
;
cursor
:
pointer
;
}
.list
{
.
uni-system-choose-location
.
list
{
position
:
absolute
;
top
:
50px
;
left
:
0
;
...
...
@@ -374,21 +373,21 @@ export default {
/* background-color: #f6f6f6; */
}
.list-loading
{
.
uni-system-choose-location
.
list-loading
{
display
:
flex
;
height
:
50px
;
justify-content
:
center
;
align-items
:
center
;
}
.list-item
{
.
uni-system-choose-location
.
list-item
{
position
:
relative
;
padding
:
10px
;
padding-right
:
40px
;
cursor
:
pointer
;
}
.list-item.selected
::before
{
.
uni-system-choose-location
.
list-item.selected
::before
{
position
:
absolute
;
top
:
50%
;
right
:
10px
;
...
...
@@ -405,7 +404,7 @@ export default {
-webkit-font-smoothing
:
antialiased
;
}
.list-item
:not
(
:last-child
)
::after
{
.
uni-system-choose-location
.
list-item
:not
(
:last-child
)
::after
{
position
:
absolute
;
content
:
""
;
height
:
1px
;
...
...
@@ -415,14 +414,14 @@ export default {
background-color
:
#d3d3d3
;
}
.list-item-title
{
.
uni-system-choose-location
.
list-item-title
{
font-size
:
14px
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
.list-item-detail
{
.
uni-system-choose-location
.
list-item-detail
{
font-size
:
12px
;
color
:
#808080
;
overflow
:
hidden
;
...
...
@@ -431,15 +430,15 @@ export default {
}
@media
screen
and
(
min-width
:
800px
)
{
.map
{
.
uni-system-choose-location
.
map
{
top
:
0
;
height
:
100%
;
}
.map-move
{
.
uni-system-choose-location
.
map-move
{
bottom
:
10px
;
right
:
320px
;
}
.menu
{
.
uni-system-choose-location
.
menu
{
top
:
54px
;
left
:
auto
;
right
:
10px
;
...
...
src/platforms/h5/components/system-routes/open-location/index.vue
浏览文件 @
b56cf24a
<
template
>
<div
class=
"uni-system-open-location"
>
<div
class=
"map-content"
:class=
"
{ 'fix-position': isPoimarkerSrc }"
<div
class=
"map-content"
:class=
"
{ 'fix-position': isPoimarkerSrc }"
>
<iframe
ref=
"map"
...
...
@@ -13,15 +13,15 @@
@
load=
"_check"
/>
<!-- 去这里 -->
<div
v-if=
"isPoimarkerSrc"
class=
"actTonav"
@
click=
"_nav"
<div
v-if=
"isPoimarkerSrc"
class=
"actTonav"
@
click=
"_nav"
/>
</div>
<div
class=
"nav-btn-back"
@
click=
"_back"
<div
class=
"nav-btn-back"
@
click=
"_back"
>
<i
class=
"uni-btn-icon"
>

</i>
</div>
...
...
@@ -76,7 +76,7 @@ export default {
}
}
</
script
>
<
style
scoped
>
<
style
>
.uni-system-open-location
{
display
:
block
;
position
:
absolute
;
...
...
@@ -87,7 +87,7 @@ export default {
background
:
#f8f8f8
;
}
.nav-btn-back
{
.
uni-system-open-location
.
nav-btn-back
{
position
:
absolute
;
box-sizing
:
border-box
;
top
:
0
;
...
...
@@ -102,7 +102,7 @@ export default {
cursor
:
pointer
;
}
.nav-btn-back
>
.uni-btn-icon
{
.
uni-system-open-location
.
nav-btn-back
>
.uni-btn-icon
{
display
:
block
;
width
:
100%
;
height
:
100%
;
...
...
@@ -111,7 +111,7 @@ export default {
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
}
.map-content
{
.
uni-system-open-location
.
map-content
{
position
:
absolute
;
left
:
0
;
top
:
0px
;
...
...
@@ -120,18 +120,18 @@ export default {
overflow
:
hidden
;
}
.map-content.fix-position
{
.
uni-system-open-location
.
map-content.fix-position
{
top
:
-74px
;
bottom
:
-44px
;
}
.map-content
>
iframe
{
.
uni-system-open-location
.
map-content
>
iframe
{
width
:
100%
;
height
:
100%
;
border
:
none
;
}
.actTonav
{
.
uni-system-open-location
.
actTonav
{
position
:
absolute
;
right
:
16px
;
bottom
:
56px
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录