Commit 770f4ee8 authored by wangzhujun's avatar wangzhujun

1

parent e0d858ad
...@@ -35,17 +35,17 @@ ...@@ -35,17 +35,17 @@
// https://activity.m.duiba.com.cn/customShare/share?id=Did1NjA5Mjc // https://activity.m.duiba.com.cn/customShare/share?id=Did1NjA5Mjc
CFG.loginUrl = 'https://98570-activity.m.dexfu.cn/customShare/share?id=Did1NjA5Mjc' CFG.loginUrl = 'https://98570-activity.m.dexfu.cn/customShare/share?id=Did1NjA5Mjc'
</script> </script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1747188291027/assets/index-DXKkX8dU.js"></script> <script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1747203191708/assets/index-DeF1nQuo.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747188291027/assets/vendor-ymDJjPI-.js"> <link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747203191708/assets/vendor-Bt8dN0q7.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747188291027/assets/vendor-CWeaUrOh.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747203191708/assets/vendor-CWeaUrOh.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747188291027/assets/index-DgRMFr-Y.css"> <link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747203191708/assets/index-DOXMZUjG.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/1747188291027/assets/polyfills-legacy-C2MhNPfJ.js"></script> <script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1747203191708/assets/polyfills-legacy-C2MhNPfJ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1747188291027/assets/index-legacy-DkDXY82q.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/1747203191708/assets/index-legacy-BJ8Mh-vz.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body> </body>
</html> </html>
......
...@@ -13,7 +13,7 @@ import musicStore from "@/store/musicStore.ts"; ...@@ -13,7 +13,7 @@ import musicStore from "@/store/musicStore.ts";
import { initWx } from "@/built-in/share/weixin/weixin.ts"; import { initWx } from "@/built-in/share/weixin/weixin.ts";
import { ModalCtrl } from "@/core/ctrls/ModalCtrl.tsx"; import { ModalCtrl } from "@/core/ctrls/ModalCtrl.tsx";
import { PageCtrl } from "@/core/ctrls/PageCtrl.tsx"; import { PageCtrl } from "@/core/ctrls/PageCtrl.tsx";
import { GetCurrSkinId, getCustomShareId } from "@/utils/utils.ts"; import { GetCurrSkinId, getCustomShareId, getUrlParam } from "@/utils/utils.ts";
import HomePage from "@/pages/HomePage/HomePage.tsx"; import HomePage from "@/pages/HomePage/HomePage.tsx";
import MyPrize from "@/pages/MyPrize/MyPrize.tsx"; import MyPrize from "@/pages/MyPrize/MyPrize.tsx";
...@@ -34,6 +34,12 @@ class App extends Component { ...@@ -34,6 +34,12 @@ class App extends Component {
} }
async componentDidMount() { async componentDidMount() {
let inviteCode = getUrlParam("inviteCode");
let newUrl = location.href.split("&")[0]
if(inviteCode){
newUrl = newUrl +"&inviteCode="+inviteCode;
}
window.history.replaceState({}, '', newUrl);
this.showDefaultPage(); this.showDefaultPage();
musicStore.playSound(bgm, true); musicStore.playSound(bgm, true);
await store.getFrontVariable(); await store.getFrontVariable();
......
import API from "@/api"; import API from "@/api";
import {isWeiXin} from "@/AppTools.ts"; import { isWeiXin } from "@/AppTools.ts";
export interface IWxShareInfo { export interface IWxShareInfo {
title: string, title: string,
...@@ -42,8 +42,8 @@ export async function initWx(shareInfo: IWxShareInfo) { ...@@ -42,8 +42,8 @@ export async function initWx(shareInfo: IWxShareInfo) {
// @ts-ignore // @ts-ignore
data, data,
timestamp, timestamp,
} = await API.getShareInfo({wxdebug: false, url:location.href,isMiniApp:true,apk:'2J2Dt6DHw8bGf2vZb14E34Uthr6q',}); } = await API.getShareInfo({ wxdebug: false, url: location.href, isMiniApp: true, apk: '2J2Dt6DHw8bGf2vZb14E34Uthr6q', });
// wxappid, wxtimestamp, wxnonceStr, wxsignature shareInfo.link // wxappid, wxtimestamp, wxnonceStr, wxsignature shareInfo.link
if (!success) { if (!success) {
return; return;
} }
...@@ -62,7 +62,7 @@ export async function initWx(shareInfo: IWxShareInfo) { ...@@ -62,7 +62,7 @@ export async function initWx(shareInfo: IWxShareInfo) {
}); });
wx.ready(function () { wx.ready(function () {
invokeWX(shareInfo); // invokeWX(shareInfo);
}); });
} }
...@@ -41,7 +41,6 @@ class HomePage extends React.Component<any, any> { ...@@ -41,7 +41,6 @@ class HomePage extends React.Component<any, any> {
/** 开始游戏按钮*/ /** 开始游戏按钮*/
startGame = _asyncThrottle(async () => { startGame = _asyncThrottle(async () => {
if (!store.judgeActTime()) return; if (!store.judgeActTime()) return;
if (store.indexData.remainTimes == 0) { if (store.indexData.remainTimes == 0) {
Toast.show("暂无游戏次数哦") Toast.show("暂无游戏次数哦")
......
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