Commit 79803f46 authored by haiyoucuv's avatar haiyoucuv

init

parent 3c9002ef
......@@ -38,8 +38,9 @@
CFG.channel = getUrlParam("channel");
// 首页
CFG.index = '/projectx/' + CFG.projectId + '/index.html?appID=' + CFG.appID + '&channel=' + CFG.channel;
CFG.prize = '/projectx/' + CFG.projectId + '/prize.html?appID=' + CFG.appID + '&channel=' + CFG.channel;
// 提示弹窗二维码短链链接(目的页是 首页xx/index.html?off=1) 线上正式 TODO 域名记得改为dexfu的
CFG.prizePageQrcodeUrl = CFG.domain + CFG.index + "&off=1";
CFG.prizePageQrcodeUrl = CFG.domain + CFG.prize + "&off=1";
if (!getUrlParam("appID")) {
......
......@@ -20,6 +20,7 @@ import { loadFont } from "@/core/preload.ts";
import DetailPage from "@/pages/DetailPage/DetailPage.tsx";
import RecordPage from "@/pages/RecordPage/RecordPage.tsx";
import ResPage from "@/pages/ResPage/ResPage.tsx";
import PrizePage from "@/pages/PrizePage/PrizePage.tsx";
@observer
......@@ -30,6 +31,7 @@ class App extends Component {
const defaultPage = {
auth: Auth, // TODO 举例子 新宿台奖品页
index: HomePage,
prize: PrizePage,
}[skinId] || HomePage;
PageCtrl.changePage(defaultPage);
}
......
......@@ -6,7 +6,7 @@ import classNames from "classnames";
import resStore from "@/store/ResStore.ts";
import { PageCtrl } from "@/core/ctrls/PageCtrl.tsx";
import HomePage from "@/pages/HomePage/HomePage.tsx";
import { dateFormatter } from "@/utils/utils.ts";
import { dateFormatter, getUrlParam } from "@/utils/utils.ts";
@observer
class PrizePage extends React.Component<any, any> {
......@@ -51,7 +51,7 @@ class PrizePage extends React.Component<any, any> {
</div>
: <div className={styles.listNone}></div>
}
<Button className={styles.backBtn} onClick={this.clickBack}/>
{getUrlParam("off") != "1" && <Button className={styles.backBtn} onClick={this.clickBack}/>}
</div>;
}
}
......
......@@ -164,7 +164,7 @@ class Loginpop extends React.Component {
"phoneNumber": loginPhone,
"smsCode": loginCode,
"origenUid": uid || '', // 华夏理财渠道才拿得到 其他渠道不用传
"redirectUrl": CFG.domain + CFG.index
"redirectUrl": CFG.domain + (getUrlParam("off") == 1 ? CFG.prize : CFG.index)
}
const { success, data } = await API.coop_checkCode(params)
if (success) {
......
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