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