feat(dmepa): 全局统一规范DMEPA命名并优化游客与品酒师身份显示
这个提交包含在:
@@ -15,7 +15,7 @@ function assert(condition, testName, detail = '') {
|
||||
}
|
||||
|
||||
console.log("========================================================");
|
||||
console.log(" 我的马豆页面高端重构与「马币市值」规范 TDD 自动化测试");
|
||||
console.log(" 我的dmepa页面高端重构与「马币市值」规范 TDD 自动化测试");
|
||||
console.log("========================================================\n");
|
||||
|
||||
const madowPagePath = path.resolve(__dirname, '../uniapp/pages/commission/madow.vue');
|
||||
@@ -23,20 +23,20 @@ assert(fs.existsSync(madowPagePath), 'madow.vue 页面文件存在');
|
||||
|
||||
const content = fs.readFileSync(madowPagePath, 'utf-8');
|
||||
|
||||
// 1. 文案升级契约:原“汇率”升级为“马币市值”
|
||||
// 1. 文案升级契约:文案去掉“马币”二字,更新为“市值 1 dmepa”
|
||||
assert(
|
||||
content.includes('马币市值'),
|
||||
'页面包含核心文案「马币市值」'
|
||||
/市值\s*1\s*DMEPA\s*≈/i.test(content),
|
||||
'页面包含核心文案「市值 1 DMEPA ≈」'
|
||||
);
|
||||
assert(
|
||||
!content.includes('当前汇率'),
|
||||
'旧文案「当前汇率」已被完全替换移除'
|
||||
!content.includes('马币市值 1 dmepa'),
|
||||
'旧文案「马币市值」中“马币”已彻底移除'
|
||||
);
|
||||
|
||||
// 2. 资产卡片结构与指标展示
|
||||
assert(
|
||||
content.includes('formatInt') && content.includes('state.info.madow'),
|
||||
'卡片核心指标正确绑定持仓马豆且保留整数格式化 formatInt'
|
||||
'卡片核心指标正确绑定持仓dmepa且保留整数格式化 formatInt'
|
||||
);
|
||||
assert(
|
||||
content.includes('state.info.madow_rate'),
|
||||
@@ -53,8 +53,8 @@ assert(
|
||||
'规则说明升级为 su-popup 优雅弹窗结构'
|
||||
);
|
||||
assert(
|
||||
content.includes('马币市值') && (content.includes('随全平台订单') || content.includes('增值') || content.includes('核算')),
|
||||
'规则说明文字中涵盖马币市值与增值核算说明'
|
||||
(content.includes('市值') || content.includes('马币市值')) && (content.includes('随全平台订单') || content.includes('增值') || content.includes('核算')),
|
||||
'规则说明文字中涵盖市值与增值核算说明'
|
||||
);
|
||||
|
||||
// 4. 每日明细流水卡片与数据标签
|
||||
|
||||
在新工单中引用
屏蔽一个用户