Commit 79803f46 authored by haiyoucuv's avatar haiyoucuv

init

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