Commit aeb51d57 authored by 俞嘉婷's avatar 俞嘉婷

规则拦截

parent a950a501
...@@ -15,4 +15,22 @@ ssh weiyan@bm.dui88.com -p60022 ...@@ -15,4 +15,22 @@ ssh weiyan@bm.dui88.com -p60022
https://unionpay-task.duibatest.com.cn/dbcpic-nj-api/app/login/testLogin?partnerUserId=15727663681&redirect=https%3A%2F%2Funionpay-task.duibatest.com.cn%2Fdbcpic-nj%2Findex.html%3FsourceFrom%3Dguanwei https://unionpay-task.duibatest.com.cn/dbcpic-nj-api/app/login/testLogin?partnerUserId=15727663681&redirect=https%3A%2F%2Funionpay-task.duibatest.com.cn%2Fdbcpic-nj%2Findex.html%3FsourceFrom%3Dguanwei
https://unionpay-task.duibatest.com.cn/dbcpic-nj/index.html?sourceFrom=guanwei 测试环境首页:
\ No newline at end of file https://unionpay-task.duibatest.com.cn/dbcpic-nj/index.html?sourceFrom=guanwei
测试环境免登页:
https://unionpay-task.duibatest.com.cn/dbcpic-nj/auth.html?sourceFrom=xxx
测试环境投放链接:
官微菜单栏 guanwei
https://unionpay-task.duibatest.com.cn/dbcpic-nj/auth.html?sourceFrom=guanwei
官微权益中心 quanyizhongxin
https://unionpay-task.duibatest.com.cn/dbcpic-nj/auth.html?sourceFrom=quanyizhongxin
寿险小程序 shouxian
https://unionpay-task.duibatest.com.cn/dbcpic-nj/auth.html?sourceFrom=shouxian
官微推文 tuiwen
https://unionpay-task.duibatest.com.cn/dbcpic-nj/auth.html?sourceFrom=tuiwen
太好钉 taihaoding
https://unionpay-task.duibatest.com.cn/dbcpic-nj/auth.html?sourceFrom=taihaoding
海报 haibao
https://unionpay-task.duibatest.com.cn/dbcpic-nj/auth.html?sourceFrom=haibao
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
}; };
s(), e.addEventListener && i.addEventListener(m, s, !1); s(), e.addEventListener && i.addEventListener(m, s, !1);
})(document, window); })(document, window);
})</script><style></style><script type="module" crossorigin src="./assets/index-99c20b96.js"></script><link rel="modulepreload" crossorigin href="./assets/api-c914b43f.js"><link rel="stylesheet" href="./assets/api-5a972db1.css"><link rel="stylesheet" href="./assets/index-4682e55f.css"><script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};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><script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script><script src="./assets/js/duiba.js"></script><script>var CFG = {} })</script><style></style><script type="module" crossorigin src="./assets/index-355aa970.js"></script><link rel="modulepreload" crossorigin href="./assets/api-c914b43f.js"><link rel="stylesheet" href="./assets/api-5a972db1.css"><link rel="stylesheet" href="./assets/index-4682e55f.css"><script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};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><script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script><script src="./assets/js/duiba.js"></script><script>var CFG = {}
function getUrlParam(name) { function getUrlParam(name) {
var search = window.location.search; var search = window.location.search;
...@@ -60,4 +60,4 @@ ...@@ -60,4 +60,4 @@
CFG.sensorUrl = 'https://xnjkfxsit.cpic.com.cn/sa?project=SXGW'; CFG.sensorUrl = 'https://xnjkfxsit.cpic.com.cn/sa?project=SXGW';
// 海报二维码 // 海报二维码
CFG.qrCodeImg = 'https://yun.duiba.com.cn/aurora/assets/86edddb7cb2ab51fc7234a3e62279b2c6bfbc2ff.png'; CFG.qrCodeImg = 'https://yun.duiba.com.cn/aurora/assets/86edddb7cb2ab51fc7234a3e62279b2c6bfbc2ff.png';
}</script><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="./assets/polyfills-legacy-014252d2.js"></script><script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-2097a4c5.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script></body></html> }</script><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="./assets/polyfills-legacy-014252d2.js"></script><script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-8b9aacdd.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script></body></html>
\ No newline at end of file \ No newline at end of file
...@@ -19,7 +19,7 @@ const AuthPage = () => { ...@@ -19,7 +19,7 @@ const AuthPage = () => {
const res = await loginApi({ const res = await loginApi({
token: getUrlParam("token"), token: getUrlParam("token"),
src: "d8", src: "d8",
redirectUrl: encodeURIComponent(url), redirectUrl: url,
}); });
if (res.ok) { if (res.ok) {
const { loginFlag, authBaseFlag, interestCollectionFlag, autoLoginUrl, token } = res.data || {}; const { loginFlag, authBaseFlag, interestCollectionFlag, autoLoginUrl, token } = res.data || {};
......
...@@ -35,6 +35,8 @@ class HomePage extends Component { ...@@ -35,6 +35,8 @@ class HomePage extends Component {
// 规则 // 规则
ruleHandle = _asyncThrottle(() => { ruleHandle = _asyncThrottle(() => {
sensorMdClick("activityClick", { pageName: `年鉴活动首页`, buttonName: '规则' }) sensorMdClick("activityClick", { pageName: `年鉴活动首页`, buttonName: '规则' })
const flag = store.checkActivityStatus(true, false);
if (!flag) return;
modalStore.pushPop("RulePop") modalStore.pushPop("RulePop")
}) })
......
...@@ -56,7 +56,6 @@ const store = makeAutoObservable({ ...@@ -56,7 +56,6 @@ const store = makeAutoObservable({
// 活动时间拦截 // 活动时间拦截
// 结束不拦截 brakeEnd为false // 结束不拦截 brakeEnd为false
// 规则奖品始终可以点击 不用调方法
checkActivityStatus(brakeStart = true, brakeEnd = true) { checkActivityStatus(brakeStart = true, brakeEnd = true) {
const activityBaseInfo = store.indexInfo.activityBaseInfo; const activityBaseInfo = store.indexInfo.activityBaseInfo;
if (activityBaseInfo && activityBaseInfo.startTime && activityBaseInfo.endTime) { if (activityBaseInfo && activityBaseInfo.startTime && activityBaseInfo.endTime) {
......
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