Commit 220e49b2fb8140b7392009310dc67f2963d65162

Authored by wangfan
1 parent 0b368fbd

C端调整

Showing 1 changed file with 15 additions and 4 deletions
... ... @@ -107,6 +107,12 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: async function () {
console.log({
'this.hasGetLocation':this.hasGetLocation,
'this.hasOnLoad':this.hasOnLoad,
'this.hasClickMoveToLocation':this.hasClickMoveToLocation,
'this.data.hasSuggestion':this.data.hasSuggestion,
})
this.getClassNameFlag=true;
//this.getPos();
if(this.data.hasSuggestion) return;
... ... @@ -139,7 +145,10 @@ Page({
//this.getPos(systemInfo);
this.systemInfo=systemInfo
this.selectComponent('#getpos').getPos();
this.getMarkers();
if(!this.hasClickMoveToLocation){
this.getMarkers();
}
},
/**
... ... @@ -177,9 +186,10 @@ Page({
},
onpos(e){
console.log('onpos',e);
let res=e.detail;
this.hasGetLocation=true;
if(!res.latitude) return;
this.hasGetLocation=true;
this.sellersIds=[]
this.sellers=[]
let map = this.data.map;
... ... @@ -195,6 +205,7 @@ Page({
hasSuggestion:false,
})
if(this.mapCtx){
//this.mapCtx.moveToLocation();
this.mapCtx.getRegion({
success:(res)=>{
console.log('onpos.getRegion',res)
... ... @@ -556,13 +567,13 @@ Page({
},300)
},
bindtransition(e){
console.log('bindtransition',this.sellersNow,e.detail.current,this.sellersNow[e.detail.current]);
if(this.hasMarkertap){
if(this.hasMarkertap){
this.hasMarkertap=false;
return;
}
let i=e.detail.current
this.activeSellerID=this.data.markers[i].id
console.log('bindtransition',this.sellersNow,e.detail.current,this.sellersNow[e.detail.current],this.activeSellerID);
// this.activeSellerID=this.sellersNow[i];
// this.markertap({
// markerId:this.activeSellerID
... ...