Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
genary
uni-app
提交
24d4ef21
U
uni-app
项目概览
genary
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
24d4ef21
编写于
11月 28, 2020
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' into alpha
上级
64623ae7
b56cf24a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
57 addition
and
58 deletion
+57
-58
packages/vue-cli-plugin-uni-optimize/packages/webpack-optimize-plugin/api.js
...ugin-uni-optimize/packages/webpack-optimize-plugin/api.js
+2
-2
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
未找到文件。
packages/vue-cli-plugin-uni-optimize/packages/webpack-optimize-plugin/api.js
浏览文件 @
24d4ef21
...
...
@@ -102,7 +102,7 @@ const isAppComponents = filepath => {
const
isCoreComponents
=
filepath
=>
{
return
path
.
extname
(
filepath
)
===
'
.vue
'
&&
filepath
.
indexOf
(
'
/core/view/components/
'
)
===
0
(
filepath
.
indexOf
(
'
/core/view/components/
'
)
===
0
||
filepath
.
indexOf
(
'
/platforms/
'
+
process
.
env
.
UNI_PLATFORM
+
'
/view/components/
'
)
===
0
)
}
const
isAppMixins
=
filepath
=>
{
...
...
@@ -241,4 +241,4 @@ module.exports = function updateApis (apis = new Set(), userApis = new Set()) {
updateCoreComponents
(
coreComponentsPaths
)
updateAppMixins
(
appMixinsPaths
)
updateSystemRoutes
(
systemRoutesPaths
)
}
}
src/platforms/h5/components/system-routes/choose-location/index.vue
浏览文件 @
24d4ef21
...
...
@@ -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
浏览文件 @
24d4ef21
<
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录