Commit b8568ae2 authored by wangzhujun's avatar wangzhujun

anniu

parent 9b31f933
...@@ -34,17 +34,17 @@ ...@@ -34,17 +34,17 @@
} }
CFG.loginUrl = 'https://98570-activity.m.dexfu.cn/wechat/access?apk=2vujqg1MJ4A4vogq9e22RzTa7C8S&dbredirect=' CFG.loginUrl = 'https://98570-activity.m.dexfu.cn/wechat/access?apk=2vujqg1MJ4A4vogq9e22RzTa7C8S&dbredirect='
</script> </script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1747107363628/assets/index-BZrRA8Gi.js"></script> <script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1747124663544/assets/index-jg9AJzoa.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747107363628/assets/vendor-D_vyPRmt.js"> <link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747124663544/assets/vendor-Dqj8SBOu.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747107363628/assets/vendor-CWeaUrOh.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747124663544/assets/vendor-CWeaUrOh.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747107363628/assets/index-CJjqnp9p.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747124663544/assets/index-BXJZclav.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>
<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/1747107363628/assets/polyfills-legacy-C2MhNPfJ.js"></script> <script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1747124663544/assets/polyfills-legacy-C2MhNPfJ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1747107363628/assets/index-legacy-DMjpGcXd.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/1747124663544/assets/index-legacy-W1-_qeT_.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body> </body>
</html> </html>
......
import { AESDecrypt, AESEncrypt } from "./Crypto"; import { AESDecrypt, AESEncrypt } from "./Crypto";
export default [ export default [
{
url:'/task_1/queryTasks.do',
response: ({query}) => {
return {
"success": false,
}
}
},
{ {
url: '/tcs/index.do', url: '/tcs/index.do',
response: ({ query }) => { response: ({ query }) => {
...@@ -10,6 +18,7 @@ export default [ ...@@ -10,6 +18,7 @@ export default [
"message": "", "message": "",
"timeStamp": Date.now(), "timeStamp": Date.now(),
"data": { "data": {
newAssist: 2,
"startTime": Date.now() - 1000000, "startTime": Date.now() - 1000000,
"endTime": Date.now() + 1000000, "endTime": Date.now() + 1000000,
"remainTimes": 12, "remainTimes": 12,
......
...@@ -175,7 +175,14 @@ class HomePage extends React.Component<any, any> { ...@@ -175,7 +175,14 @@ class HomePage extends React.Component<any, any> {
item.taskStatus == 2 ? <span className="taskfinishbtn"></span> item.taskStatus == 2 ? <span className="taskfinishbtn"></span>
: item.taskStatus == 1 ? <Button className="taskgetbtn" onClick={() => this.getTaskPrize(item)}></Button> : item.taskStatus == 1 ? <Button className="taskgetbtn" onClick={() => this.getTaskPrize(item)}></Button>
: item.code == "invite" ? <Button className="taskinvitebtn" onClick={() => this.doTask(item)}></Button> : item.code == "invite" ? <Button className="taskinvitebtn" onClick={() => this.doTask(item)}></Button>
: item.code == "scan" ? <Button className="taskscanbtn" onClick={() => this.doTask(item)}></Button> : item.code == "scan" ? <Button className="taskscanbtn" onClick={() => this.doTask(item)}>
<WxOpenModule
id={"scanbtn"}
appid={'wxdb24598d157fe7d2'}
username={'gh_03aa83788530'}
envVersion={'release'}
path={'/pages/index/index'}></WxOpenModule>
</Button>
: ''// <span className="taskgetbtn">{item.taskStatus}</span> : ''// <span className="taskgetbtn">{item.taskStatus}</span>
} }
<span className="tasktit">{item.title}({item.completedSize}/{item.intervalLimitSize})</span> <span className="tasktit">{item.title}({item.completedSize}/{item.intervalLimitSize})</span>
......
...@@ -87,8 +87,9 @@ class Store { ...@@ -87,8 +87,9 @@ class Store {
// ModalCtrl.showModal(Ranknoprizepop, { ...data.rankPopInfo }) // ModalCtrl.showModal(Ranknoprizepop, { ...data.rankPopInfo })
// } // }
} }
if (data.newAssist > 0) {
Toast.show(`成功邀请${data.newAssist}位好友助力`) if (data?.newAssist > 0) {
this.showToast(`成功邀请${data.newAssist}位好友助力`)
} }
} }
...@@ -158,6 +159,25 @@ class Store { ...@@ -158,6 +159,25 @@ class Store {
} }
} }
toastList = []
toastCon = false;
showToast(lab?: string) {
if (lab) {
this.toastList.push(lab)
}
if (this.toastCon) {
return;
}
this.toastCon = true
Toast.show(this.toastList.shift())
setTimeout(() => {
this.toastCon = false;
if (this.toastList.length > 0) {
this.showToast()
}
}, 2000)
}
} }
......
import store from "@/store/store";
import { Toast } from "@grace/ui"; import { Toast } from "@grace/ui";
// 需要过滤的错误码 // 需要过滤的错误码
...@@ -24,7 +25,8 @@ export function errorHandler(error) { ...@@ -24,7 +25,8 @@ export function errorHandler(error) {
switch (error.code) { switch (error.code) {
default: { default: {
const msg = errMessageMap[error.code] || error.message || '网络异常,请稍后再试'; const msg = errMessageMap[error.code] || error.message || '网络异常,请稍后再试';
Toast.show(msg); // Toast.show(msg);
store.showToast(msg)
break; break;
} }
} }
......
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