fix(report): recommend by measured skin age and align admin results

This commit is contained in:
xsl
2026-10-12 00:23:57 +08:00
parent 7518dc2307
commit 0ec5e5dc32
21 changed files with 3010 additions and 1875 deletions
+3 -2
View File
@@ -15,6 +15,7 @@
{ tier: 3, match: '50+重塑精华', title: "1'me 主场精华 III", name: '以我从容有态构塑', image: 'assets/img/ui-20261009/product-50.png' }
];
var levelMap = { '预警': '改善', '改善': '良好', '良好': '优秀' };
var dimNames = { firm: '紧塑力', vita: '透亮感', stab: '稳韧力' };
function numeric(value) { return typeof value === 'number' && isFinite(value); }
function fill(template, vars) {
return template.replace(/\{([a-z_]+)\}/g, function(_, key) {
@@ -66,7 +67,7 @@
var chosen = views.filter(function(v) { return ranked.indexOf(v.source) >= 0 && v.advice; });
var care = chosen.map(function(v) { return { name: v.name, text: v.advice.care + v.advice.lifestyle }; });
var product = products.filter(function(p) { return p.match === vm.essence.name; })[0] || null;
return { version: Copy.version, dims: { firm: '紧塑力', vita: '透亮感', stab: '稳韧力' }, views: views, care: care, product: product };
return { version: Copy.version, dims: dimNames, views: views, care: care, product: product };
}
return { build: build, products: products, levelMap: levelMap };
return { build: build, products: products, levelMap: levelMap, dimNames: dimNames };
});