Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
华
华夏模拟理财_20250701
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
华夏模拟理财_20250701
Commits
b3215907
Commit
b3215907
authored
Jul 02, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
9b2281d4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
7 deletions
+66
-7
bg1.png
src/assets/ResPage/bg1.png
+0
-0
bg2.png
src/assets/ResPage/bg2.png
+0
-0
ResPage.module.less
src/pages/ResPage/ResPage.module.less
+46
-5
ResPage.tsx
src/pages/ResPage/ResPage.tsx
+20
-2
No files found.
src/assets/ResPage/bg1.png
0 → 100644
View file @
b3215907
12.5 KB
src/assets/ResPage/bg2.png
0 → 100644
View file @
b3215907
12.2 KB
src/pages/ResPage/ResPage.module.less
View file @
b3215907
...
@@ -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;
...
...
src/pages/ResPage/ResPage.tsx
View file @
b3215907
...
@@ -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
>;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment