jufubao-base 1.0.269-beta4 → 1.0.269-beta5

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.269-beta4",
3
+ "version": "1.0.269-beta5",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -439,6 +439,7 @@ export default {
439
439
  customLogoUrl: {}, //自定义logo地址
440
440
  loginMenuMargin: {},
441
441
  share_code: "",
442
+ xShare: "",
442
443
  };
443
444
  },
444
445
  computed: {
@@ -611,6 +612,7 @@ export default {
611
612
  this.dialogPreview = true;
612
613
  }
613
614
  if(options['x-share']){
615
+ this.xShare = options['x-share'];
614
616
  let decodeParams = Base64.decode(options['x-share']);
615
617
  try{
616
618
  let commonParams = JSON.parse(decodeParams);
@@ -810,11 +812,10 @@ export default {
810
812
  urlStr = `url=${url}`;
811
813
  }
812
814
 
813
-
814
815
  //需要授权操作
815
816
  if (res.auth_code) {
816
817
  this.$xdUniHelper.navigateTo({
817
- url: `${regUrl}?auth_code=${res.auth_code}&provider_id=${this.quickLogin.provider_id}&${urlStr}`,
818
+ url: `${regUrl}?auth_code=${res.auth_code}&provider_id=${this.quickLogin.provider_id}&x-share=${this.xShare}&${urlStr}`,
818
819
  });
819
820
  }
820
821
  //无需授权直接进行登录
@@ -931,7 +932,6 @@ export default {
931
932
  }
932
933
  }, 1000);
933
934
  }).catch((error) => {
934
- debugger
935
935
  this.$xdHideLoading();
936
936
  console.error(error);
937
937
  this.$xdLog.catch(error)