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
a76f2a45
Commit
a76f2a45
authored
Jul 08, 2025
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收益率名称
parent
9f914ebd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
AppTools.ts
src/AppTools.ts
+6
-6
No files found.
src/AppTools.ts
View file @
a76f2a45
...
@@ -19,12 +19,12 @@ export const PRODUCT_TYPE = {
...
@@ -19,12 +19,12 @@ export const PRODUCT_TYPE = {
CASH
:
1
,
CASH
:
1
,
}
}
/** 产品
类型
*/
/** 产品
收益率名称
*/
export
const
RATE_NAME
=
{
export
const
RATE_NAME
=
{
/** 非现金 */
/** 非现金 */
[
PRODUCT_TYPE
.
NON_CASH
]:
'
年化收益率1TODO
'
,
[
PRODUCT_TYPE
.
NON_CASH
]:
'
成立以来年化
'
,
/** 现金 */
/** 现金 */
[
PRODUCT_TYPE
.
CASH
]:
'
年化收益率2TODO
'
,
[
PRODUCT_TYPE
.
CASH
]:
'
七日年化
'
,
}
}
/** 渠道 */
/** 渠道 */
...
@@ -57,7 +57,7 @@ export const IS_OTHER_APP = ![CHANNEL.HXBANK, CHANNEL.HXLC].includes(CFG.channel
...
@@ -57,7 +57,7 @@ export const IS_OTHER_APP = ![CHANNEL.HXBANK, CHANNEL.HXLC].includes(CFG.channel
* @returns
* @returns
*/
*/
export
function
queryAppFundDetail
(
fund
)
{
export
function
queryAppFundDetail
(
fund
)
{
const
fundcode
=
fund
?.
fundC
ode
||
''
const
fundcode
=
fund
?.
c
ode
||
''
console
.
info
(
'获取基金产品详情 '
,
fundcode
);
console
.
info
(
'获取基金产品详情 '
,
fundcode
);
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
// app获取
// app获取
...
@@ -71,8 +71,8 @@ export function queryAppFundDetail(fund) {
...
@@ -71,8 +71,8 @@ export function queryAppFundDetail(fund) {
newDate
:
result
.
newDate
,
// 当前日期
newDate
:
result
.
newDate
,
// 当前日期
totalnetValue
:
result
.
totalnetvalue
,
// 累计净值
totalnetValue
:
result
.
totalnetvalue
,
// 累计净值
pernetValue
:
result
.
pernetvalue
,
// 单位净值
pernetValue
:
result
.
pernetvalue
,
// 单位净值
incomeRate
:
fund
?.
productType
==
1
?
result
.
incomeRate
:
result
.
incomeRateO
,
// 收益率
incomeRate
:
fund
?.
type
==
PRODUCT_TYPE
.
CASH
?
result
.
incomeRate
:
result
.
incomeRateO
,
// 收益率
incomeRateName
:
fund
?.
productType
==
1
?
result
.
incomeRateName
:
result
.
incomeRateNameO
,
// 收益率名称
incomeRateName
:
fund
?.
type
==
PRODUCT_TYPE
.
CASH
?
result
.
incomeRateName
:
result
.
incomeRateNameO
,
// 收益率名称
path
:
result
.
path
,
// 产品详情地址
path
:
result
.
path
,
// 产品详情地址
})
})
}
else
{
}
else
{
...
...
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