jufubao-base 1.0.238-beta69 → 1.0.238-beta71

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.238-beta69",
3
+ "version": "1.0.238-beta71",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -785,96 +785,9 @@ export default {
785
785
  }
786
786
  },
787
787
 
788
- getCardPath(custom_redirect_data = {}){
789
- //#ifdef H5
790
- return null;
791
- //#endif
792
- //#ifdef MP-WEIXIN
793
- const dir = custom_redirect_data.dir;
794
- const actDir = this.projectAttr['deploy_dir'];
795
- if(custom_redirect_data.appType === 'wxmp') {
796
- if(dir === actDir) {
797
- return {
798
- cardPath: custom_redirect_data.path,
799
- cardSelf: 'wxmp',
800
- };
801
- }
802
- else return null;
803
- }
804
- else if(custom_redirect_data.appType === 'h5'){
805
- return {
806
- cardPath: custom_redirect_data.site_url,
807
- cardSelf: 'h5',
808
- };
809
- }
810
- else return null;
811
- //#endif
812
- },
813
788
 
814
789
  handleClick(entry){
815
790
  this.handleOneBussClick(entry);
816
- // if (this.$configProject['isPreview']) return;
817
- //
818
- // //登陆成功,有回调地址返回回调地址
819
- // if(this.inCallbackUrlOrg) {
820
- // this.$xdUniHelper.redirectTo({
821
- // url:this.inCallback
822
- // }, false);
823
- // return;
824
- // }
825
- //
826
- // const {dir, path, host, appType} = entry['redirect_data'];
827
- // let regHttp = /^(\/\/|http:\/\/|https:\/\/).+$/;
828
- // let regSp = /(-apiuri\/v)/;
829
- //
830
- // if(!appType) entry.redirect_data.appType = 'h5';
831
- // let nsp = Base64.encodeURI(JSON.stringify({business_code: entry['business_code']}));
832
- //
833
- // //外站配置地址
834
- // if(entry.redirect_type === 'URL') {
835
- // if(regHttp.test(entry.redirect_data['path']) || regSp.test(entry.redirect_data['path'])) {
836
- // let urlPath = entry.redirect_data['path'];
837
- // if(urlPath.indexOf('?') === -1) urlPath = `${urlPath}?x-common=${nsp}&vs=${new Date().getTime()}`;
838
- // else urlPath = `${urlPath}&x-common=${nsp}&vs=${new Date().getTime()}`;
839
- // this.$xdUniHelper.redirectTo({
840
- // url:urlPath
841
- // }, false)
842
- // }
843
- // else {
844
- // console.error(`配置错误:${entry.redirect_data['path']}`);
845
- // throw new Error(`配置错误:${entry.redirect_data['path']}`)
846
- // }
847
- // return
848
- // }
849
- //
850
- // //站内应用处理
851
- // let jumpUrl = path;
852
- // let cardPathStr = '';
853
- // const {deploy_dir} = this.projectAttr;
854
- // if(host === this.projectAttr.host && deploy_dir !== dir){
855
- // jumpUrl = `//${host}/${dir}${path}`;
856
- // //#ifdef MP-WEIXIN
857
- // jumpUrl = `https:${jumpUrl}`;
858
- // //#endif
859
- // }
860
- //
861
- //
862
- // //#ifdef MP-WEIXIN
863
- // //获取自定义卡券登录地址(微信小程序跳转到H5平台起作用)
864
- // if(entry.redirect_data.appType === 'h5') {
865
- // const custom_redirect_data = this.$xdUniHelper.checkVarType(entry['custom_redirect_data']) === 'object'?entry['custom_redirect_data']:{};
866
- // const cardPathObject = this.getCardPath(custom_redirect_data);
867
- // if(cardPathObject !== null) {
868
- // const {cardPath, cardSelf} =cardPathObject
869
- // if(cardPath) cardPathStr = `&card-login=${encodeURIComponent(cardPath)}&cardSelf=${cardSelf}`
870
- // }
871
- // }
872
- // //#endif
873
- //
874
- // jumpUrl = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}${cardPathStr}`;
875
- // console.warn(`entry.path:${jumpUrl}`);
876
- // if(regHttp.test(jumpUrl)) this.$xdUniHelper.redirectTo({url:jumpUrl}, false)
877
- // else this.$xdUniHelper.navigateTo({url:jumpUrl}, false)
878
791
  },
879
792
 
880
793
  toDetail(item, out=true) {