Commit 01051606 authored by haiyoucuv's avatar haiyoucuv

Merge remote-tracking branch 'origin/master'

parents 26b173b1 3e18852c
<!doctype html>
<html lang="en">
<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 type="text/javascript">
if (localStorage && localStorage.isWebp) {
document
.getElementsByTagName('html')[0]
.setAttribute('duiba-webp', 'true');
}
</script>
<script src="//yun.duiba.com.cn/js-libs/rem/1.1.3/rem.min.js"></script>
<script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script src="https://m.picclife.cn/Life-H5/html/clause/PICCLifeJsBrage.js"></script>
<script>
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.appID = '${APPID}';
// 新小程序会传version=hg 旧小程序不会传
CFG.version = getUrlParam('version') || sessionStorage.getItem('version');
CFG.version && sessionStorage.setItem("version", CFG.version);
CFG.isNewMiniVersion = CFG.version == 'hg';
CFG.subUrl = (CFG.isNewMiniVersion ? `/packages/activityCenter/subscibe` : `/pagesNews/subscribeMiddlePage/subscribeNews`) +
"?source=duiba&subId=1922853657613651969&activeNo=" + CFG.projectId + "&activityUrl=" + encodeURI(location.href)
CFG.index = '/projectx/' + CFG.projectId + '/index.html?appID=' + CFG.appID;
// 免登中间页id
CFG.loginMidId = "Did1NjAwMDc"; // 线上正式
if (location.href.indexOf("duibatest") > -1) {
CFG.loginMidId = "Did1MTM2NTU"; // 测试
} else if (CFG.projectId == 'p555448e6') { // TODO 线上测试id
CFG.loginMidId = "Did1NTk5OTk"; // 线上测试
}
// 免登中间页
CFG.loginMidUrl = "/customShare/share?id=" + CFG.loginMidId + "&source=duiba&projectId=" + CFG.projectId + "&redirectUrl=";
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");
//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.sensorUrl = "https://mdglfxpt.piccgroup.cn:18443/sa?project=picclife_consumer";
//代理人仅分享渠道
CFG.agentShare = getUrlParam("agentShare") || 0;
// 环境,test测试,prod生产 TIAN_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-19.m.duiba.com.cn%252FcustomShare%252Fshare%253Fid%253DDid1NTgxNTE&isBindManager=1&isNeedAuth=1";
}
if (!getUrlParam("appID")) {
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}
</script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1748513454371/assets/index-Cmv9ZIh3.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748513454371/assets/vendor-BKxbf8sD.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748513454371/assets/vendor-NZxPxbcK.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748513454371/assets/index-BjplQnj8.css">
<!doctype html>
<html lang="en">
<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 type="text/javascript">
if (localStorage && localStorage.isWebp) {
document
.getElementsByTagName('html')[0]
.setAttribute('duiba-webp', 'true');
}
</script>
<script src="//yun.duiba.com.cn/js-libs/rem/1.1.3/rem.min.js"></script>
<script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script src="https://m.picclife.cn/Life-H5/html/clause/PICCLifeJsBrage.js"></script>
<script>
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.appID = '${APPID}';
// 新小程序会传version=hg 旧小程序不会传
CFG.version = getUrlParam('version') || sessionStorage.getItem('version');
CFG.version && sessionStorage.setItem("version", CFG.version);
CFG.isNewMiniVersion = CFG.version == 'hg';
CFG.subUrl = (CFG.isNewMiniVersion ? `/packages/activityCenter/subscibe` : `/pagesNews/subscribeMiddlePage/subscribeNews`) +
"?source=duiba&subId=1922853657613651969&activeNo=" + CFG.projectId + "&activityUrl=" + encodeURI(location.href)
CFG.index = '/projectx/' + CFG.projectId + '/index.html?appID=' + CFG.appID;
// 免登中间页id
CFG.loginMidId = "Did1NjAwMDc"; // 线上正式
if (location.href.indexOf("duibatest") > -1) {
CFG.loginMidId = "Did1MTM2NTU"; // 测试
} else if (CFG.projectId == 'p555448e6') { // TODO 线上测试id
CFG.loginMidId = "Did1NTk5OTk"; // 线上测试
}
// 免登中间页
CFG.loginMidUrl = "/customShare/share?id=" + CFG.loginMidId + "&source=duiba&projectId=" + CFG.projectId + "&redirectUrl=";
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");
//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.sensorUrl = "https://mdglfxpt.piccgroup.cn:18443/sa?project=picclife_consumer";
//代理人仅分享渠道
CFG.agentShare = getUrlParam("agentShare") || 0;
// 环境,test测试,prod 生产 TIAN_TODO
CFG.env = "prod"; //注意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-19.m.duiba.com.cn%252FcustomShare%252Fshare%253Fid%253DDid1NTgxNTE&isBindManager=1&isNeedAuth=1";
}
if (!getUrlParam("appID")) {
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}
</script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1748567916005/assets/index-BRd4HJb5.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748567916005/assets/vendor-CayppIv6.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748567916005/assets/vendor-NZxPxbcK.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748567916005/assets/index-CykO0UQR.css">
<script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head>
<body>
<div id="root"></div>
</head>
<body>
<div id="root"></div>
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1748513454371/assets/polyfills-legacy-C2MhNPfJ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1748513454371/assets/index-legacy-Bf9crt_C.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
<script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1748567916005/assets/polyfills-legacy-C2MhNPfJ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1748567916005/assets/index-legacy-IBQwiWc0.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
\ No newline at end of file
......@@ -89,8 +89,8 @@
//代理人仅分享渠道
CFG.agentShare = getUrlParam("agentShare") || 0;
// 环境,test测试,prod生产 TIAN_TODO
CFG.env = "test"; //注意sdk 也分环境!
// 环境,test测试,prod 生产 TIAN_TODO
CFG.env = "prod"; //注意sdk 也分环境!
if (CFG.env == "test") {
// 测试
// eslint-disable-next-line @spark/best-practices/no-url-in-js
......
......@@ -15,18 +15,18 @@ class Prizepop extends React.Component {
super(props);
}
componentDidMount(){
pageView("b14281", {
pageView("b14282", {
page_name: "抽中中奖弹窗",
});
sensorLog(LOG_KEY.exposure, "b14281", "d14283", {
sensorLog(LOG_KEY.exposure, "b14282", "d14283", {
page_name: "抽中中奖弹窗",
button_name: "开心收下按钮",
});
}
handleReceive = _asyncThrottle(() => {
sensorLog(LOG_KEY.click, "b14281", "d14283", {
sensorLog(LOG_KEY.click, "b14282", "d14283", {
page_name: "抽中中奖弹窗",
button_name: "开心收下按钮",
});
......
......@@ -11,6 +11,7 @@ import { SvgaPlayer } from "@grace/svgaplayer";
import lightSvga from "../../assets/svga/6输出弹窗.svga";
import Capsulepage from "../../pages/CapsulePage/CapsulePage";
import { LOG_KEY, MatterShareOpt, MatterViewDuration, MatterViewOpt, pageView, sensorLog } from "../../utils/sensors.js";
import HomePage from "../../pages/HomePage/HomePage";
@observer
class Settlechance extends React.Component {
......
......@@ -16,7 +16,7 @@
left: 0px;
top: 0px;
position: absolute;
.sparkBg("homePage/bg.png");
.sparkBg("HomePage/bg.png");
}
.equipment {
......@@ -25,7 +25,7 @@
left: 60px;
top: 499px;
position: absolute;
.sparkBg("homePage/equipment.png");
.sparkBg("HomePage/equipment.png");
}
.icon {
......@@ -34,7 +34,7 @@
left: 400px;
top: 987px;
position: absolute;
.sparkBg("homePage/icon.png");
.sparkBg("HomePage/icon.png");
}
.book {
......@@ -43,7 +43,7 @@
left: 60px;
top: 1192px;
position: absolute;
.sparkBg("homePage/book.png");
.sparkBg("HomePage/book.png");
}
.brain {
......@@ -52,7 +52,7 @@
left: 179px;
top: 573px;
position: absolute;
.sparkBg("homePage/brain.png");
.sparkBg("HomePage/brain.png");
}
.wenhao {
......@@ -61,7 +61,7 @@
left: 326px;
top: 644px;
position: absolute;
.sparkBg("homePage/wenhao.png");
.sparkBg("HomePage/wenhao.png");
}
.title {
......@@ -70,7 +70,7 @@
left: 29px;
top: 131px;
position: absolute;
.sparkBg("homePage/title.png");
.sparkBg("HomePage/title.png");
}
.draw {
......@@ -79,7 +79,7 @@
left: 5px;
top: 1344px;
position: absolute;
.sparkBg("homePage/draw.png");
.sparkBg("HomePage/draw.png");
}
.task {
......@@ -88,7 +88,7 @@
left: 591px;
top: 1344px;
position: absolute;
.sparkBg("homePage/task.png");
.sparkBg("HomePage/task.png");
}
.matter {
......@@ -104,7 +104,7 @@
left: 0px;
top: 0px;
position: absolute;
.sparkBg("homePage/m_bg.png");
.sparkBg("HomePage/m_bg.png");
}
.answer {
......@@ -113,7 +113,7 @@
left: 109px;
top: 32px;
position: absolute;
.sparkBg("homePage/answer.png");
.sparkBg("HomePage/answer.png");
}
.remain {
......@@ -143,7 +143,7 @@
left: 0px;
top: 0px;
position: absolute;
.sparkBg("homePage/r_bg.png");
.sparkBg("HomePage/r_bg.png");
}
.name {
......@@ -153,10 +153,11 @@
top: 67px;
position: absolute;
// font-size: 30px;
font-size: 28px;
font-size: 27px;
line-height: 33px;
color: rgba(30, 76, 169, 1);
.lineClamp1();
white-space: nowrap;
// .lineClamp1();
}
.head {
......@@ -165,7 +166,7 @@
left: 37px;
top: 34px;
position: absolute;
// .sparkBg("homePage/head.png");
// .sparkBg("HomePage/head.png");
border-radius: 15px;
}
......@@ -175,7 +176,7 @@
left: 477px;
top: 103px;
position: absolute;
.sparkBg("homePage/myRank.png");
.sparkBg("HomePage/myRank.png");
-webkit-user-select: none;
user-select: none;
......@@ -203,7 +204,7 @@
left: 636px;
top: 510px;
position: absolute;
.sparkBg("homePage/prize.png");
.sparkBg("HomePage/prize.png");
}
.rule {
......@@ -212,7 +213,7 @@
left: 0px;
top: 510px;
position: absolute;
.sparkBg("homePage/rule.png");
.sparkBg("HomePage/rule.png");
}
.visit {
......@@ -221,7 +222,7 @@
left: 566px;
top: 616px;
position: absolute;
.sparkBg("homePage/visit.png");
.sparkBg("HomePage/visit.png");
}
.share {
......@@ -230,7 +231,7 @@
left: 552px;
top: 817px;
position: absolute;
.sparkBg("homePage/share.png");
.sparkBg("HomePage/share.png");
}
.logo {
......@@ -239,7 +240,7 @@
left: 232px;
top: 85px;
position: absolute;
.sparkBg("homePage/logo.png");
.sparkBg("HomePage/logo.png");
}
.musicBtn {
......
......@@ -22,24 +22,29 @@ import gameStore from "@/store/gameStore.ts";
import GamePage from "@/pages/GamePage/GamePage.tsx";
import MusicBtn from '@/core/components/MusicBtn/MusicBtn.tsx';
import { onInitShare } from '@/utils/share.ts';
const startTime = +new Date()
@observer
class Homepage extends React.Component {
constructor(props) {
super(props);
this.handleButtonClick = this.handleButtonClick.bind(this);
}
async componentDidMount() {
if (isWeiXin()) {
if (!await store.checkBindStatus()) return;
}
// if (isWeiXin()) {
// if (!await store.checkBindStatus()) return;
// }
await shareStore.doAssist();
await store.updateIndex();
this.initSensor();
}
componentWillUnmount() {
if (CFG.channel == CHANNEL_PARAMS.YK_MINI || CFG.channel == CHANNEL_PARAMS.YK_PUBLIC) {
MatterViewDuration("b14268", +new Date() - startTime, {
page_name: "友客首页",
});
}
}
handleButtonClick = _asyncThrottle(async (number) => {
// 活动时间判断
// 规则 奖品始终可以点击 我的排名结束可以点击 其余常规逻辑
......@@ -121,7 +126,7 @@ class Homepage extends React.Component {
// 6 拜访清单
case 6:
// TODO
sensorLog(LOG_KEY.click, "b14268", "d14268", {
sensorLog(LOG_KEY.click, "b14268", "d14269", {
page_name: "友客首页",
button_name: "拜访清单按钮",
});
......
......@@ -22,7 +22,6 @@ class AgentSharepage extends React.Component {
}
this.startTime = +new Date();
this.shareRef = null;
this.startTime = +new Date();
}
async componentDidMount() {
......@@ -49,6 +48,9 @@ class AgentSharepage extends React.Component {
}
componentWillUnmount() {
MatterViewDuration("b14316", +new Date() - this.startTime, {
page_name: "落地页",
});
}
......@@ -74,7 +76,7 @@ class AgentSharepage extends React.Component {
}
handleShareAct = _throttle(() => {
MatterShareOpt("b14316", "d14327", {
MatterShareOpt("b14316", "d14317", {
button_name: "分享活动按钮",
page_name: "落地页",
})
......
......@@ -56,6 +56,9 @@ class Sharepage extends React.Component {
}
componentWillUnmount() {
MatterViewDuration("b14316", +new Date() - this.startTime, {
page_name: "落地页",
});
}
......@@ -105,9 +108,9 @@ class Sharepage extends React.Component {
`${!!CFG.workerCode ? `&ykCode=${CFG.workerCode}` : ""}` +
`&agentCode=${CFG.agentCode || ""}&actPlatforms=${CFG.actPlatforms || ""}&actId=${CFG.actId || ""}`;
// alert(url)
// MatterViewDuration("b13548", +new Date() - this.startTime, {
// page_name: "非遗-落地页",
// });
MatterViewDuration("b14316", +new Date() - this.startTime, {
page_name: "落地页",
});
setTimeout(() => {
location.href = url;
}, 500)
......
......@@ -71,13 +71,18 @@ class Taskpop extends React.Component {
/** 去完成 */
taskDoHandle = _asyncThrottle(async (item) => {
const {taskStatus, code} = item || {};
// if(code == TASK_CODE.INVITE){
// MatterShareOpt(LOG_KEY.click,"b7870","d8729")
// }
sensorLog(LOG_KEY.click, "b14312", "d14313", {
page_name: "做任务,赚次数弹窗",
button_name: "去完成按钮",
});
if(code == TASK_CODE.INVITE){
MatterShareOpt("b14312", "d14313", {
button_name: "做任务,赚次数弹窗",
page_name: "去完成按钮",
})
}else{
sensorLog(LOG_KEY.click, "b14312", "d14313", {
page_name: "做任务,赚次数弹窗",
button_name: "去完成按钮",
});
}
await taskStore.doTask(item);
})
......
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