diff --git a/pages.config.ts b/pages.config.ts index 2177d27..9b0a66c 100644 --- a/pages.config.ts +++ b/pages.config.ts @@ -12,7 +12,7 @@ export default defineUniPages({ { path: 'pages/agent-service-agreement', style: { navigationBarTitleText: '信息技术服务合同', navigationStyle: 'default' } }, { path: 'pages/agent-vip', auth: true, style: { navigationBarTitleText: '代理会员' } }, { path: 'pages/agent-vip-apply', auth: true, style: { navigationBarTitleText: 'VIP代理申请' } }, - { path: 'pages/agent-vip-config', auth: true, style: { navigationBarTitleText: '代理会员报告配置' } }, + { path: 'pages/agent-vip-config', auth: true, style: { navigationBarTitleText: '代理报告配置' } }, { path: 'pages/authorization', style: { navigationBarTitleText: '授权书', navigationStyle: 'default' } }, { path: 'pages/help', style: { navigationBarTitleText: '帮助中心' } }, { path: 'pages/help-detail', style: { navigationBarTitleText: '帮助详情' } }, diff --git a/src/utils/promotionPricing.js b/src/utils/promotionPricing.js index 979a8bd..fb2c447 100644 --- a/src/utils/promotionPricing.js +++ b/src/utils/promotionPricing.js @@ -3,14 +3,14 @@ export function safeTruncate(num, decimals = 2) { return '0.00' const factor = 10 ** decimals - const scaled = Math.trunc(num * factor) + const scaled = Math.round(num * factor) return (scaled / factor).toFixed(decimals) } function toTruncatedCents(num) { if (Number.isNaN(num) || !Number.isFinite(num)) return 0 - return Math.trunc((num + Number.EPSILON) * 100) + return Math.round(num * 100) } function centsToFixed(cents) {