gxd-uni-library-editx 1.0.30 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -195,14 +195,20 @@
|
|
|
195
195
|
longitude: location['longitude'],
|
|
196
196
|
address: {}
|
|
197
197
|
};
|
|
198
|
+
let temp = JSON.parse(JSON.stringify(this.location))
|
|
198
199
|
this.$xdLog.setProject('Location.wx.api.done', {
|
|
199
200
|
lng: location.longitude,
|
|
200
201
|
lat: location.latitude
|
|
201
202
|
});
|
|
202
|
-
|
|
203
|
+
setTimeout(()=>{
|
|
204
|
+
this.handleBaiduInit(temp);
|
|
205
|
+
if(time){
|
|
206
|
+
clearTimeout(time);
|
|
207
|
+
time=null
|
|
208
|
+
}
|
|
209
|
+
}, 10)
|
|
203
210
|
},
|
|
204
211
|
fail: (e) => {
|
|
205
|
-
|
|
206
212
|
//已超时返回
|
|
207
213
|
if(isReturn) {
|
|
208
214
|
time = null;
|
|
@@ -223,6 +229,10 @@
|
|
|
223
229
|
this.handleBaiduInit(null)
|
|
224
230
|
},
|
|
225
231
|
cancel: (e) => {
|
|
232
|
+
if(time){
|
|
233
|
+
clearTimeout(time);
|
|
234
|
+
time=null
|
|
235
|
+
}
|
|
226
236
|
this.$xdLog.setProject('Location.wx.api.cancel', {
|
|
227
237
|
lng: null,
|
|
228
238
|
lat: null
|
|
@@ -241,7 +251,7 @@
|
|
|
241
251
|
});
|
|
242
252
|
this.handleBaiduInit(null);
|
|
243
253
|
isReturn = true;
|
|
244
|
-
},
|
|
254
|
+
}, 4000)
|
|
245
255
|
})
|
|
246
256
|
.catch(res => {
|
|
247
257
|
this.$xdLog.setProject('Location.wx.jwxSDK.fail', {
|
|
@@ -261,7 +271,7 @@
|
|
|
261
271
|
this.$emit('done', null);
|
|
262
272
|
this.failStatus = true;
|
|
263
273
|
this.$xdLog.setProject('Location.timeout', 'Location.timeout.10s');
|
|
264
|
-
},
|
|
274
|
+
}, 4000)
|
|
265
275
|
}
|
|
266
276
|
},
|
|
267
277
|
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
...options
|
|
36
36
|
});
|
|
37
37
|
let locationInfo = await this.getLoadingCityInfoByLocationLv4(options);
|
|
38
|
-
storage.set('
|
|
38
|
+
storage.set('console_Layout.getCity.done',locationInfo)
|
|
39
39
|
this.$xdLog.setProject('Layout.getCity.done', {
|
|
40
40
|
time: new Date().getTime(),
|
|
41
41
|
timeString: new Date().toLocaleString(),
|
|
@@ -74,7 +74,7 @@ export default {
|
|
|
74
74
|
});
|
|
75
75
|
this.locationStatus = true;
|
|
76
76
|
this.timeoutLocationStatus = true;
|
|
77
|
-
},
|
|
77
|
+
}, 3000)
|
|
78
78
|
},
|
|
79
79
|
|
|
80
80
|
handleLocationDone(location) {
|
|
@@ -114,7 +114,6 @@ export default {
|
|
|
114
114
|
});
|
|
115
115
|
|
|
116
116
|
this.timeoutLocation(location);
|
|
117
|
-
|
|
118
117
|
},
|
|
119
118
|
}
|
|
120
119
|
}
|