提交 b56cf24a 编写于 作者: Q qiang

fix: 修复摇树优化后 uni.openLocation、uni.chooseLocation 页面样式错乱的问题

上级 ffd13efa
...@@ -9,17 +9,17 @@ ...@@ -9,17 +9,17 @@
@regionchange="_regionchange" @regionchange="_regionchange"
> >
<div class="map-location" /> <div class="map-location" />
<div <div
class="map-move" class="map-move"
@click="_moveToLocation" @click="_moveToLocation"
> >
<i>&#xec32;</i> <i>&#xec32;</i>
</div> </div>
</v-uni-map> </v-uni-map>
<div class="nav"> <div class="nav">
<div <div
class="nav-btn back" class="nav-btn back"
@click="_back" @click="_back"
> >
<i class="uni-btn-icon">&#xe650;</i> <i class="uni-btn-icon">&#xe650;</i>
</div> </div>
...@@ -51,14 +51,14 @@ ...@@ -51,14 +51,14 @@
取消 取消
</div> </div>
</div> </div>
<v-uni-scroll-view <v-uni-scroll-view
scroll-y scroll-y
class="list" class="list"
@scrolltolower="_scrolltolower" @scrolltolower="_scrolltolower"
> >
<div <div
v-if="loading" v-if="loading"
class="list-loading" class="list-loading"
> >
<i class="uni-loading" /> <i class="uni-loading" />
</div> </div>
...@@ -213,7 +213,7 @@ export default { ...@@ -213,7 +213,7 @@ export default {
} }
} }
</script> </script>
<style scoped> <style>
@font-face { @font-face {
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
...@@ -232,7 +232,7 @@ export default { ...@@ -232,7 +232,7 @@ export default {
background: #f8f8f8; background: #f8f8f8;
} }
.map { .uni-system-choose-location .map {
position: absolute; position: absolute;
top: -40px; top: -40px;
left: 0; left: 0;
...@@ -240,7 +240,7 @@ export default { ...@@ -240,7 +240,7 @@ export default {
height: 380px; height: 380px;
} }
.map-location { .uni-system-choose-location .map-location {
position: absolute; position: absolute;
left: 50%; left: 50%;
bottom: 50%; bottom: 50%;
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
background-size: 100%; background-size: 100%;
} }
.map-move { .uni-system-choose-location .map-move {
position: absolute; position: absolute;
bottom: 50px; bottom: 50px;
right: 10px; right: 10px;
...@@ -267,7 +267,7 @@ export default { ...@@ -267,7 +267,7 @@ export default {
box-shadow: 0px 0 5px 1px rgba(0, 0, 0, 0.3); box-shadow: 0px 0 5px 1px rgba(0, 0, 0, 0.3);
} }
.map-move > i { .uni-system-choose-location .map-move > i {
display: block; display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -279,7 +279,7 @@ export default { ...@@ -279,7 +279,7 @@ export default {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
.nav { .uni-system-choose-location .nav {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
...@@ -293,7 +293,7 @@ export default { ...@@ -293,7 +293,7 @@ export default {
); );
} }
.nav-btn { .uni-system-choose-location .nav-btn {
position: absolute; position: absolute;
box-sizing: border-box; box-sizing: border-box;
top: 0; top: 0;
...@@ -308,16 +308,16 @@ export default { ...@@ -308,16 +308,16 @@ export default {
cursor: pointer; cursor: pointer;
} }
.nav-btn.confirm { .uni-system-choose-location .nav-btn.confirm {
left: auto; left: auto;
right: 0; right: 0;
} }
.nav-btn.disable { .uni-system-choose-location .nav-btn.disable {
opacity: 0.4; opacity: 0.4;
} }
.nav-btn > .uni-btn-icon { .uni-system-choose-location .nav-btn > .uni-btn-icon {
display: block; display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -325,11 +325,11 @@ export default { ...@@ -325,11 +325,11 @@ export default {
border-radius: 2px; border-radius: 2px;
} }
.nav-btn.confirm > .uni-btn-icon { .uni-system-choose-location .nav-btn.confirm > .uni-btn-icon {
background-color: #007aff; background-color: #007aff;
} }
.menu { .uni-system-choose-location .menu {
position: absolute; position: absolute;
top: 300px; top: 300px;
left: 0; left: 0;
...@@ -338,7 +338,7 @@ export default { ...@@ -338,7 +338,7 @@ export default {
background-color: white; background-color: white;
} }
.search { .uni-system-choose-location .search {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
height: 50px; height: 50px;
...@@ -348,7 +348,7 @@ export default { ...@@ -348,7 +348,7 @@ export default {
background-color: white; background-color: white;
} }
.search-input { .uni-system-choose-location .search-input {
flex: 1; flex: 1;
height: 100%; height: 100%;
border-radius: 5px; border-radius: 5px;
...@@ -356,15 +356,14 @@ export default { ...@@ -356,15 +356,14 @@ export default {
background: #ebebeb; background: #ebebeb;
} }
.search-btn { .uni-system-choose-location .search-btn {
width: 2.8em; width: 2.8em;
color: #007aff; color: #007aff;
font-size: 17px; font-size: 17px;
text-align: center; text-align: center;
cursor: pointer;
} }
.list { .uni-system-choose-location .list {
position: absolute; position: absolute;
top: 50px; top: 50px;
left: 0; left: 0;
...@@ -374,21 +373,21 @@ export default { ...@@ -374,21 +373,21 @@ export default {
/* background-color: #f6f6f6; */ /* background-color: #f6f6f6; */
} }
.list-loading { .uni-system-choose-location .list-loading {
display: flex; display: flex;
height: 50px; height: 50px;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.list-item { .uni-system-choose-location .list-item {
position: relative; position: relative;
padding: 10px; padding: 10px;
padding-right: 40px; padding-right: 40px;
cursor: pointer; cursor: pointer;
} }
.list-item.selected::before { .uni-system-choose-location .list-item.selected::before {
position: absolute; position: absolute;
top: 50%; top: 50%;
right: 10px; right: 10px;
...@@ -405,7 +404,7 @@ export default { ...@@ -405,7 +404,7 @@ export default {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
.list-item:not(:last-child)::after { .uni-system-choose-location .list-item:not(:last-child)::after {
position: absolute; position: absolute;
content: ""; content: "";
height: 1px; height: 1px;
...@@ -415,14 +414,14 @@ export default { ...@@ -415,14 +414,14 @@ export default {
background-color: #d3d3d3; background-color: #d3d3d3;
} }
.list-item-title { .uni-system-choose-location .list-item-title {
font-size: 14px; font-size: 14px;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.list-item-detail { .uni-system-choose-location .list-item-detail {
font-size: 12px; font-size: 12px;
color: #808080; color: #808080;
overflow: hidden; overflow: hidden;
...@@ -431,15 +430,15 @@ export default { ...@@ -431,15 +430,15 @@ export default {
} }
@media screen and (min-width: 800px) { @media screen and (min-width: 800px) {
.map { .uni-system-choose-location .map {
top: 0; top: 0;
height: 100%; height: 100%;
} }
.map-move { .uni-system-choose-location .map-move {
bottom: 10px; bottom: 10px;
right: 320px; right: 320px;
} }
.menu { .uni-system-choose-location .menu {
top: 54px; top: 54px;
left: auto; left: auto;
right: 10px; right: 10px;
......
<template> <template>
<div class="uni-system-open-location"> <div class="uni-system-open-location">
<div <div
class="map-content" class="map-content"
:class="{ 'fix-position': isPoimarkerSrc }" :class="{ 'fix-position': isPoimarkerSrc }"
> >
<iframe <iframe
ref="map" ref="map"
...@@ -13,15 +13,15 @@ ...@@ -13,15 +13,15 @@
@load="_check" @load="_check"
/> />
<!-- 去这里 --> <!-- 去这里 -->
<div <div
v-if="isPoimarkerSrc" v-if="isPoimarkerSrc"
class="actTonav" class="actTonav"
@click="_nav" @click="_nav"
/> />
</div> </div>
<div <div
class="nav-btn-back" class="nav-btn-back"
@click="_back" @click="_back"
> >
<i class="uni-btn-icon">&#xe601;</i> <i class="uni-btn-icon">&#xe601;</i>
</div> </div>
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
} }
} }
</script> </script>
<style scoped> <style>
.uni-system-open-location { .uni-system-open-location {
display: block; display: block;
position: absolute; position: absolute;
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
background: #f8f8f8; background: #f8f8f8;
} }
.nav-btn-back { .uni-system-open-location .nav-btn-back {
position: absolute; position: absolute;
box-sizing: border-box; box-sizing: border-box;
top: 0; top: 0;
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
cursor: pointer; cursor: pointer;
} }
.nav-btn-back > .uni-btn-icon { .uni-system-open-location .nav-btn-back > .uni-btn-icon {
display: block; display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);
} }
.map-content { .uni-system-open-location .map-content {
position: absolute; position: absolute;
left: 0; left: 0;
top: 0px; top: 0px;
...@@ -120,18 +120,18 @@ export default { ...@@ -120,18 +120,18 @@ export default {
overflow: hidden; overflow: hidden;
} }
.map-content.fix-position { .uni-system-open-location .map-content.fix-position {
top: -74px; top: -74px;
bottom: -44px; bottom: -44px;
} }
.map-content > iframe { .uni-system-open-location .map-content > iframe {
width: 100%; width: 100%;
height: 100%; height: 100%;
border: none; border: none;
} }
.actTonav { .uni-system-open-location .actTonav {
position: absolute; position: absolute;
right: 16px; right: 16px;
bottom: 56px; bottom: 56px;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册