Commit aa440716d1c74d76de3d0917d2127ebeaef2c99b

Authored by wangfan
1 parent f2ba0604

地图优化

... ... @@ -122,9 +122,14 @@ App({
'content-type': 'application/x-www-form-urlencoded'
},
success: function (res) {
let openid=res.data.data.openid;
wx.setStorage({key:'customer_openid',data:openid});
success(openid);
try{
let openid=res.data.data.openid;
wx.setStorage({key:'customer_openid',data:openid});
success(openid);
}catch(e){
console.log(res);
fail(res);
}
},
fail: function (res) {
console.log(res);
... ...
... ... @@ -237,6 +237,7 @@ Page({
},
mapUpdated(e){
console.log('mapUpdated', e)
if(typeof this.mapCtx=='undefined') return;
this.getClassNameFlag=true;
this.mapCtx.getScale({
success:(res)=>{
... ...