diff --git a/h5/mine/index.html b/h5/mine/index.html index ce851e4..af834b3 100644 --- a/h5/mine/index.html +++ b/h5/mine/index.html @@ -5,8 +5,8 @@ - -比价APP 高保真原型 (外卖版) + +我的 · 傻瓜比价 +
9:41
@@ -7767,5 +7775,25 @@ document.addEventListener('DOMContentLoaded', () => { else updateWelfareCheckinTabDot(); })(); + diff --git a/h5/records/index.html b/h5/records/index.html index 1708122..82592cb 100644 --- a/h5/records/index.html +++ b/h5/records/index.html @@ -318,7 +318,7 @@ body.transitioning-tab { /* no animation */ } .select-task-panel .fb-task-card { margin: 0; } .device.selecting .select-task-panel { display: block; } /* 【去框】单选态滚动区 bottom 76→0(action bar 改为 fixed 浮在视口底) */ -.device.selecting .hist-scroll { top: 198px; bottom: 0; padding-bottom: 92px; } +.device.selecting .hist-scroll { top: 154px; bottom: 0; padding-bottom: 92px; } /* 单选模式顶部 3 步指引 */ .device.selecting .tab-bar { display: none; } @@ -1783,5 +1783,25 @@ async function submitFeedback() { else updateWelfareCheckinTabDot(); })(); + diff --git a/h5/reports/index.html b/h5/reports/index.html index 8de4cde..4e095eb 100644 --- a/h5/reports/index.html +++ b/h5/reports/index.html @@ -169,7 +169,9 @@ body { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; - white-space: nowrap; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; } .badge { @@ -347,9 +349,9 @@ body { // 原封不动拷进本页 logos/(保留原型文件名 -waimai/-shanguang,与原型逐字一致)。 // 原最低价 / 上报价的平台是动态的(original_platform_id / reported_platform_id),先归一化再取图。 var PLATFORM_LOGOS = { - 'meituan-waimai': 'logos/meituan-waimai.png', - 'taobao-shanguang': 'logos/taobao-shanguang.png', - 'jd-waimai': 'logos/jd-waimai.png', + 'meituan-waimai': 'logos/meituan.png', + 'taobao-shanguang': 'logos/taobao.png', + 'jd-waimai': 'logos/jd.png', }; // ===== 平台别名归一化(复用「比价记录页」PLATFORM_ALIASES 思路)===== @@ -370,6 +372,12 @@ function platformLogo(idOrName) { var id = resolvePlatformId(idOrName); return id ? PLATFORM_LOGOS[id] : ''; } +// 平台父名(展示:子平台→父名,美团外卖→美团 / 淘宝闪购→淘宝 / 京东外卖→京东,对齐 history 卡片) +var PLATFORM_NAMES = { 'meituan-waimai': '美团', 'taobao-shanguang': '淘宝', 'jd-waimai': '京东' }; +function platformDisplayName(idOrName, fallback) { + var id = resolvePlatformId(idOrName); + return (id && PLATFORM_NAMES[id]) || fallback || ''; +} // ===== 状态映射:后端 status → badge class + 文案 + 图标 ===== // 图标 svg 照搬原型三个 badge 内对应的 svg(审核中=时钟 / 已通过=对勾 / 未通过=叉)。 @@ -473,7 +481,7 @@ function renderCompareRow(kind, platformId, platformName, cents) { '' + label + '' + '' + (logo ? '' : '') + - '' + esc(platformName || '') + '' + + '' + esc(platformDisplayName(platformId || platformName, platformName)) + '' + '' + '¥' + fenToYuan(cents) + '' + '
'; @@ -597,5 +605,25 @@ window.goBackToProfile = goBackToProfile; })(); + diff --git a/h5/reports/logos/jd.png b/h5/reports/logos/jd.png new file mode 100644 index 0000000..ed939da Binary files /dev/null and b/h5/reports/logos/jd.png differ diff --git a/h5/reports/logos/meituan.png b/h5/reports/logos/meituan.png new file mode 100644 index 0000000..71cede9 Binary files /dev/null and b/h5/reports/logos/meituan.png differ diff --git a/h5/reports/logos/taobao.png b/h5/reports/logos/taobao.png new file mode 100644 index 0000000..7e0f742 Binary files /dev/null and b/h5/reports/logos/taobao.png differ