jufubao-base 1.0.239 → 1.0.240

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.239",
3
+ "version": "1.0.240",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -787,16 +787,19 @@ export default {
787
787
  let url = encodeURIComponent(redirect_url || callback_url || this.settings.index);
788
788
  let regUrl = this.phone_number_login_url;
789
789
  let collect = this.phone_number_collect_url;
790
- debugger
790
+ let urlStr = `callback_url=${url}`;
791
+
791
792
  if(this.mpAuthPhoneUrl){
792
- regUrl = this.mpAuthPhoneUrl;
793
- collect = this.mpAuthPhoneUrl;
793
+ regUrl = this.mpAuthPhoneUrl;
794
+ collect = this.mpAuthPhoneUrl;
795
+ urlStr = `url=${url}`;
794
796
  }
795
797
 
798
+
796
799
  //需要授权操作
797
800
  if (res.auth_code) {
798
801
  this.$xdUniHelper.navigateTo({
799
- url: `${regUrl}?auth_code=${res.auth_code}&provider_id=${this.quickLogin.provider_id}&callback_url=${url}`,
802
+ url: `${regUrl}?auth_code=${res.auth_code}&provider_id=${this.quickLogin.provider_id}&${urlStr}`,
800
803
  });
801
804
  }
802
805
  //无需授权直接进行登录
@@ -805,7 +808,7 @@ export default {
805
808
  this.jfbAuthorize.setAllToken(res["login_info"], () => {
806
809
  //需要收集手机号码
807
810
  if(res['is_collect_phone_number'] === 'Y'){
808
- let urlStr = `${collect}?provider_id=${this.quickLogin.provider_id}&callback_url=${url}`;
811
+ let urlStr = `${collect}?provider_id=${this.quickLogin.provider_id}&${urlStr}`;
809
812
  this.$xdUniHelper.navigateTo({
810
813
  url: urlStr,
811
814
  });