Commit d2351ded authored by haiyoucuv's avatar haiyoucuv

111111

parent f87ac037
<!doctype html><html lang="zh"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="dns-prefetch" href="//yun.duiba.com.cn"/><link rel="preconnect" href="//embedlog.duiba.com.cn"><title>人保春游记</title><script>if (localStorage && localStorage.isWebp) {
document
.getElementsByTagName('html')[0]
.setAttribute('duiba-webp', 'true');
}</script><script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script><script src="//yun.duiba.com.cn/spark/v2/spark.base.fz.wxpollyfill.js"></script><script src="//yun.duiba.com.cn/js-libs/rem/1.1.3/rem.min.js"></script><script src="//yun.duiba.com.cn/h5/lib/zepto.min.js"></script><script src="https://m.picclife.cn/Life-H5/html/clause/PICCLifeJsBrage.js"></script><script>"use strict";
var CFG = CFG || {};
CFG.projectId = location.pathname.split('/')[2] || '1';
function getUrlParam(name) {
var search = window.location.search;
var matched = search.slice(1).match(new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'));
return search.length ? matched && matched[2] : null;
}
CFG.operationId = '6131';
CFG.appID = "${APPID}";
CFG.domain = location.origin;
// 首页
CFG.indexUrl = "/projectx/" + CFG.projectId + "/index.html?appID=" + getUrlParam("appID");
// 普通分享落地页
CFG.shareUrl = "/projectx/" + CFG.projectId + "/sharepage.html?appID=" + getUrlParam("appID");
// CFG.shareUrl = '/projectx/' + CFG.projectId + '/share.html?appKey=4AoRyTuR6XNfjNa4w5exe1bPmqDS&openBs=openbs&appID=' + CFG.appID;
// 普通分享落地页
// CFG.fireShareUrl = "/projectx/" + CFG.projectId + "/firesharepage.html?appID=" + getUrlParam("appID");
// 我的奖品页
CFG.prizeUrl = "/projectx/" + CFG.projectId + "/prize.html?appID=" + getUrlParam("appID");
// 作品详情页
CFG.workPage = "/projectx/" + CFG.projectId + "/workPage.html?appID=" + getUrlParam("appID");
//actPlatforms
CFG.actPlatforms = getUrlParam("actPlatforms") || "";
//actPlatforms
CFG.agentCode = getUrlParam("agentCode") || "";
//actPlatforms
CFG.actId = getUrlParam("actId") || "";
// 特殊的业务员code
CFG.spcCode = getUrlParam("code") || "";
// 业务员code
CFG.workerCode = getUrlParam("ykCode") || CFG.spcCode;
// 渠道 1-9
CFG.channel = getUrlParam("channel") || "2";
// 默认渠道 除了友客渠道,其他统一按照2处理
// CFG.defaultChannel = CFG.channel == 5 ? 5 : CFG.channel == 3 ? 3 : 2;
CFG.defaultChannel = CFG.channel || "2";
// 助力参数
CFG.inviteCode = getUrlParam("inviteCode");
// 微信授权链接
CFG.indexLogin = "/wechat/access?apk=4AoRyTuR6XNfjNa4w5exe1bPmqDS&dbredirect=";
// 奖品页唤端链接
CFG.toAppPrizeUrl = "https://lifeapp.picclife.cn/portal/app_manager/downloadapps.html?operate_link=https%3A%2F%2Flifeapp-api.picclife.cn%2Flifeapi%2Flifeapp-svc-gw%2Fapi%2Fauth_code%2Fauthorize%2Fv1%3Factivity_code%3D612102%26redirect_type%3D0%26redirect_uri%3Dhttps%3A%2F%2F96094-activity.dexfu.cn%2FcustomShare%2Fshare%3Fid%3DDid1NTgxOTk&isBindManager=1&isNeedAuth=1";
CFG.sensorUrl = "https://mdglfxpt.piccgroup.cn:18443/sa?project=picclife_consumer";
//代理人仅分享渠道
CFG.agentShare = getUrlParam("agentShare") || 0;
// 环境,test测试,prod生产 todo
CFG.env = "test"; //注意sdk 也分环境!
if (CFG.env == "test") {
// 测试
// eslint-disable-next-line @spark/best-practices/no-url-in-js
CFG.sensorUrl = "https://mdglfxpt-test.piccgroup.cn:18443/sa?project=picclife_consumer";
CFG.toAppPrizeUrl = "https://lifeapp-test.picclife.cn/portal-web/app_manager/downloadapps.html?operate_link=https%3A%2F%2Flifeapp-api-test.picclife.cn%2Flifeapi%2Flifeapp-svc-rel-gw%2Fapi%2Fauth_code%2Fauthorize%2Fv1%3Factivity_code%3D612102%26redirect_type%3D0%26redirect_uri%3Dhttps%253A%252F%252F96094-activity.dexfu.cn%252FcustomShare%252Fshare%253Fid%253DDid1NTgxNTE&isBindManager=1&isNeedAuth=1";
}
if (!getUrlParam("appID")) {
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}</script><link href="//yun.duiba.com.cn/spark/v2/temp_base/1742812526154/styles/vendors.e666712e7c9c02cf2037.css" rel="stylesheet"><link href="//yun.duiba.com.cn/spark/v2/temp_base/1742812526154/styles/main.e666712e7c9c02cf2037.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>"use strict";
CFG.___G___ = 'origin%09git%40gitlab2.dui88.com%3Asparkprojects%2F20250310_RBSpringOuting.git%20(fetch)%3Borigin%09git%40gitlab2.dui88.com%3Asparkprojects%2F20250310_RBSpringOuting.git%20(push)%3Bmaster%3Bhaiyoucuv%3B';</script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1742812526154/js/runtime-main.3265d5cb.js" crossorigin="anonymous"></script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1742812526154/js/vendors.0d0d212b.js" crossorigin="anonymous"></script><script src="//yun.duiba.com.cn/spark/v2/temp_base/1742812526154/js/main.8ac50aaa.js" crossorigin="anonymous"></script></body></html>
\ No newline at end of file
activity_code
6131
actid
1d3882e5
测试环境
p15ee162b
......@@ -17,7 +12,7 @@ p15ee162b
p50735695
正式
pb03cc208
---------------------- 测试链接 ----------------------
......@@ -36,11 +31,21 @@ https://96094-activity.dexfu.cn/customShare/share?id=Did1NTgxNDM&projectID=p5073
https://96094-activity.dexfu.cn/customShare/share?id=Did1NjAyMzk
以下地址,为开发配置项,不需要同步客户
1.prizeContent:
https://lifeapp-api.picclife.cn/lifeapi/lifeapp-svc-gw/api/auth_code/authorize/v1?activity_code=613002&redirect_type=0&redirect_uri=https://96094.activity-19.m.duiba.com.cn/customShare/share?id=Did1NjAwODc
2.唤端到活动页面:
https://lifeapp.picclife.cn/portal/app_manager/downloadapps.html?operate_link=https%3A%2F%2Flifeapp-api.picclife.cn%2Flifeapi%2Flifeapp-svc-gw%2Fapi%2Fauth_code%2Fauthorize%2Fv1%3Factivity_code%3D6130%26redirect_type%3D0%26redirect_uri%3Dhttps%253A%252F%252F96094.activity-19.m.duiba.com.cn%252FcustomShare%252Fshare%253Fid%253DDid1NjAwNzk&isBindManager=1&isNeedAuth=1
3.唤端到奖品页面:
https://lifeapp.picclife.cn/portal/app_manager/downloadapps.html?operate_link=https%3A%2F%2Flifeapp-api.picclife.cn%2Flifeapi%2Flifeapp-svc-gw%2Fapi%2Fauth_code%2Fauthorize%2Fv1%3Factivity_code%3D613002%26redirect_type%3D0%26redirect_uri%3Dhttps%253A%252F%252F96094.activity-19.m.duiba.com.cn%252FcustomShare%252Fshare%253Fid%253DDid1NjAwODc&isBindManager=1&isNeedAuth=1
这是每个活动对应的一些投放地址,可以参考一下
---------------------- 正式 ----------------------
1.管家端 activityCode: 6131 , channel=1, actid:(如修改需同步)
1.1:活动页面(需配置重定向白名单):
https://96094-activity.dexfu.cn/customShare/share?id=Did1NjA0NDc
1.2:奖品页(需配置重定向白名单):
https://96094-activity.dexfu.cn/customShare/share?id=Did1NjA0NTU
2:人保寿险企业家助手微信公众号(channel=2)提供中间页面地址:会传固定的actid (具体参数客户侧提供)
https://96094-activity.dexfu.cn/customShare/share?id=Did1NjA0Mzk&projectID=pb03cc208
3.友客微信公众号&有客小程序(channel=3 、 5)需携带code参数
https://96094-activity.dexfu.cn/customShare/share?id=Did1NjA0MzE
4.人保e服务投放地址(channel=4):
https://96094-activity.dexfu.cn/customShare/share?id=Did1NTgxNDM&projectID=pb03cc208&actId=6131&fourSeason=1
5.客经投放渠道(channel 渠道6/7/8):包含E通,有客,微通(会透传actPlatforms,actid,agentCode参数 )
https://96094-activity.dexfu.cn/customShare/share?id=Did1NjA0NjM
<script>
var actId = getUrlParam("actId") || "1d3882e5";
var origin = "https://96094-activity.dexfu.cn";
var projectID = getUrlParam("projectID") || "pb03cc208";
var channel = 2;
var redirectUrl = origin + "/projectx/" + projectID + "/index.html"
+ "?appID=96094"
+ "&channel=" + channel
+ "&actId=" + actId;
var wxUrl = origin + "/wechat/access?apk=4AoRyTuR6XNfjNa4w5exe1bPmqDS&dbredirect=";
var fullUrl = wxUrl + encodeURIComponent(redirectUrl);
location.replace(fullUrl);
//获取链接的特定参数,比如chanID
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
</script>
<!DOCTYPE html>
<html lang="zh">
<head>
<script crossorigin="anonymous" src="https://yun.duiba.com.cn/js-libs/vConsole/3.3.4/vconsole.min.js"></script>
<script src="https://m.picclife.cn/Life-H5/html/clause/PICCLifeJsBrage.js"></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<title>人保春游记</title>
<body>
</body>
<script>
//var vConsole = new VConsole();
var actId = "1d3882e5";
var agentCode = getUrlParam("agentCode");//客经渠道agentCode
var actPlatforms = getUrlParam("actPlatforms") || "8";//客经渠道agentCode
var access_code = getUrlParam("access_code"); //客户端获取code
var activityCode = 613102; // TIAN_TODO
var origin = "https://96094-activity.dexfu.cn";
var projectID = getUrlParam("projectID") || "pb03cc208";
var redirectUrl = origin + "/projectx/" + projectID + "/prize.html?appID=96094&channel=1"; //活动地址替换 TIAN_TODO
var autoUrl = origin + "/customActivity/piccLife/app/autoLogin?"; //兑吧免登接口地址
//处理客经渠道唤端携带的三个参数
if (actId != null) {
redirectUrl = redirectUrl + "&actId=" + actId;
}
if (actPlatforms != null) {
redirectUrl = redirectUrl + "&actPlatforms=" + actPlatforms;
}
if (agentCode != null) {
redirectUrl = redirectUrl + "&agentCode=" + agentCode;
}
console.log("redirectUrl=" + redirectUrl);
var redirect_uri = origin + "/customShare/share?id=" + getUrlParam("id"); //人保配置重定向地址,用于校验
//alert("shareCode:"+shareCode)
if (access_code != null) {
history.replaceState(null, null, origin + "/customShare/share?id=" + getUrlParam("id"));
location.replace(autoUrl + "activityCode=" + activityCode + "&access_code=" + access_code + "&redirectUrl=" + encodeURIComponent(redirectUrl) + "&redirect_uri=" + encodeURIComponent(redirect_uri));
} else {
closeweb();
}
//获取链接的特定参数,比如chanID
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
//关闭页面,用于处理返回不出去的操作
function closeweb() {
var params = {
"type": "close"
};
window.PICCLifeJsBrage.callNative({
"module": "Navigation",
"method": "action",
"params": JSON.stringify(params),
"callback": ""
});
}
</script>
</html>
<!DOCTYPE html>
<html lang="zh">
<head>
<script crossorigin="anonymous" src="https://yun.duiba.com.cn/js-libs/vConsole/3.3.4/vconsole.min.js"></script>
<script src="https://m.picclife.cn/Life-H5/html/clause/PICCLifeJsBrage.js"></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<title>人保春游记</title>
<body>
</body>
<script>
var actId = "1d3882e5";
var agentCode = getUrlParam("agentCode") || "";//客经渠道agentCode
var actPlatforms = getUrlParam("actPlatforms") || "";//客经渠道agentCode
var projectID = getUrlParam("projectID") || "pb03cc208";//活动项目ID
var pageId = "Did1NTk0NjM";//对应客经e通渠道的中间页面地址,前端配置好提供配置,每个活动单独更换
var channel = +actPlatforms + 5; //客经渠道的,e通 ,有客,微通 对方传的是1/2/3 但是兑吧channel需要按照channel 6/7/8 统计,故在此做转换
var origin = "https://96094-activity.dexfu.cn";
var redirectUrl = origin + "/projectx/" + projectID + "/index.html"
+ "?appID=96094"
+ "&actId=" + actId
+ "&agentCode=" + agentCode
+ "&actPlatforms=" + actPlatforms
+ "&channel=" + channel
+ "&agentShare=1";
var wxUrl = origin + "/wechat/access?apk=4AoRyTuR6XNfjNa4w5exe1bPmqDS&dbredirect=";
var fullUrl = wxUrl + encodeURIComponent(redirectUrl);
console.log("当前页面链接:" + location.href);
if (channel == 6 || isEnterpriseWeChat()) {
location.replace(
origin + "/customShare/share"
+ "?id=" + pageId
+ "&actId=" + actId
+ "&agentCode=" + agentCode
+ "&actPlatforms=" + actPlatforms
+ "&projectID=" + projectID
+ "&channel=" + channel
+ "&agentShare=1"
);
}
if (isWeChat() && !isEnterpriseWeChat()) {
location.replace(fullUrl);
}
//location.replace(fullUrl)
//获取链接的特定参数,比如chanID
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
//判定是否微信环境
function isWeChat() {
const userAgent = navigator.userAgent.toLowerCase();
return userAgent.includes("micromessenger");
}
function isEnterpriseWeChat() {//企业微信
const userAgent = navigator.userAgent.toLowerCase();
return /wxwork/.test(userAgent); // 检查是否包含 "wxwork"
}
</script>
</html>
<script>
var actId = getUrlParam("actId") || "1d3882e5";
var origin = "https://96094-activity.dexfu.cn";
var projectID = getUrlParam("projectID") || "pb03cc208";
var code = getUrlParam("code") || "";
var actPlatforms = getUrlParam("actPlatforms") || "3";
var channel = 3;//默认channel=3
if (isMiniProgram()) {
//如果是小程序环境,channel需要为5
channel = 5;
}
var redirectUrl = origin + "/projectx/" + projectID + "/index.html"
+ "?appID=96094"
+ "&channel=" + channel
+ "&actPlatforms=" + actPlatforms
+ "&actId=" + actId;
if (code != null) {
redirectUrl = redirectUrl + "&code=" + code + "&agentCode=" + code;
}
var wxUrl = origin + "/wechat/access?apk=4AoRyTuR6XNfjNa4w5exe1bPmqDS&dbredirect=";
var fullUrl = wxUrl + encodeURIComponent(redirectUrl);
location.replace(fullUrl);
//获取链接的特定参数,比如chanID
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
function isMiniProgram() {
const userAgent = navigator.userAgent.toLowerCase();
return userAgent.includes("miniprogram");
}
</script>
<!DOCTYPE html>
<html lang="zh">
<head>
<script crossorigin="anonymous" src="https://yun.duiba.com.cn/js-libs/vConsole/3.3.4/vconsole.min.js"></script>
<script src="https://m.picclife.cn/Life-H5/html/clause/PICCLifeJsBrage.js"></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<title>人保春游记</title>
<body>
</body>
<script>
//var vConsole = new VConsole();
var actId = "1d3882e5";
var agentCode = getUrlParam("agentCode");//客经渠道agentCode
var actPlatforms = getUrlParam("actPlatforms") || "8";//客经渠道agentCode
var access_code = getUrlParam("access_code"); //客户端获取code
var activityCode = 6131;
var origin = "https://96094-activity.dexfu.cn";
var projectID = getUrlParam("projectID") || "pb03cc208";
//活动地址替换
var redirectUrl = origin + "/projectx/" + projectID + "/index.html?appID=96094&channel=1";
//处理客经渠道唤端携带的三个参数
if (actId != null) {
redirectUrl = redirectUrl + "&actId=" + actId;
}
if (actPlatforms != null) {
redirectUrl = redirectUrl + "&actPlatforms=" + actPlatforms;
}
if (agentCode != null) {
redirectUrl = redirectUrl + "&agentCode=" + agentCode;
}
var autoUrl = origin + "/customActivity/piccLife/app/autoLogin?"; //兑吧免登接口地址
var redirect_uri = origin + "/customShare/share?id=" + getUrlParam("id"); //人保配置重定向地址,用于校验
if (access_code != null) {
history.replaceState(null, null, origin + "/customShare/share?id=" + getUrlParam("id"));
location.replace(autoUrl
+ "activityCode=" + activityCode
+ "&access_code=" + access_code
+ "&redirectUrl=" + encodeURIComponent(redirectUrl)
+ "&redirect_uri=" + encodeURIComponent(redirect_uri)
);
} else {
closeweb();
}
//获取链接的特定参数,比如chanID
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
//关闭页面,用于处理返回不出去的操作
function closeweb() {
var params = {
"type": "close"
};
window.PICCLifeJsBrage.callNative({
"module": "Navigation",
"method": "action",
"params": JSON.stringify(params),
"callback": ""
});
}
</script>
</html>
......@@ -25,7 +25,8 @@
var projectID = getUrlParam("projectID") || "p50735695";
var redirectUrl = origin + "/projectx/" + projectID + "/prize.html?appID=96094&channel=1"; //活动地址替换 TIAN_TODO
var autoUrl = origin + "/customActivity/piccLife/app/autoLogin?"; //兑吧免登接口地址
//var autoUrl = origin + "/customActivity/piccLife/app/autoLogin?"; //兑吧免登接口地址
var autoUrl = "http://activity-pre.m.duiba.com.cn/customActivity/piccLife/app/autoLogin?"; //兑吧免登接口地址
//处理客经渠道唤端携带的三个参数
......
......@@ -19,7 +19,7 @@
var activityCode = 6131;
var origin = "https://96094-activity.dexfu.cn";
var projectID = getUrlParam("projectID") || "p50735695";
var projectID = getUrlParam("projectID") || "pb03cc208";
//活动地址替换
var redirectUrl = origin + "/projectx/" + projectID + "/index.html?appID=96094&channel=1";
......@@ -34,7 +34,8 @@
if (agentCode != null) {
redirectUrl = redirectUrl + "&agentCode=" + agentCode;
}
var autoUrl = origin + "/customActivity/piccLife/app/autoLogin?"; //兑吧免登接口地址
//var autoUrl = origin + "/customActivity/piccLife/app/autoLogin?"; //兑吧免登接口地址
var autoUrl = "http://activity-pre.m.duiba.com.cn/customActivity/piccLife/app/autoLogin?"; //兑吧免登接口地址
var redirect_uri = origin + "/customShare/share?id=" + getUrlParam("id"); //人保配置重定向地址,用于校验
......
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