|
...
|
...
|
@@ -82,6 +82,7 @@ Page({ |
|
|
|
* 生命周期函数--监听页面显示
|
|
|
|
*/
|
|
|
|
onShow: async function () {
|
|
|
|
this.getClassNameFlag=true;
|
|
|
|
//this.getPos();
|
|
|
|
if(this.data.hasSuggestion) return;
|
|
|
|
await getApp().getSystemInfo();
|
|
...
|
...
|
@@ -194,6 +195,7 @@ Page({ |
|
|
|
regionchange(e){
|
|
|
|
console.log('regionchange', e)
|
|
|
|
if(typeof this.mapCtx=='undefined') return;
|
|
|
|
this.getClassNameFlag=true;
|
|
|
|
this.mapCtx.getScale({
|
|
|
|
success: (res) => {
|
|
|
|
this.mapData.scale = res.scale;
|
|
...
|
...
|
@@ -224,6 +226,7 @@ Page({ |
|
|
|
},
|
|
|
|
mapUpdated(e){
|
|
|
|
console.log('mapUpdated', e)
|
|
|
|
this.getClassNameFlag=true;
|
|
|
|
this.mapCtx.getScale({
|
|
|
|
success:(res)=>{
|
|
|
|
this.mapData.scale=res.scale;
|
|
...
|
...
|
@@ -453,6 +456,10 @@ Page({ |
|
|
|
markerId:this.sellers[i].id
|
|
|
|
},false)
|
|
|
|
}
|
|
|
|
this.getClassNameFlag=true;
|
|
|
|
let that=this;
|
|
|
|
setTimeout(function(){
|
|
|
|
that.getClassNameFlag=true;
|
|
|
|
},300)
|
|
|
|
|
|
|
|
},
|
|
|
|
}) |
|
|
\ No newline at end of file |
...
|
...
|
|