55 lines
849 B
Vue
55 lines
849 B
Vue
<template>
|
|
<view class="baseMap">
|
|
<!-- #ifdef H5 || APP -->
|
|
<H5AndAppMap :refresh="refresh"></H5AndAppMap>
|
|
<!-- #endif -->
|
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
<weixinMap :refresh="refresh"></weixinMap>
|
|
<!-- #endif -->
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
// #ifdef H5 || APP
|
|
import H5AndAppMap from './H5AndAppMap.nvue'
|
|
// #endif
|
|
// #ifdef MP-WEIXIN
|
|
import weixinMap from './weixinMap.vue'
|
|
// #endif
|
|
export default {
|
|
data() {
|
|
return {
|
|
refresh:false,
|
|
}
|
|
},
|
|
// #ifdef H5 || APP
|
|
components:{H5AndAppMap},
|
|
// #endif
|
|
// #ifdef MP-WEIXIN
|
|
components:{weixinMap},
|
|
// #endif
|
|
async onLoad() {
|
|
|
|
},
|
|
onShow() {
|
|
this.refresh=true;
|
|
},
|
|
onHide() {
|
|
this.refresh=false;
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.baseMap{
|
|
width:750rpx;
|
|
height: 100vh;
|
|
map{
|
|
width: 750rpx;
|
|
height: 100vh;
|
|
}
|
|
}
|
|
|
|
</style>
|