Commit 72819a67 authored by wangzhujun's avatar wangzhujun

跳转

parent e73f814d
......@@ -34,17 +34,17 @@
}
CFG.loginUrl = 'https://98570-activity.m.dexfu.cn/wechat/access?apk=2vujqg1MJ4A4vogq9e22RzTa7C8S&dbredirect='
</script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1747127547727/assets/index-CjjuO8xV.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747127547727/assets/vendor-BD9rnM0F.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747127547727/assets/vendor-CWeaUrOh.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747127547727/assets/index-CmbfO223.css">
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1747128552616/assets/index-Cy_Yt4y7.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747128552616/assets/vendor-rQ1kARrG.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747128552616/assets/vendor-CWeaUrOh.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1747128552616/assets/index-B-evKoWY.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>
<body>
<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 crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1747127547727/assets/polyfills-legacy-C2MhNPfJ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1747127547727/assets/index-legacy-_M9XBb8Q.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/1747128552616/assets/polyfills-legacy-C2MhNPfJ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1747128552616/assets/index-legacy--cMFscKW.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
......
......@@ -24,6 +24,7 @@ import Prizepage from '../prizepage/prizepage';
import WxOpenModule from '@/components/wxOpenModule/wxOpenModule';
import { handleLogClick } from '@/MD';
import { accessLog } from '@/built-in/duiba-utils';
import { isWechatMiniProgram } from '@/AppTools';
@observer
class HomePage extends React.Component<any, any> {
......@@ -75,7 +76,7 @@ class HomePage extends React.Component<any, any> {
console.info('shop')
// if (!store.judgeActTime()) return;
accessLog(502, { join_type: 2 })
miniGoUrl('')
miniGoUrl('/pages/retail/festival-event/festival-act?id=859442452439264065&orgId=58929495997939712&programId=84796583983972352')
}
doTask = _asyncThrottle((item: { code: string; }) => {
if (!store.judgeActTime()) return;
......@@ -86,7 +87,7 @@ class HomePage extends React.Component<any, any> {
return;
} else if (item.code == "scan") {
handleLogClick(11, 1)
miniGoUrl(store.frontVariable.scanUrl)
miniGoUrl('/pages/index/index')
return;
}
})
......@@ -150,12 +151,15 @@ class HomePage extends React.Component<any, any> {
<span className="mainnum">剩余次数:{remainTimes || 0}</span>
</Button>
<Button className="shopbtn md6" onClick={this.clickShop}>
<WxOpenModule
id={"shopbtn"}
appid={'wxc911dd6c6bc128de'}
username={'gh_de562905dee7'}
envVersion={'release'}
path={'/pages/retail/festival-event/festival-act?id=859442452439264065&orgId=58929495997939712&programId=84796583983972352'}></WxOpenModule>
{
!isWechatMiniProgram() && <WxOpenModule
id={"shopbtn"}
appid={'wxc911dd6c6bc128de'}
username={'gh_de562905dee7'}
envVersion={'release'}
path={'/pages/retail/festival-event/festival-act?id=859442452439264065&orgId=58929495997939712&programId=84796583983972352'}></WxOpenModule>
}
</Button>
<Button className="drawbtn md8" onClick={this.clickDraw}>
<span className="drawimg"></span>
......@@ -176,12 +180,14 @@ class HomePage extends React.Component<any, any> {
: item.taskStatus == 1 ? <Button className="taskgetbtn" onClick={() => this.getTaskPrize(item)}></Button>
: item.code == "invite" ? <Button className="taskinvitebtn" 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>
{
!isWechatMiniProgram() && <WxOpenModule
id={"scanbtn"}
appid={'wxdb24598d157fe7d2'}
username={'gh_03aa83788530'}
envVersion={'release'}
path={'/pages/index/index'}></WxOpenModule>
}
</Button>
: ''// <span className="taskgetbtn">{item.taskStatus}</span>
}
......
......@@ -10,6 +10,7 @@ import Inputinfomodal from '@/components/inputinfomodal/inputinfomodal';
import { PageCtrl } from '@/core/ctrls/PageCtrl';
import { Button } from '@grace/ui';
import WxOpenModule from '@/components/wxOpenModule/wxOpenModule';
import { isWechatMiniProgram } from '@/AppTools';
@observer
class Prizepage extends React.Component {
......@@ -52,12 +53,15 @@ class Prizepage extends React.Component {
item.boolThirdObject ? item.needFillAddress ? <Button className='bindbtn' onClick={() => this.receive(item)}></Button>
: <Button className='gotbtn' ></Button>
: <Button className='checkbtn' onClick={() => this.jumpUrl(item)}>
<WxOpenModule
id={"prizebtn"}
appid={'wxb3b1041867218f81'}
username={'gh_706a4c5cb211'}
envVersion={'release'}
path={'/pages/unify/unify?orgId=200282401019674482&targetUrl=%2Fpages%2Fcoupon%2Fcoupons-list'}></WxOpenModule>
{
!isWechatMiniProgram() && <WxOpenModule
id={"prizebtn"}
appid={'wxb3b1041867218f81'}
username={'gh_706a4c5cb211'}
envVersion={'release'}
path={'/pages/unify/unify?orgId=200282401019674482&targetUrl=%2Fpages%2Fcoupon%2Fcoupons-list'}></WxOpenModule>
}
</Button>
}
<span className="name">{item.extra.name}</span>
......
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