Commit cd8d707b authored by 天马流星拳's avatar 天马流星拳

feat(页面导航): 添加奖品页面跳转功能并更新条件判断

修改PrizePanel组件,在点击按钮时跳转至PrizePage页面
更新myQradesPage页面,将joinStatus判断改为drawStatus并显示totalAmount字段
parent a8b783b8
...@@ -90,7 +90,7 @@ class Myqradespage extends React.Component { ...@@ -90,7 +90,7 @@ class Myqradespage extends React.Component {
<span className="bg"></span> <span className="bg"></span>
<span className="back" onClick={() => this.clickBack()}></span> <span className="back" onClick={() => this.clickBack()}></span>
{ {
this.state.info?.joinStatus ? ( this.state.info?.drawStatus != 1 ? (
<div className="lottery"> <div className="lottery">
<span className="icon3"> <span className="icon3">
<img src={this.state.info.prizeInfo?.prizeImg} alt="" /> <img src={this.state.info.prizeInfo?.prizeImg} alt="" />
...@@ -127,7 +127,7 @@ class Myqradespage extends React.Component { ...@@ -127,7 +127,7 @@ class Myqradespage extends React.Component {
<div className="ranking2"> <div className="ranking2">
<span className="juXing880"></span> <span className="juXing880"></span>
<span className="liCaiZiJin">理财资金</span> <span className="liCaiZiJin">理财资金</span>
<span className="_334556675yuan">{this.formatMoney(this.state.info.totalProfit)}</span> <span className="_334556675yuan">{this.formatMoney(this.state.info.totalAmount)}</span>
</div> </div>
<div className="ranking3"> <div className="ranking3">
<span className="juXing880_1"></span> <span className="juXing880_1"></span>
......
...@@ -4,6 +4,8 @@ import "./PrizePanel.less"; ...@@ -4,6 +4,8 @@ import "./PrizePanel.less";
import { Button } from "@grace/ui"; import { Button } from "@grace/ui";
import { ModalCtrl } from "@/core/ctrls/ModalCtrl.tsx"; import { ModalCtrl } from "@/core/ctrls/ModalCtrl.tsx";
import { _throttle } from "@/utils/utils"; import { _throttle } from "@/utils/utils";
import PrizePage from "@/pages/PrizePage/PrizePage.tsx";
import { PageCtrl } from '@/core/ctrls/PageCtrl';
export class PrizePanel extends Component<any, any> { export class PrizePanel extends Component<any, any> {
...@@ -17,6 +19,7 @@ export class PrizePanel extends Component<any, any> { ...@@ -17,6 +19,7 @@ export class PrizePanel extends Component<any, any> {
clickBtn = _throttle(() => { clickBtn = _throttle(() => {
const { type } = this.props; const { type } = this.props;
ModalCtrl.closeModal(); ModalCtrl.closeModal();
PageCtrl.changePage(PrizePage);
}) })
render() { render() {
......
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