Commit b3215907 authored by haiyoucuv's avatar haiyoucuv

init

parent 9b2281d4
...@@ -6,16 +6,25 @@ ...@@ -6,16 +6,25 @@
left: 0; left: 0;
top: 0; top: 0;
position: absolute; position: absolute;
overflow: hidden; overflow-x: hidden;
overflow-y: auto;
.webpBg("ResPage/bg.png");
background-size: 750px 1746px;
background-position: left top;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
.bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 1624px;
.webpBg("ResPage/bg.png");
background-size: 750px 1746px;
background-position: left top;
}
.rankBg { .rankBg {
position: absolute; position: absolute;
left: 21px; left: 21px;
...@@ -85,6 +94,38 @@ ...@@ -85,6 +94,38 @@
} }
} }
.tab {
position: absolute;
left: 19px;
top: 536px;
width: 713px;
height: 1041px;
&.tab1 {
.webpBg("ResPage/bg1.png");
}
&.tab2 {
.webpBg("ResPage/bg2.png");
}
.tabBtn1 {
position: absolute;
left: 0;
top: 0;
width: 50%;
height: 80px;
}
.tabBtn2 {
position: absolute;
left: 50%;
top: 0;
width: 50%;
height: 80px;
}
}
.backBtn { .backBtn {
position: absolute; position: absolute;
left: 28px; left: 28px;
......
...@@ -7,7 +7,9 @@ import classNames from "classnames"; ...@@ -7,7 +7,9 @@ import classNames from "classnames";
@observer @observer
class ResPage extends React.Component<any, any> { class ResPage extends React.Component<any, any> {
state = {} state = {
tab: 1,
}
async componentDidMount() { async componentDidMount() {
...@@ -17,10 +19,20 @@ class ResPage extends React.Component<any, any> { ...@@ -17,10 +19,20 @@ class ResPage extends React.Component<any, any> {
} }
changeTab = (tab) => {
this.setState({ tab, });
}
render() { render() {
const {} = this.state; const { tab } = this.state;
const tabCls = classNames(styles.tab, {
[styles.tab1]: tab === 1,
[styles.tab2]: tab === 2,
});
return <div className={styles.ResPage}> return <div className={styles.ResPage}>
<div className={styles.bg}/>
<div className={styles.rankBg}> <div className={styles.rankBg}>
<div className={styles.rankImg}/> <div className={styles.rankImg}/>
<div className={classNames(styles.rankTip, styles.rank1)}> <div className={classNames(styles.rankTip, styles.rank1)}>
...@@ -35,6 +47,12 @@ class ResPage extends React.Component<any, any> { ...@@ -35,6 +47,12 @@ class ResPage extends React.Component<any, any> {
<div className={classNames(styles.rankTip, styles.rank4)}> <div className={classNames(styles.rankTip, styles.rank4)}>
理财周期<span>2025.06.22-2025.07.22</span> 理财周期<span>2025.06.22-2025.07.22</span>
</div> </div>
</div>
<div className={tabCls}>
<div className={styles.tabBtn1} onClick={() => this.changeTab(1)}/>
<div className={styles.tabBtn2} onClick={() => this.changeTab(2)}/>
</div> </div>
<Button className={styles.backBtn} onClick={this.clickBack}/> <Button className={styles.backBtn} onClick={this.clickBack}/>
</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