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
e21b658b
Commit
e21b658b
authored
Jul 08, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
50454165
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
10 deletions
+27
-10
DetailPage.module.less
src/pages/DetailPage/DetailPage.module.less
+14
-5
DetailPage.tsx
src/pages/DetailPage/DetailPage.tsx
+13
-5
No files found.
src/pages/DetailPage/DetailPage.module.less
View file @
e21b658b
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
text-align: center;
text-align: center;
font-size: 28px;
font-size: 28px;
}
}
.totalProfit{
.totalProfit{
position: absolute;
position: absolute;
left: 0;
left: 0;
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
font-weight: bold;
font-weight: bold;
}
}
.marketValue{
.marketValue{
position: absolute;
position: absolute;
left: 50%;
left: 50%;
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
font-size: 30px;
font-size: 30px;
font-weight: bold;
font-weight: bold;
}
}
.yesterdayProfit{
.yesterdayProfit{
position: absolute;
position: absolute;
right:40px;
right:40px;
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
width: 100%;
width: 100%;
height: 100%;
height: 100%;
//border: none;
//border: none;
border: 0
px
;
border: 0;
}
}
...
@@ -271,4 +271,13 @@
...
@@ -271,4 +271,13 @@
}
}
}
}
}
.backBtn {
\ No newline at end of file
position: absolute;
left: 50px;
top: 50px;
width: 18px;
height: 32px;
.webpBg("RecordPage/backBtn.png");
}
}
src/pages/DetailPage/DetailPage.tsx
View file @
e21b658b
...
@@ -14,6 +14,7 @@ import { ModalCtrl } from "@/core/ctrls/ModalCtrl.tsx";
...
@@ -14,6 +14,7 @@ import { ModalCtrl } from "@/core/ctrls/ModalCtrl.tsx";
import
{
BuyPanel
}
from
"@/panels/BuyPanel/BuyPanel.tsx"
;
import
{
BuyPanel
}
from
"@/panels/BuyPanel/BuyPanel.tsx"
;
import
{
SellPanel
}
from
'@/panels/SellPanel/SellPanel'
;
import
{
SellPanel
}
from
'@/panels/SellPanel/SellPanel'
;
import
{
diffJump
}
from
"@/AppTools.ts"
;
import
{
diffJump
}
from
"@/AppTools.ts"
;
import
HomePage
from
"@/pages/HomePage/HomePage.tsx"
;
enum
EOpType
{
enum
EOpType
{
Buy
=
"buy"
,
Buy
=
"buy"
,
...
@@ -138,6 +139,10 @@ class DetailPage extends React.Component<any, any> {
...
@@ -138,6 +139,10 @@ class DetailPage extends React.Component<any, any> {
}
}
}
}
clickBack
=
()
=>
{
PageCtrl
.
changePage
(
HomePage
);
}
render
()
{
render
()
{
const
{
const
{
tabType
,
iframeUrl
,
tabType
,
iframeUrl
,
...
@@ -152,14 +157,14 @@ class DetailPage extends React.Component<any, any> {
...
@@ -152,14 +157,14 @@ class DetailPage extends React.Component<any, any> {
const
isBuyed
=
totalProfit
||
tranche
||
marketValue
||
yesterdayProfit
;
const
isBuyed
=
totalProfit
||
tranche
||
marketValue
||
yesterdayProfit
;
return
<
div
className=
{
styles
.
DetailPage
}
>
return
<
div
className=
{
styles
.
DetailPage
}
>
{
isBuyed
&&
<
div
className=
{
styles
.
topArea
}
>
{
isBuyed
?
<
div
className=
{
styles
.
topArea
}
>
<
div
className=
{
styles
.
topBg
}
/>
<
div
className=
{
styles
.
topBg
}
/>
<
div
className=
{
styles
.
productName
}
>
{
productName
}
</
div
>
<
div
className=
{
styles
.
productName
}
>
{
productName
}
</
div
>
<
div
className=
{
styles
.
totalProfit
}
>
{
totalProfit
/
100
}
</
div
>
<
div
className=
{
styles
.
totalProfit
}
>
{
totalProfit
/
100
}
</
div
>
<
div
className=
{
styles
.
tranche
}
>
{
tranche
/
100
}
</
div
>
<
div
className=
{
styles
.
tranche
}
>
{
tranche
/
100
}
</
div
>
<
div
className=
{
styles
.
marketValue
}
>
{
marketValue
/
100
}
</
div
>
<
div
className=
{
styles
.
marketValue
}
>
{
marketValue
/
100
}
</
div
>
<
div
className=
{
styles
.
yesterdayProfit
}
>
{
yesterdayProfit
/
100
}
</
div
>
<
div
className=
{
styles
.
yesterdayProfit
}
>
{
yesterdayProfit
/
100
}
</
div
>
</
div
>
}
</
div
>
:
""
}
<
iframe
className=
{
styles
.
prodIframe
}
src=
{
iframeUrl
}
/>
<
iframe
className=
{
styles
.
prodIframe
}
src=
{
iframeUrl
}
/>
<
motion
.
div
<
motion
.
div
...
@@ -194,7 +199,7 @@ class DetailPage extends React.Component<any, any> {
...
@@ -194,7 +199,7 @@ class DetailPage extends React.Component<any, any> {
</
div
>
</
div
>
<
input
<
input
className=
{
styles
.
bugInput
}
className=
{
styles
.
bugInput
}
placeholder=
"¥最低买入1.00元"
placeholder=
{
`¥最低买入${minBuyLimit / 100}元`
}
type=
'text'
type=
'text'
inputMode=
'decimal'
inputMode=
'decimal'
value=
{
buyInput
}
value=
{
buyInput
}
...
@@ -225,7 +230,7 @@ class DetailPage extends React.Component<any, any> {
...
@@ -225,7 +230,7 @@ class DetailPage extends React.Component<any, any> {
value=
{
sellInput
}
value=
{
sellInput
}
type=
'text'
type=
'text'
inputMode=
'decimal'
inputMode=
'decimal'
placeholder=
"最多可赎回0份"
placeholder=
{
`最多可赎回${tranche / 100}份`
}
onChange=
{
(
e
)
=>
this
.
handleInputChange
(
e
,
'sellInput'
)
}
onChange=
{
(
e
)
=>
this
.
handleInputChange
(
e
,
'sellInput'
)
}
/>
/>
<
Button
className=
{
styles
.
sellAll
}
onClick=
{
()
=>
{
<
Button
className=
{
styles
.
sellAll
}
onClick=
{
()
=>
{
...
@@ -240,7 +245,10 @@ class DetailPage extends React.Component<any, any> {
...
@@ -240,7 +245,10 @@ class DetailPage extends React.Component<any, any> {
>
模拟赎回
</
Button
>
>
模拟赎回
</
Button
>
</
motion
.
div
>
</
motion
.
div
>
</
motion
.
div
>
</
motion
.
div
>
<
Button
className=
{
classNames
(
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