Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
map-demo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-09-23 10:53:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
af2714b825c93ceb0057369f3361f6a78ef57e4e
af2714b8
1 parent
b51a413e
fix Bob细节样式调整
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
components.d.ts
src/views/bieyuan/info.vue
src/views/bieyuan/map.vue
components.d.ts
View file @
af2714b
...
...
@@ -37,6 +37,7 @@ declare module '@vue/runtime-core' {
VanSwipeItem
:
typeof
import
(
'vant/es'
)[
'SwipeItem'
]
VanTab
:
typeof
import
(
'vant/es'
)[
'Tab'
]
VanTabs
:
typeof
import
(
'vant/es'
)[
'Tabs'
]
VanToast
:
typeof
import
(
'vant/es'
)[
'Toast'
]
VRViewer
:
typeof
import
(
'./src/components/VRViewer/index.vue'
)[
'default'
]
}
}
...
...
src/views/bieyuan/info.vue
View file @
af2714b
This diff is collapsed. Click to expand it.
src/views/bieyuan/map.vue
View file @
af2714b
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-2
2 14:03:09
* @LastEditTime: 2024-09-2
3 10:50:53
* @FilePath: /map-demo/src/views/bieyuan/map.vue
* @Description: 公众地图主体页面
-->
...
...
@@ -42,7 +42,7 @@
<button @click="show = false">关闭</button>
</div>
</template> -->
<page-info ref="pageInfo" :info="itemInfo" @close-float="onCloseFloat" @route="onRoute"></page-info>
<page-info ref="pageInfo" :info="itemInfo"
:height="info_height"
@close-float="onCloseFloat" @route="onRoute"></page-info>
<!-- <div v-if="showClose" @click="closeFloatPanel" class="close-float-panel">
<van-icon name="arrow-left" color="#FFF" size="1.5rem" />
</div> -->
...
...
@@ -176,7 +176,7 @@ export default {
data_paths: {}, // 接口获取-地图导航路径
data_path_list: [], // 接口获取-地图导航路径
info_height: 0,
anchors: [0, (0.
4
5 * window.innerHeight), (1 * window.innerHeight)],
anchors: [0, (0.
6
5 * window.innerHeight), (1 * window.innerHeight)],
themeVars: {
floatingPanelHeaderHeight: 0,
floatingPanelBorderRadius: '1.25rem'
...
...
@@ -375,13 +375,13 @@ export default {
// 打开浮动面板
this.info_height = (0.
4
5 * window.innerHeight);
this.info_height = (0.
6
5 * window.innerHeight);
// 浮动面板样式
$('.van-floating-panel__content').css('borderRadius', '1.25rem');
$('.van-floating-panel').css('boxShadow', '0 0 15px black');
// 定位到当前位置中心
this.map.setZoomAndCenter(this.zoom, this.itemInfo.position);
//
this.map.setZoomAndCenter(this.zoom, this.itemInfo.position);
})
}
// TODO: ID问题看看实际名称叫什么
...
...
@@ -653,7 +653,7 @@ export default {
// })
},
onHeightChange ({ height }) { // 监听浮动面板高度变化
if (height
=== window.innerHeight
) {
if (height
> window.innerHeight * 0.6
) {
// // 浮动面板样式
// $('.van-floating-panel__content').css('borderRadius', '0');
// this.showClose = true;
...
...
@@ -675,7 +675,7 @@ export default {
}
},
closeFloatPanel () {
this.info_height = (0.
4
5 * window.innerHeight);
this.info_height = (0.
6
5 * window.innerHeight);
$('.van-floating-panel__content').css('borderRadius', '1.25rem');
this.showClose = false;
// 关闭音频
...
...
Please
register
or
login
to post a comment