gxd-uni-library-editx 1.0.29 → 1.0.32
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
|
|
|
@@ -515,7 +515,13 @@
|
|
|
515
515
|
this.wiewType = this.$configProject.isPreview;
|
|
516
516
|
this.systemInfoSyn = uni.getSystemInfoSync();
|
|
517
517
|
this.gWindowHeight = uni.getSystemInfoSync().windowHeight;
|
|
518
|
-
|
|
518
|
+
|
|
519
|
+
//判断是否禁用
|
|
520
|
+
if(this.wiewType) {
|
|
521
|
+
this.websiteStatus = true;
|
|
522
|
+
}else {
|
|
523
|
+
this.websiteStatus = !!(this.siteInfo && this.siteInfo.site && this.siteInfo.site.status === 'Y');
|
|
524
|
+
}
|
|
519
525
|
|
|
520
526
|
// #ifdef H5
|
|
521
527
|
if(!uni.getStorageSync('xd-max-window-height')) {
|