jufubao-base 1.0.33 → 1.0.34-beta2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.33",
3
+ "version": "1.0.34-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -343,7 +343,6 @@ export default {
343
343
  * @description 扫码绑定
344
344
  */
345
345
  handleScan() {
346
- console.log(getApp().globalData, "pageAtrr");
347
346
  this.$xdShowLoading({});
348
347
  try {
349
348
  //#ifdef H5
@@ -366,6 +365,8 @@ export default {
366
365
  });
367
366
  },
368
367
  fail:(error)=>{
368
+ if(typeof error === 'string') error = {error: error}
369
+ if(window['jwxJfbSDKParams']) error = Object.assign(error, window['jwxJfbSDKParams'])
369
370
  this.$xdLog.setARMSError(error)
370
371
  }
371
372
  });
@@ -377,7 +378,6 @@ export default {
377
378
  this.$xdAlert({
378
379
  content: err,
379
380
  });
380
- this.$xdLog.setARMSError(err)
381
381
  });
382
382
  //#endif
383
383
  //#ifdef MP-WEIXIN
@@ -370,7 +370,6 @@ export default {
370
370
  console.log("pay success", res);
371
371
  uni.showToast({
372
372
  title: "支付成功",
373
- icon: "none",
374
373
  });
375
374
  cb(res);
376
375
  },
@@ -378,19 +377,15 @@ export default {
378
377
  this.$xdLog.setARMSInfo(this.options, 'cancel_pay');
379
378
  uni.showToast({
380
379
  title: "取消支付",
381
- icon: "none",
382
380
  });
383
381
  },
384
- fail: (err) => {
385
- this.$xdLog.setARMSInfo({
386
- options:this.options,
387
- error: JSON.stringify(err)
388
- }, 'pay_fail');
382
+ fail: (error) => {
383
+ if (typeof error === 'string') error = {error: error}
384
+ if (window['jwxJfbSDKParams']) error = Object.assign(error, paySignData, window['jwxJfbSDKParams'])
385
+ this.$xdLog.setARMSError(error)
389
386
  uni.showToast({
390
387
  title: "支付失败",
391
- icon: "none",
392
388
  });
393
- console.log("pay fail", err);
394
389
  },
395
390
  });
396
391
  // #endif
@@ -406,10 +401,10 @@ export default {
406
401
  cb(res);
407
402
  },
408
403
  fail: (err) => {
409
- this.$xdLog.setARMSInfo({
404
+ this.$xdLog.setARMSError({
410
405
  options: this.options,
411
406
  error: JSON.stringify(err)
412
- },'pay_fail');
407
+ });
413
408
  uni.showToast({
414
409
  title: "支付失败",
415
410
  icon: "none",