地图bug

This commit is contained in:
caoliancun
2023-02-15 08:54:28 +08:00
parent d6e55390f3
commit 84613456a7
4 changed files with 14 additions and 11 deletions

View File

@@ -135,8 +135,8 @@
uni.setStorageSync('loginOut', true)
setTimeout(() => {
uni.reLaunch({
// url: '/BagAuth/pages/login/login'
url:'/BagAuth/pages/login/oldLogin'
url: '/BagAuth/pages/login/login'
// url:'/BagAuth/pages/login/oldLogin'
})
}, 1000)
}

View File

@@ -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) {

View File

@@ -1,6 +1,6 @@
{
"name" : "星油",
"appid" : "__UNI__B20D014",
"appid" : "__UNI__F7EF840",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",

View File

@@ -77,8 +77,8 @@
})
} else {
uni.redirectTo({
// url: '/BagAuth/pages/login/login'
url:'/BagAuth/pages/login/oldLogin'
url: '/BagAuth/pages/login/login'
// url:'/BagAuth/pages/login/oldLogin'
})
}
}, 2000)