Commit 6ba10ee2 by jianan

我的页新增「港险工作台」入口:整屏跳转独立 H5(Casdoor OIDC 自管登录态),location.replace 不压历史栈

parent f244c8fd
......@@ -11,6 +11,8 @@ const dev = {
scrm_url:'https://mdev.zuihuibi.cn',
file_query_url:'https://mdev.zuihuibi.cn',
csf_url:'http://139.224.145.34:9002',
// 港险转介人工作台 H5(独立系统,整屏跳转,不嵌 iframe)
workbench_url:'https://center.zuihuibi.cn/',
}
const stage = {
base_url:'https://mstage.zuihuibi.cn',
......@@ -19,8 +21,9 @@ const stage = {
share_url:'https://mstage.zuihuibi.cn/appYdhomeoffice',
sfp_url:'https://mstage.zuihuibi.cn/sfpApi',
scrm_url:'https://mstage.zuihuibi.cn',
file_query_url:'https://mstage.zuihuibi.cn'
file_query_url:'https://mstage.zuihuibi.cn',
// 港险转介人工作台 H5(独立系统,整屏跳转,不嵌 iframe)
workbench_url:'https://center.zuihuibi.cn/',
}
const prod = {
base_url:'https://app.ydhomeoffice.cn',
......@@ -32,6 +35,8 @@ const prod = {
scrm_url:'https://m.zuihuibi.cn',
file_query_url:'https://m.zuihuibi.cn',
csf_url:'https://web.csf.hk',
// 港险转介人工作台 H5:生产域名确定后再填,勿臆造
workbench_url:'',
}
// companyType: '1', cffp
// companyType: '2', appYdhomeoffice
......@@ -66,6 +71,7 @@ let imgUrl = config[env].img_url;
let scrmUrl = config[env].scrm_url;
let fileQueryErl = config[env].file_query_url;
let csfUrl = config[env].csf_url;
let workbenchUrl = config[env].workbench_url;
export{
baseURL,
......@@ -78,5 +84,6 @@ export{
imgUrl,
scrmUrl,
fileQueryErl,
csfUrl
csfUrl,
workbenchUrl
}
\ No newline at end of file
......@@ -175,7 +175,7 @@
import common from "../../common/common";
import tabBar from '../../components/tabBar/tabBar.vue';
import api from "@/api/api";
import { companyInfo, shareURL } from "@/environments/environment";
import { companyInfo, shareURL, workbenchUrl } from "@/environments/environment";
import FloatingButton from '@/components/FloatingButton/FloatingButton.vue';
import JoinPopup from '@/components/commonPopup/JoinPopup.vue';
import PartnerTipPopup from "@/components/commonPopup/PartnerTipPopup.vue";
......@@ -338,6 +338,15 @@
id: '04',
categoryName: '海外资产配置',
children: [{
// 港险转介人工作台:独立 H5,点击后整屏跳转(见 goDetail 的 workbench 分支)
title: '港险工作台',
icon: 'icon-shield',
link: '',
isOpen: true,
isShow: true,
workbench: true
},
{
title: '积分明细',
icon: 'icon-yongjin',
link: '/myPackageA/salary/salaryList',
......@@ -727,6 +736,14 @@
return
}
// 港险转介人工作台是独立 H5(Casdoor OIDC 自管登录态):
// 整屏顶层跳转,不做 iframe(避免第三方 cookie / 微信内核限制)。
// 走到这里已过上面的 CFFP 登录拦截,满足"先登录 CFFP 再进工作台"。
if (item.workbench) {
this.openWorkbench()
return
}
if (item.isShow && item.isOpen) {
if (item.title === '我的邀请码') {
this.$refs.popup1.open('bottom');
......@@ -737,6 +754,33 @@
common.errorDialog(2, '该模块正在开发中,敬请期待!', '提示');
}
},
// 整屏打开港险转介人工作台(独立 H5,不嵌 iframe)
openWorkbench() {
const url = workbenchUrl;
if (!url) {
common.errorDialog(2, '港险工作台暂未开放,敬请期待!', '提示');
return;
}
dataHandling.pocessTracking(
'港险工作台',
`用户从我的页进入港险工作台`,
'点击',
2,
'我的',
'pages/personalCenter/personalCenter'
)
// #ifdef APP-PLUS
// APP 内复用通用 web-view 整屏页
uni.navigateTo({
url: '/components/webview?url=' + encodeURIComponent(url)
});
// #endif
// #ifndef APP-PLUS
// H5(含微信小程序 web-view 内、普通浏览器):replace 顶层跳转、不压历史栈,
// 避免微信内核脏历史快照恢复后「我的」页菜单入口丢失
window.location.replace(url);
// #endif
},
ckidentity(item) {
if (item.identity == true && this.customerBasicInfo.partnerType == null) {
dataHandling.pocessTracking(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment