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
d119c3b1
Commit
d119c3b1
authored
Jul 07, 2025
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
利率名称 对应写死
parent
2d6e4c69
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
15 deletions
+23
-15
main.ts
mock/main.ts
+1
-1
AppTools.ts
src/AppTools.ts
+8
-0
HomePage.less
src/pages/HomePage/HomePage.less
+1
-1
HomePage.tsx
src/pages/HomePage/HomePage.tsx
+5
-5
firstPop.jsx
src/panels/firstPop/firstPop.jsx
+6
-6
store.ts
src/store/store.ts
+2
-2
No files found.
mock/main.ts
View file @
d119c3b1
...
@@ -117,7 +117,7 @@ export default [
...
@@ -117,7 +117,7 @@ export default [
"mineProduct"
:
(
index
+
1
)
%
3
===
0
,
"mineProduct"
:
(
index
+
1
)
%
3
===
0
,
"realBuyJumpUrl"
:
`https://www.baidu.com?t=
${(
index
+
1
)}
`
,
"realBuyJumpUrl"
:
`https://www.baidu.com?t=
${(
index
+
1
)}
`
,
"rate"
:
502
,
// 利率(需要除100展示)
"rate"
:
502
,
// 利率(需要除100展示)
"
rateName"
:
`年化收益率
${
index
+
1
}
`
,
// 利率名称
"
type"
:
index
===
0
?
'0'
:
'1'
,
// 产品类型(0-非现金,1-现金)
}
}
}),
}),
"codeList"
:
[
"codeList"
:
[
...
...
src/AppTools.ts
View file @
d119c3b1
...
@@ -19,6 +19,14 @@ export const PRODUCT_TYPE = {
...
@@ -19,6 +19,14 @@ export const PRODUCT_TYPE = {
CASH
:
1
,
CASH
:
1
,
}
}
/** 产品类型 */
export
const
RATE_NAME
=
{
/** 非现金 */
[
PRODUCT_TYPE
.
NON_CASH
]:
'年化收益率1TODO'
,
/** 现金 */
[
PRODUCT_TYPE
.
CASH
]:
'年化收益率2TODO'
,
}
/** 渠道 */
/** 渠道 */
export
const
CHANNEL
=
{
export
const
CHANNEL
=
{
/** 华夏理财 */
/** 华夏理财 */
...
...
src/pages/HomePage/HomePage.less
View file @
d119c3b1
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
.sparkBg("homePage/sign_section_bg.png");
.sparkBg("homePage/sign_section_bg.png");
}
}
.sign_tips {
.sign_tips {
width:
3
34px;
width:
4
34px;
height: 24px;
height: 24px;
left: 29px;
left: 29px;
top: 89px;
top: 89px;
...
...
src/pages/HomePage/HomePage.tsx
View file @
d119c3b1
...
@@ -8,7 +8,7 @@ import { PageCtrl } from '@/core/ctrls/PageCtrl';
...
@@ -8,7 +8,7 @@ import { PageCtrl } from '@/core/ctrls/PageCtrl';
import
{
ModalCtrl
}
from
'@/core/ctrls/ModalCtrl'
;
import
{
ModalCtrl
}
from
'@/core/ctrls/ModalCtrl'
;
import
{
_asyncThrottle
,
formatThousand
}
from
'@/utils/utils'
;
import
{
_asyncThrottle
,
formatThousand
}
from
'@/utils/utils'
;
import
RecordPage
from
'../RecordPage/RecordPage'
;
import
RecordPage
from
'../RecordPage/RecordPage'
;
import
{
diffJump
}
from
'@/AppTools'
;
import
{
diffJump
,
RATE_NAME
}
from
'@/AppTools'
;
import
API
from
'@/api'
;
import
API
from
'@/api'
;
import
DetailPage
from
'../DetailPage/DetailPage'
;
import
DetailPage
from
'../DetailPage/DetailPage'
;
import
ResPage
from
'../ResPage/ResPage'
;
import
ResPage
from
'../ResPage/ResPage'
;
...
@@ -201,7 +201,7 @@ class HomePage extends React.Component<any, any> {
...
@@ -201,7 +201,7 @@ class HomePage extends React.Component<any, any> {
</
div
>
</
div
>
</
div
>
}
</
div
>
}
{
/* 推荐产品 */
}
{
/* 推荐产品 */
}
<
div
className=
"recommend_products"
>
{
!!
rProductList
?.
length
&&
<
div
className=
"recommend_products"
>
<
span
className=
"r_products_title"
></
span
>
<
span
className=
"r_products_title"
></
span
>
<
div
className=
"r_products_list"
>
<
div
className=
"r_products_list"
>
{
rProductList
?.
map
((
item
,
index
)
=>
(
{
rProductList
?.
map
((
item
,
index
)
=>
(
...
@@ -217,7 +217,7 @@ class HomePage extends React.Component<any, any> {
...
@@ -217,7 +217,7 @@ class HomePage extends React.Component<any, any> {
</
div
>
</
div
>
))
}
))
}
</
div
>
</
div
>
</
div
>
</
div
>
}
<
div
className=
"bottom_products"
>
<
div
className=
"bottom_products"
>
{
curTab
==
1
&&
<
span
className=
"tab1_bg"
></
span
>
}
{
curTab
==
1
&&
<
span
className=
"tab1_bg"
></
span
>
}
{
curTab
==
2
&&
<
span
className=
"tab2_bg"
></
span
>
}
{
curTab
==
2
&&
<
span
className=
"tab2_bg"
></
span
>
}
...
@@ -228,8 +228,8 @@ class HomePage extends React.Component<any, any> {
...
@@ -228,8 +228,8 @@ class HomePage extends React.Component<any, any> {
<
div
className=
"b_product_item"
key=
{
`r_prdct_${index}`
}
onClick=
{
()
=>
this
.
jumpRealDetailHandle
(
item
.
realBuyJumpUrl
)
}
>
<
div
className=
"b_product_item"
key=
{
`r_prdct_${index}`
}
onClick=
{
()
=>
this
.
jumpRealDetailHandle
(
item
.
realBuyJumpUrl
)
}
>
<
span
className=
"b_product_name"
>
{
item
.
name
}
</
span
>
<
span
className=
"b_product_name"
>
{
item
.
name
}
</
span
>
<
div
className=
"b_product_rate"
>
<
div
className=
"b_product_rate"
>
<
span
className=
"b_product_rate_value"
>
{
(
item
.
rate
/
100
).
toFixed
(
2
)
}
%
</
span
>
{
item
.
rate
&&
<
span
className=
"b_product_rate_value"
>
{
(
item
.
rate
/
100
).
toFixed
(
2
)
}
%
</
span
>
}
<
span
className=
"b_product_rate_label"
>
{
item
.
rateName
}
</
span
>
<
span
className=
"b_product_rate_label"
>
{
RATE_NAME
[
item
.
type
]
||
'年化收益率'
}
</
span
>
</
div
>
</
div
>
<
div
className=
"b_product_shu"
>
<
div
className=
"b_product_shu"
>
<
span
className=
"b_product_shu_value"
>
{
item
.
shenShuGuiZei
}
</
span
>
<
span
className=
"b_product_shu_value"
>
{
item
.
shenShuGuiZei
}
</
span
>
...
...
src/panels/firstPop/firstPop.jsx
View file @
d119c3b1
...
@@ -21,10 +21,10 @@ class FirstPop extends React.Component {
...
@@ -21,10 +21,10 @@ class FirstPop extends React.Component {
// 确认提交
// 确认提交
handleSubmit
=
_asyncThrottle
(()
=>
{
handleSubmit
=
_asyncThrottle
(()
=>
{
const
{
agreement
Text
}
=
this
.
props
||
{};
const
{
notify
Text
}
=
this
.
props
||
{};
if
(
!!
agreement
Text
&&
!
this
.
state
.
privacyChecked
)
{
// 未勾选隐私协议
if
(
!!
notify
Text
&&
!
this
.
state
.
privacyChecked
)
{
// 未勾选隐私协议
Toast
.
show
(
`请先勾选
${
agreement
Text
}
`
)
Toast
.
show
(
`请先勾选
${
notify
Text
}
`
)
return
false
return
false
}
}
ModalCtrl
.
closeModal
()
ModalCtrl
.
closeModal
()
...
@@ -37,15 +37,15 @@ class FirstPop extends React.Component {
...
@@ -37,15 +37,15 @@ class FirstPop extends React.Component {
render
()
{
render
()
{
const
{
privacyChecked
}
=
this
.
state
;
const
{
privacyChecked
}
=
this
.
state
;
const
{
experienceNum
,
agreement
Text
}
=
this
.
props
||
{};
const
{
experienceNum
,
notify
Text
}
=
this
.
props
||
{};
return
(<>
return
(<>
<
div
className=
"firstPop modal_center"
>
<
div
className=
"firstPop modal_center"
>
<
span
className=
"bg"
></
span
>
<
span
className=
"bg"
></
span
>
<
span
className=
"title"
>
理财体验金
</
span
>
<
span
className=
"title"
>
理财体验金
</
span
>
<
div
className=
"amount"
>
{
formatThousand
(
experienceNum
)
}
<
span
className=
"unit"
>
元
</
span
></
div
>
<
div
className=
"amount"
>
{
formatThousand
(
experienceNum
)
}
<
span
className=
"unit"
>
元
</
span
></
div
>
{
!!
agreement
Text
&&
<
div
className=
"check_box"
>
{
!!
notify
Text
&&
<
div
className=
"check_box"
>
<
div
className=
{
`check_icon ${privacyChecked ? 'checked' : ''}`
}
onClick=
{
()
=>
this
.
setState
({
privacyChecked
:
!
this
.
state
.
privacyChecked
})
}
></
div
>
<
div
className=
{
`check_icon ${privacyChecked ? 'checked' : ''}`
}
onClick=
{
()
=>
this
.
setState
({
privacyChecked
:
!
this
.
state
.
privacyChecked
})
}
></
div
>
<
div
className=
"check_text"
>
{
agreement
Text
}
</
div
>
<
div
className=
"check_text"
>
{
notify
Text
}
</
div
>
</
div
>
}
</
div
>
}
<
Button
className=
"happy_btn"
onClick=
{
this
.
handleSubmit
}
></
Button
>
<
Button
className=
"happy_btn"
onClick=
{
this
.
handleSubmit
}
></
Button
>
<
Button
className=
"close"
onClick=
{
this
.
close
}
></
Button
>
<
Button
className=
"close"
onClick=
{
this
.
close
}
></
Button
>
...
...
src/store/store.ts
View file @
d119c3b1
...
@@ -69,7 +69,7 @@ class Store {
...
@@ -69,7 +69,7 @@ class Store {
}
>
,
}
>
,
// 首次体验金弹窗
// 首次体验金弹窗
firstMoneyPop
?:
{
firstMoneyPop
?:
{
agreement
Text
?:
string
,
notify
Text
?:
string
,
experienceNum
?:
number
,
experienceNum
?:
number
,
},
},
// 模拟资产
// 模拟资产
...
@@ -105,7 +105,7 @@ class Store {
...
@@ -105,7 +105,7 @@ class Store {
realBuyJumpUrl
?:
string
,
realBuyJumpUrl
?:
string
,
mineProduct
?:
boolean
,
// 我的产品(true是)
mineProduct
?:
boolean
,
// 我的产品(true是)
rate
?:
number
,
// 利率(需要除100展示)
rate
?:
number
,
// 利率(需要除100展示)
rateName
?:
string
,
// 利率名称
type
?:
string
,
// 产品类型(0-非现金,1-现金)
}
>
,
}
>
,
// 待存储产品code
// 待存储产品code
codeList
?:
Array
<
{
codeList
?:
Array
<
{
...
...
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