jufubao-base 1.0.187 → 1.0.189

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.187",
3
+ "version": "1.0.189",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -391,8 +391,11 @@ export default {
391
391
  //外站配置地址
392
392
  if(entry.redirect_type === 'URL') {
393
393
  if(regHttp.test(entry.redirect_data['path']) || regSp.test(entry.redirect_data['path'])) {
394
+ let urlPath = entry.redirect_data['path'];
395
+ if(urlPath.indexOf('?') === -1) urlPath = `${urlPath}?x-common=${nsp}&vs=${new Date().getTime()}`;
396
+ else urlPath = `${urlPath}&x-common=${nsp}&vs=${new Date().getTime()}`;
394
397
  this.$xdUniHelper.redirectTo({
395
- url:`${entry.redirect_data['path']}?x-common=${nsp}&vs=${new Date().getTime()}${cardPathStr}`
398
+ url:urlPath
396
399
  }, false)
397
400
  }
398
401
  else {
@@ -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"] },
@@ -775,7 +776,15 @@ export default {
775
776
  },
776
777
 
777
778
  handleClick(entry){
778
- if (this.$configProject['isPreview']) return
779
+ if (this.$configProject['isPreview']) return;
780
+
781
+ //登陆成功,有回调地址返回回调地址
782
+ if(this.inCallback) {
783
+ this.$xdUniHelper.redirectTo({
784
+ url:this.inCallback
785
+ }, false);
786
+ return;
787
+ }
779
788
 
780
789
  const {dir, path, host, appType} = entry['redirect_data'];
781
790
  let regHttp = /^(\/\/|http:\/\/|https:\/\/).+$/;
@@ -787,8 +796,11 @@ export default {
787
796
  //外站配置地址
788
797
  if(entry.redirect_type === 'URL') {
789
798
  if(regHttp.test(entry.redirect_data['path']) || regSp.test(entry.redirect_data['path'])) {
799
+ let urlPath = entry.redirect_data['path'];
800
+ if(urlPath.indexOf('?') === -1) urlPath = `${urlPath}?x-common=${nsp}&vs=${new Date().getTime()}`;
801
+ else urlPath = `${urlPath}&x-common=${nsp}&vs=${new Date().getTime()}`;
790
802
  this.$xdUniHelper.redirectTo({
791
- url:`${entry.redirect_data['path']}?x-common=${nsp}&vs=${new Date().getTime()}${cardPathStr}`
803
+ url:urlPath
792
804
  }, false)
793
805
  }
794
806
  else {
@@ -845,7 +857,7 @@ export default {
845
857
  if(options['x-test'] === 'jfb-console') this.showIndex = true;
846
858
  this.options = options;
847
859
  let { inCallback } = options;
848
- this.force = inCallback?true:false;
860
+ this.force = !!inCallback;
849
861
  if(!inCallback) this.$storage.remove("inCallback"); //作为入口
850
862
  else {
851
863
  this.$storage.set("inCallback", inCallback);
@@ -947,6 +959,7 @@ export default {
947
959
  this.handleCardInit(this.ajaxCardList, type);
948
960
  this.cardPageNum = 1;
949
961
  this.$xdHideLoading();
962
+
950
963
  })
951
964
  .catch(() => this.$xdHideLoading());
952
965
  },
@@ -457,8 +457,11 @@
457
457
  //外站配置地址
458
458
  if(entry.redirect_type === 'URL') {
459
459
  if(regHttp.test(entry.redirect_data['path']) || regSp.test(entry.redirect_data['path'])) {
460
+ let urlPath = entry.redirect_data['path'];
461
+ if(urlPath.indexOf('?') === -1) urlPath = `${urlPath}?x-common=${nsp}&vs=${new Date().getTime()}`;
462
+ else urlPath = `${urlPath}&x-common=${nsp}&vs=${new Date().getTime()}`;
460
463
  this.$xdUniHelper.redirectTo({
461
- url:`${entry.redirect_data['path']}?x-common=${nsp}&vs=${new Date().getTime()}${cardPathStr}`
464
+ url:urlPath
462
465
  }, false)
463
466
  }
464
467
  else {