Commit fa9d20c4 authored by jtwu's avatar jtwu

112

parent a12c8177
......@@ -84,10 +84,10 @@
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}
</script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1750752431165/assets/index-B5Sszawr.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1750752431165/assets/vendor-C5VsR9x6.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1750752431165/assets/vendor-DhjHFO43.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1750752431165/assets/index-C2MSDTQu.css">
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1750755639826/assets/index-GRfvDPyc.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1750755639826/assets/vendor-DWgtGOFe.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1750755639826/assets/vendor-DhjHFO43.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1750755639826/assets/index-Cm88y5iR.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">!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>
......@@ -96,8 +96,8 @@
<div id="root"></div>
<!-- <script src="https://yun.duiba.com.cn/db_games/RB_yanxue/250620/js/output.js"></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/1750752431165/assets/polyfills-legacy-C2MhNPfJ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1750752431165/assets/index-legacy-UmOmGOFP.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1750755639826/assets/polyfills-legacy-C2MhNPfJ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1750755639826/assets/index-legacy-Cs7HvNds.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
\ No newline at end of file
......@@ -82,6 +82,9 @@ class Mappage extends React.Component {
// }
console.log('res:::::', res);
if (res?.success) {
res.data?.spInfoList?.map(item=>{
handleLogExposure(29, item.spId, item.unlockFlag);
})
this.setState({
spInfoList: res.data.spInfoList
})
......@@ -95,6 +98,7 @@ class Mappage extends React.Component {
onSee = (spId) => {
const { spInfoList } = this.state;
const targetCity = spInfoList.find(city => city.spId === spId);
handleLogClick(29, spId, targetCity.unlockFlag);
if (!targetCity.unlockFlag) {
Toast.show("当前城市未解锁,快去参与游戏解锁吧~");
return;
......@@ -117,7 +121,7 @@ class Mappage extends React.Component {
</div>
<div className="city_overlay">
<div className="city_name">{city.name}</div>
<div className={city.unlockFlag ? 'see_btn md29' : 'lock_see_btn md29'} onClick={() => this.onSee(city.spId)}></div>
<div className={city.unlockFlag ? 'see_btn' : 'lock_see_btn'} onClick={() => this.onSee(city.spId)}></div>
</div>
</div>
))}
......
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