jufubao-base 1.0.34-beta2 → 1.0.34-beta4
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
|
@@ -277,9 +277,20 @@ export default {
|
|
|
277
277
|
created() {
|
|
278
278
|
this.noticeBackgroundColor = Color(this.warningColor).alpha(0.2).toString();
|
|
279
279
|
this.isPreview = this.$configProject.isPreview;
|
|
280
|
+
|
|
280
281
|
|
|
281
282
|
//#ifdef H5
|
|
282
283
|
this.isWx = isWechat();
|
|
284
|
+
jfbRootExec("getH5WxAuthorize", {
|
|
285
|
+
vm: this,
|
|
286
|
+
data: {site_id: "wx_pub"},
|
|
287
|
+
})
|
|
288
|
+
.then()
|
|
289
|
+
.catch(error=>{
|
|
290
|
+
this.$xdAlert({
|
|
291
|
+
content: error,
|
|
292
|
+
});
|
|
293
|
+
})
|
|
283
294
|
// #endif
|
|
284
295
|
|
|
285
296
|
//设置
|
|
@@ -346,39 +357,24 @@ export default {
|
|
|
346
357
|
this.$xdShowLoading({});
|
|
347
358
|
try {
|
|
348
359
|
//#ifdef H5
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
)}`,
|
|
365
|
-
});
|
|
366
|
-
},
|
|
367
|
-
fail:(error)=>{
|
|
368
|
-
if(typeof error === 'string') error = {error: error}
|
|
369
|
-
if(window['jwxJfbSDKParams']) error = Object.assign(error, window['jwxJfbSDKParams'])
|
|
370
|
-
this.$xdLog.setARMSError(error)
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
}, 100);
|
|
360
|
+
if (this.jwxSDK !== null) {
|
|
361
|
+
this.jwxSDK.scanQRCode({
|
|
362
|
+
needResult: 1,
|
|
363
|
+
scanType: ["qrCode"],
|
|
364
|
+
success: (res) => {
|
|
365
|
+
this.$xdUniHelper.navigateTo({
|
|
366
|
+
url: `${this.confirmUrl}?qrcode=${encodeURIComponent(
|
|
367
|
+
res.resultStr
|
|
368
|
+
)}`,
|
|
369
|
+
});
|
|
370
|
+
},
|
|
371
|
+
fail: (error) => {
|
|
372
|
+
if (typeof error === 'string') error = {error: error}
|
|
373
|
+
if (window['jwxJfbSDKParams']) error = Object.assign(error, window['jwxJfbSDKParams'])
|
|
374
|
+
this.$xdLog.setARMSError(error)
|
|
374
375
|
}
|
|
375
|
-
})
|
|
376
|
-
.catch((err) => {
|
|
377
|
-
this.$xdHideLoading();
|
|
378
|
-
this.$xdAlert({
|
|
379
|
-
content: err,
|
|
380
|
-
});
|
|
381
376
|
});
|
|
377
|
+
}
|
|
382
378
|
//#endif
|
|
383
379
|
//#ifdef MP-WEIXIN
|
|
384
380
|
uni.scanCode({
|