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
a8124b12
Commit
a8124b12
authored
Jul 28, 2025
by
zhangyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
cad79195
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
13 deletions
+17
-13
completedBtn.png
src/assets/taskPop/completedBtn.png
+0
-0
receiveBtn.png
src/assets/taskPop/receiveBtn.png
+0
-0
DetailPage.tsx
src/pages/DetailPage/DetailPage.tsx
+10
-10
HomePage.tsx
src/pages/HomePage/HomePage.tsx
+5
-1
share.ts
src/utils/share.ts
+2
-2
No files found.
src/assets/taskPop/completedBtn.png
View replaced file @
cad79195
View file @
a8124b12
3.56 KB
|
W:
|
H:
6.57 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/taskPop/receiveBtn.png
View replaced file @
cad79195
View file @
a8124b12
5.82 KB
|
W:
|
H:
9.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/pages/DetailPage/DetailPage.tsx
View file @
a8124b12
...
...
@@ -87,13 +87,13 @@ class DetailPage extends React.Component<any, any> {
return
;
}
if
(
+
buyInput
*
100
<
this
.
state
.
minBuyLimit
)
{
if
(
+
buyInput
*
100
<
this
.
state
.
minBuyLimit
)
{
Toast
.
show
(
"低于起购价"
);
return
;
}
const
div
=
+
buyInput
*
100
/
this
.
state
.
minBuyLimit
;
if
(
div
!==
Math
.
floor
(
div
))
{
if
(
div
!==
Math
.
floor
(
div
))
{
Toast
.
show
(
"按起购倍数递增哦~"
);
return
;
}
...
...
@@ -185,14 +185,14 @@ class DetailPage extends React.Component<any, any> {
return
<
div
className=
{
styles
.
DetailPage
}
>
{
isBuyed
?
<
div
className=
{
styles
.
topArea
}
>
<
div
className=
{
styles
.
productName
}
>
{
productName
}
</
div
>
<
div
className=
{
styles
.
totalProfit
}
>
{
totalProfit
/
100
}
</
div
>
<
div
className=
{
styles
.
tranche
}
>
{
tranche
/
100
}
</
div
>
<
div
className=
{
styles
.
marketValue
}
>
{
marketValue
/
100
}
</
div
>
<
div
className=
{
styles
.
yesterdayProfit
}
>
{
yesterdayProfit
/
100
}
</
div
>
<
div
className=
{
styles
.
productName
}
>
{
productName
}
</
div
>
<
div
className=
{
styles
.
totalProfit
}
>
{
totalProfit
/
100
}
</
div
>
<
div
className=
{
styles
.
tranche
}
>
{
tranche
/
100
}
</
div
>
<
div
className=
{
styles
.
marketValue
}
>
{
marketValue
/
100
}
</
div
>
<
div
className=
{
styles
.
yesterdayProfit
}
>
{
yesterdayProfit
/
100
}
</
div
>
</
div
>
:
<
div
className=
{
styles
.
topArea2
}
>
<
div
className=
{
styles
.
topBg
}
/>
<
div
className=
{
styles
.
topBg
}
/>
<
div
className=
{
styles
.
productName
}
>
{
productName
}
</
div
>
</
div
>
}
...
...
@@ -262,7 +262,7 @@ class DetailPage extends React.Component<any, any> {
>
<
div
className=
{
styles
.
sellInfo
}
>
<
div
>
赎回份额
</
div
>
<
span
>
持有份额:
{
tranche
/
100
}
份
</
span
>
<
span
>
持有份额:
{
tranche
/
100
}
份
</
span
>
</
div
>
<
div
className=
{
styles
.
sellInput
}
>
<
input
...
...
@@ -274,7 +274,7 @@ class DetailPage extends React.Component<any, any> {
/>
<
Button
className=
{
styles
.
sellAll
}
onClick=
{
()
=>
{
this
.
setState
({
sellInput
:
tranche
/
100
,
sellInput
:
tranche
/
100
,
});
}
}
>
全部
</
Button
>
</
div
>
...
...
src/pages/HomePage/HomePage.tsx
View file @
a8124b12
...
...
@@ -23,6 +23,7 @@ import { SvgaPlayer } from '@grace/svgaplayer';
import
mainPageTitle
from
'../../assets/svga/mainPageTitle.svga'
;
import
redFenwei
from
'../../assets/svga/redFenwei.svga'
;
import
RedPackCountPanel
from
'@/panels/redPackCountPanel/index.jsx'
;
@
observer
class
HomePage
extends
React
.
Component
<
any
,
any
>
{
...
...
@@ -30,7 +31,10 @@ class HomePage extends React.Component<any, any> {
state
=
{
curTab
:
1
,
// 1-产品列表 2-我的持仓
unlockObj
:
{},
unlockObj
:
{
prizeImg
:
''
,
unlockedPrizeImg
:
''
},
order
:
0
,
backOrder
:
1
,
};
...
...
src/utils/share.ts
View file @
a8124b12
...
...
@@ -23,8 +23,8 @@ export function isIos() {
/** 判断微信环境 */
export
function
isWeChat
()
{
const
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
()
return
ua
.
match
(
/MicroMessenger/i
)
==
'micromessenger'
const
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
()
;
return
/micromessenger/i
.
test
(
ua
);
}
/**
* 初始化分享
...
...
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