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

微信端登录

parent 7ba814e8
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,10 @@
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。") // alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
} }
</script> </script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1752041178733/assets/index-Cy1eDNe7.js"></script> <script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1752041519269/assets/index-DFgXkAyH.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1752041178733/assets/vendor-Cw84r4Fx.js"> <link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1752041519269/assets/vendor-Cw84r4Fx.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1752041178733/assets/vendor-BQh5NVNk.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1752041519269/assets/vendor-BQh5NVNk.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1752041178733/assets/index-CkdVDOS-.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1752041519269/assets/index-VRkhNJAZ.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>
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,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/1752041178733/assets/polyfills-legacy-D0AVcSo7.js"></script> <script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1752041519269/assets/polyfills-legacy-D0AVcSo7.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1752041178733/assets/index-legacy-Uksn1yK7.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/1752041519269/assets/index-legacy-C_zVzcGI.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body> </body>
</html> </html>
...@@ -6,6 +6,7 @@ export default [ ...@@ -6,6 +6,7 @@ export default [
success: true, success: true,
code: "60002", code: "60002",
// code: "60001", // code: "60001",
// code: "100001",
message: "", message: "",
timeStamp: Date.now(), timeStamp: Date.now(),
data: null data: null
......
...@@ -11,7 +11,7 @@ import Loginpop from '@/panels/loginpop/loginpop'; ...@@ -11,7 +11,7 @@ import Loginpop from '@/panels/loginpop/loginpop';
import InvalidPop from '@/panels/invalidPop/invalidPop'; import InvalidPop from '@/panels/invalidPop/invalidPop';
import FirstPop from '@/panels/firstPop/firstPop'; import FirstPop from '@/panels/firstPop/firstPop';
import Tipspop from '@/panels/tipspop/tipspop'; import Tipspop from '@/panels/tipspop/tipspop';
import { queryAppFundDetail } from '@/AppTools'; import { isWeiXin, queryAppFundDetail } from '@/AppTools';
import { CHANNEL } from '@/AppTools'; import { CHANNEL } from '@/AppTools';
class Store { class Store {
...@@ -133,6 +133,8 @@ class Store { ...@@ -133,6 +133,8 @@ class Store {
} else if (code == 60002) { } else if (code == 60002) {
// 请绑定手机号 // 请绑定手机号
ModalCtrl.showModal(Loginpop) ModalCtrl.showModal(Loginpop)
} else if (isWeiXin() && (code == 100001 || code == 100007 || code == 100009)) {
ModalCtrl.showModal(Loginpop);
} else { } else {
Toast.show(message || '网络异常,请稍后再试') Toast.show(message || '网络异常,请稍后再试')
} }
...@@ -201,7 +203,7 @@ class Store { ...@@ -201,7 +203,7 @@ class Store {
// incomeRate: 1.78, // incomeRate: 1.78,
// pernetValue: 1.66, // pernetValue: 1.66,
// } // }
if (!adInfos?.length) return if (!adInfos?.length) return
// 将客户端查到的收益率 更新我们后端 // 将客户端查到的收益率 更新我们后端
const _codeList = adInfos.map(item => { const _codeList = adInfos.map(item => {
......
...@@ -24,7 +24,7 @@ export const errMessageMap = { ...@@ -24,7 +24,7 @@ export const errMessageMap = {
*/ */
export function errorHandler(error) { 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;
// 微信端 未登录时 除首页接口外 其他接口都走登录弹窗 // 微信端 未登录时 其他接口都走登录弹窗
if (isWeiXin() && (error.code == 100001 || error.code == 100007 || error.code == 100009)) return ModalCtrl.showModal(Loginpop); if (isWeiXin() && (error.code == 100001 || error.code == 100007 || error.code == 100009)) return ModalCtrl.showModal(Loginpop);
switch (error.code) { switch (error.code) {
default: { default: {
......
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