星油企业版更新

This commit is contained in:
caolc
2023-02-13 15:43:06 +08:00
parent 41c2629561
commit d6e55390f3
51 changed files with 5176 additions and 480 deletions

View File

@@ -83,6 +83,11 @@
key: 'UTXBZ-BUH6D-TQD44-HCEG4-UKOFT-U2BDN'
});
},
watch:{
enableScroll:function(n,o){
console.log('全局是否可拖动',n)
}
},
methods: {
bindregionchange(e){
console.log(e,'***********')
@@ -407,9 +412,7 @@
assembly() {},
//点击气泡事件
async callouttap(e) {
console.log(e, this.markers, this.markers[e.detail.markerId], '*****')
let seleMark = this.markers.filter(item => item.id == e.detail.markerId);
console.log(seleMark[0].siteId, '筛选的id')
// this.enableScroll = true
let details = await oilSiteApi.getSiteDetails({
latitude: String(this.coordinate.latitude),
@@ -450,7 +453,6 @@
//移动当前中心点 参数:经纬度
newMapMoveToLocation(longitude, latitude, type) {
let that = this
this.mapContext.moveToLocation({
longitude: longitude,
latitude: latitude,
@@ -466,7 +468,6 @@
setTimeout(() => {
that.mapScale = 13
}, 500)
}, 500)
}
})
@@ -533,10 +534,13 @@
},
//拖动辅助控件
dragMap(e, w) {
this.enableScroll = w
let that = this
this.enableScroll = w;
console.log('辅助控件触发;是否可以拖动地图1>',that.enableScroll)
this.newMapMoveToLocation(e.longitude, e.latitude)
uni.$on('dragMap', function(e) {
this.enableScroll = e
that.enableScroll = e
console.log('辅助控件触发;是否可以拖动地图>',that.enableScroll)
})
}
}