地图bug
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<view >
|
||||
<view @touchend='touchend' @touchmove='touchmove' @touchstart='onChange'
|
||||
<view @touchend.stop.prevent ='touchend' @touchmove.stop.prevent ='touchmove' @touchstart.stop.prevent ='onChange'
|
||||
style="display: flex;flex-direction: column;flex-wrap: wrap;z-index: 9999999999999999999999999 !important;"
|
||||
:style="{height:isShow.switchBar?`calc(${styles.height}rpx + ${styles.move}rpx )`: ` calc( ${styles.move}rpx + 150rpx)` }"
|
||||
:class="styles.open? 'serviceStation_body' :'seleServiceStation_body' ">
|
||||
<view @click.stop="switchBar()" class="switchBar"></view>
|
||||
<view id="switchBar" @tap.stop="switchBar()" class="switchBar"></view>
|
||||
<view style="flex: 1; overflow: hidden; width: 100%; ">
|
||||
<view style="" class="information">
|
||||
<view class="information_left">
|
||||
@@ -49,9 +49,9 @@
|
||||
</view>
|
||||
|
||||
<view class="serviceStation_footer">
|
||||
<view @click.stop="Navigation" style="background-color: #8B583E;" class="serviceStation_footer_butten">导航
|
||||
<view id="Navigation" @tap.stop="Navigation" style="background-color: #8B583E;" class="serviceStation_footer_butten">导航
|
||||
</view>
|
||||
<view @tap.stop="jump" style="background-color: #FF6700;" class="serviceStation_footer_butten">详情</view>
|
||||
<view id="jump" @tap.stop="jump" style="background-color: #FF6700;" class="serviceStation_footer_butten">详情</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -139,12 +139,15 @@
|
||||
},
|
||||
//开始滑动
|
||||
onChange(e) {
|
||||
console.log('开始滑动');
|
||||
if(e.target.id){
|
||||
this[e.target.id]()
|
||||
return
|
||||
}
|
||||
console.log(e.target.id,'开始滑动');
|
||||
this.$emit('dragMap', this.details, false)
|
||||
// 这一行为记录滑动位置代码 this.styles.Y = e.changedTouches[0].clientY + this.styles.move;
|
||||
this.styles.open = true;
|
||||
this.styles.Y = e.changedTouches[0].clientY;
|
||||
console.log(e,'onChange')
|
||||
},
|
||||
// 滑动完成
|
||||
touchend(e) {
|
||||
|
||||
Reference in New Issue
Block a user