jufubao-base 1.0.159-beta7 → 1.0.159-beta8
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
|
@@ -390,10 +390,14 @@ export default {
|
|
|
390
390
|
|
|
391
391
|
//站内应用处理
|
|
392
392
|
let jumpUrl = '';
|
|
393
|
-
let jumpUrlObj = parsePath(path);
|
|
394
393
|
let cardPathStr = '';
|
|
395
|
-
|
|
396
|
-
|
|
394
|
+
const {deploy_dir} = this.projectAttr;
|
|
395
|
+
if(dir === deploy_dir) jumpUrl = path;
|
|
396
|
+
else jumpUrl = `//${host}/${dir}${path}`;
|
|
397
|
+
|
|
398
|
+
//#ifdef MP-WEIXIN
|
|
399
|
+
jumpUrl = `https:${jumpUrl}`;
|
|
400
|
+
//#endif
|
|
397
401
|
|
|
398
402
|
//#ifdef MP-WEIXIN
|
|
399
403
|
//获取自定义卡券登录地址(微信小程序跳转到H5平台起作用)
|
|
@@ -679,10 +679,14 @@ export default {
|
|
|
679
679
|
|
|
680
680
|
//站内应用处理
|
|
681
681
|
let jumpUrl = '';
|
|
682
|
-
let jumpUrlObj = parsePath(path);
|
|
683
682
|
let cardPathStr = '';
|
|
684
|
-
|
|
685
|
-
|
|
683
|
+
const {deploy_dir} = this.projectAttr;
|
|
684
|
+
if(dir === deploy_dir) jumpUrl = path;
|
|
685
|
+
else jumpUrl = `//${host}/${dir}${path}`;
|
|
686
|
+
|
|
687
|
+
//#ifdef MP-WEIXIN
|
|
688
|
+
jumpUrl = `https:${jumpUrl}`;
|
|
689
|
+
//#endif
|
|
686
690
|
|
|
687
691
|
//#ifdef MP-WEIXIN
|
|
688
692
|
//获取自定义卡券登录地址(微信小程序跳转到H5平台起作用)
|