Commit 30247aff authored by 俞嘉婷's avatar 俞嘉婷

feat: 活动结束 领奖二维码弹出 登录链路调整

parent 06e86648
...@@ -71,10 +71,10 @@ ...@@ -71,10 +71,10 @@
} }
</script> </script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1757645453605/assets/index-BPsZ9FRU.js"></script> <script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1759139899854/assets/index-B7eaNtWj.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1757645453605/assets/vendor-Bl1m6B-G.js"> <link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1759139899854/assets/vendor-lQhSuJ8S.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1757645453605/assets/vendor-BQh5NVNk.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1759139899854/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1757645453605/assets/index-CQ5HF7-B.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1759139899854/assets/index-CGGREKvK.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">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> <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> </head>
...@@ -82,8 +82,8 @@ ...@@ -82,8 +82,8 @@
<body> <body>
<div id="root"></div> <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>!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/1757645453605/assets/polyfills-legacy-D0AVcSo7.js"></script> <script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1759139899854/assets/polyfills-legacy-D0AVcSo7.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1757645453605/assets/index-legacy-CmwHfzkZ.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script> <script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1759139899854/assets/index-legacy-Cgw2pF5s.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -183,7 +183,9 @@ class Loginpop extends React.Component { ...@@ -183,7 +183,9 @@ class Loginpop extends React.Component {
"redirectUrl": location.href "redirectUrl": location.href
} }
const { success, data } = await API[ const { success, data } = await API[
CFG.channel == CHANNEL.KUNLUN ? "coop_checkCode" : "checkCode" // CFG.channel == CHANNEL.KUNLUN ? "coop_checkCode" : "checkCode"
// 20250929迭代:活动结束了 奖品二维码弹窗出来了 需要统一按照昆仑的处理
"coop_checkCode"
](params) ](params)
if (success) { if (success) {
location.replace(data); location.replace(data);
......
...@@ -154,8 +154,10 @@ class Store { ...@@ -154,8 +154,10 @@ class Store {
} else if (code == 60002) { } else if (code == 60002) {
// 请绑定手机号 // 请绑定手机号
ModalCtrl.showModal(Loginpop) ModalCtrl.showModal(Loginpop)
} else if ((CFG.channel == CHANNEL.KUNLUN) && (code == 100001 || code == 100007 || code == 100009)) { // } else if ((CFG.channel == CHANNEL.KUNLUN) && (code == 100001 || code == 100007 || code == 100009)) {
// 只有昆仑银行 需要绑定手机号 其他渠道拦截登录直接出未登录toast,防止奖品被刷 // 只有昆仑银行 需要绑定手机号 其他渠道拦截登录直接出未登录toast,防止奖品被刷
} else if ((code == 100001 || code == 100007 || code == 100009)) {
// 20250929迭代:活动结束了 奖品二维码弹窗出来了 需要统一按照昆仑的处理
ModalCtrl.showModal(Loginpop); ModalCtrl.showModal(Loginpop);
} else { } else {
Toast.show(errMessageMap[code] || message || '网络异常,请稍后再试') Toast.show(errMessageMap[code] || message || '网络异常,请稍后再试')
...@@ -187,6 +189,7 @@ class Store { ...@@ -187,6 +189,7 @@ class Store {
} }
// 防止奖品被刷 禁止微信端访问了 这个弹窗不会出了 配置项控制 // 防止奖品被刷 禁止微信端访问了 这个弹窗不会出了 配置项控制
// 20250929:活动结束了 奖品二维码弹窗需要出来了
if (endPop) { if (endPop) {
ModalCtrl.showModal(Tipspop); ModalCtrl.showModal(Tipspop);
} }
......
...@@ -26,7 +26,9 @@ export function errorHandler(error) { ...@@ -26,7 +26,9 @@ export function errorHandler(error) {
if ((error.code == 0 && error.message == "请稍后再试") || filterCode.indexOf(`${error.code}`) >= 0) return; if ((error.code == 0 && error.message == "请稍后再试") || filterCode.indexOf(`${error.code}`) >= 0) return;
// 微信端/华夏理财/三方合作APP 未登录时 其他接口都走登录弹窗 // 微信端/华夏理财/三方合作APP 未登录时 其他接口都走登录弹窗
// 20250903迭代:只有昆仑银行 需要绑定手机号 其他渠道拦截登录直接出未登录toast,防止奖品被刷 // 20250903迭代:只有昆仑银行 需要绑定手机号 其他渠道拦截登录直接出未登录toast,防止奖品被刷
if ((CFG.channel == CHANNEL.KUNLUN) && (error.code == 100001 || error.code == 100007 || error.code == 100009)) return ModalCtrl.showModal(Loginpop); // if ((CFG.channel == CHANNEL.KUNLUN) && (error.code == 100001 || error.code == 100007 || error.code == 100009)) return ModalCtrl.showModal(Loginpop);
// 20250929迭代:活动结束了 奖品二维码弹窗出来了 需要统一按照昆仑的处理
if ((error.code == 100001 || error.code == 100007 || error.code == 100009)) return ModalCtrl.showModal(Loginpop);
switch (error.code) { switch (error.code) {
default: { default: {
const msg = errMessageMap[error.code] || error.message || '网络异常,请稍后再试'; const msg = errMessageMap[error.code] || error.message || '网络异常,请稍后再试';
......
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