fix(h5): show raw skin age, support Harmony touch pickers and add WeChat logout

This commit is contained in:
xsl
2026-10-13 16:12:54 +08:00
parent 4e42e33994
commit e71368db6d
23 changed files with 1984 additions and 1325 deletions
+2 -4
View File
@@ -514,10 +514,8 @@ function photoUrls(rec) {
/* 列表用的字段子集(不含 raw_json 与文案全文) */
function displaySkinAge(rec) {
if (Object.prototype.hasOwnProperty.call(rec, 'skin_age_display')) return rec.skin_age_display;
// 旧记录没有展示值,沿用生成时的规则,不重算推荐或改写文件。
if (rec.skin_age == null || rec.real_age == null) return rec.skin_age;
return Math.min(Math.max(rec.skin_age, rec.real_age - 3), rec.real_age + 3);
// Match H5 even for old records; do not rewrite historical files.
return SkinScore.reportSkinAge({ skinAgeRaw: rec.skin_age });
}
function listItem(rec) {
return {