|
@@ -197,9 +197,13 @@
|
|
|
//车辆信息初始化
|
|
|
//地图初始化
|
|
|
var defaultCity = renlian.storage.get('userinfo').baseinfo.defaultCity;
|
|
|
+ console.log(defaultCity);
|
|
|
if(!defaultCity){
|
|
|
defaultCity = [109.84040,40.658168];
|
|
|
+ }else{
|
|
|
+ defaultCity = [defaultCity.lng, defaultCity.lat];
|
|
|
}
|
|
|
+
|
|
|
if(!mainMap){
|
|
|
mainMap = new AMap.Map('amapcontainer', {
|
|
|
center: defaultCity,
|