jufubao-base 1.0.188 → 1.0.190

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.
@@ -8,11 +8,11 @@
8
8
  */
9
9
  const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
10
  if(packname === 'gxd-commands-bussiness') {
11
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
11
+ return `/Users/shiyonggao/home/root/Base-Jufubao/xd-commands-bussiness/${threePackagePath}`;
12
12
  }
13
13
 
14
14
  if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
15
+ return `/Users/shiyonggao/home/root/Base-Jufubao/xd-uni-library-editx/${threePackagePath}`;
16
16
  }
17
17
 
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.188",
3
+ "version": "1.0.190",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -706,7 +706,7 @@ export default {
706
706
  */
707
707
  handleBindLogin(item , entry) {
708
708
  //卡券登录
709
- if (this.tabIndex === 1||this.tabIndex === 2) {
709
+ if (this.tabIndex === 1 || this.tabIndex === 2) {
710
710
  if (item["is_valid"] !== "Y") {
711
711
  return;
712
712
  }
@@ -719,6 +719,7 @@ export default {
719
719
  }, false);
720
720
  return
721
721
  }
722
+
722
723
  jfbRootExec("loginEntryCardBind", {
723
724
  vm: this,
724
725
  data: { card_number: item["card_number"] },
@@ -736,7 +737,6 @@ export default {
736
737
  if (this.$configProject.isPreview) {
737
738
  console.log("handleBindLogin", "预览模式不跳转", this.inCallback);
738
739
  }
739
-
740
740
  else {
741
741
  this.handleClick(entry);
742
742
  }
@@ -775,7 +775,15 @@ export default {
775
775
  },
776
776
 
777
777
  handleClick(entry){
778
- if (this.$configProject['isPreview']) return
778
+ if (this.$configProject['isPreview']) return;
779
+
780
+ //登陆成功,有回调地址返回回调地址
781
+ if(this.inCallbackUrlOrg) {
782
+ this.$xdUniHelper.redirectTo({
783
+ url:this.inCallback
784
+ }, false);
785
+ return;
786
+ }
779
787
 
780
788
  const {dir, path, host, appType} = entry['redirect_data'];
781
789
  let regHttp = /^(\/\/|http:\/\/|https:\/\/).+$/;
@@ -848,7 +856,7 @@ export default {
848
856
  if(options['x-test'] === 'jfb-console') this.showIndex = true;
849
857
  this.options = options;
850
858
  let { inCallback } = options;
851
- this.force = inCallback?true:false;
859
+ this.force = !!inCallback;
852
860
  if(!inCallback) this.$storage.remove("inCallback"); //作为入口
853
861
  else {
854
862
  this.$storage.set("inCallback", inCallback);
@@ -950,6 +958,7 @@ export default {
950
958
  this.handleCardInit(this.ajaxCardList, type);
951
959
  this.cardPageNum = 1;
952
960
  this.$xdHideLoading();
961
+
953
962
  })
954
963
  .catch(() => this.$xdHideLoading());
955
964
  },