Commit a76f2a45 authored by 俞嘉婷's avatar 俞嘉婷

收益率名称

parent 9f914ebd
......@@ -19,12 +19,12 @@ export const PRODUCT_TYPE = {
CASH: 1,
}
/** 产品类型 */
/** 产品收益率名称 */
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
* @returns
*/
export function queryAppFundDetail(fund) {
const fundcode = fund?.fundCode || ''
const fundcode = fund?.code || ''
console.info('获取基金产品详情 ', fundcode);
return new Promise(resolve => {
// app获取
......@@ -71,8 +71,8 @@ export function queryAppFundDetail(fund) {
newDate: result.newDate, // 当前日期
totalnetValue: result.totalnetvalue, // 累计净值
pernetValue: result.pernetvalue, // 单位净值
incomeRate: fund?.productType == 1 ? result.incomeRate : result.incomeRateO, // 收益率
incomeRateName: fund?.productType == 1 ? result.incomeRateName : result.incomeRateNameO, // 收益率名称
incomeRate: fund?.type == PRODUCT_TYPE.CASH ? result.incomeRate : result.incomeRateO, // 收益率
incomeRateName: fund?.type == PRODUCT_TYPE.CASH ? result.incomeRateName : result.incomeRateNameO, // 收益率名称
path: result.path, // 产品详情地址
})
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment