好物价格改为金币在前 + 千分位 + 淡色兜豆,对齐商城本场好物 (v26100164)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<title>兜爸心选 · 孕育陪伴</title>
|
||||
<!-- V:26100163 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
||||
<!-- V:26100164 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
||||
<link rel="stylesheet" href="mama-box.css">
|
||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||
<!-- 共享助手:授权/跳商城/位置上报(分享卡片同步,见 docs/h5-auth-standard.md 第四节) -->
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
|
||||
var VER = '26100163';
|
||||
var VER = '26100164';
|
||||
const $ = (s, c) => (c || document).querySelector(s);
|
||||
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
|
||||
|
||||
@@ -4501,7 +4501,12 @@
|
||||
if (more && g.badge) { const bd = document.createElement('i'); bd.className = 'gi-badge'; bd.textContent = g.badge; pic.appendChild(bd); }
|
||||
if (more && g.stock <= 5) { const st = document.createElement('i'); st.className = 'gi-left'; st.textContent = '仅剩 ' + g.stock + ' 件'; pic.appendChild(st); }
|
||||
const nm = document.createElement('span'); nm.className = 'bd-nm'; nm.textContent = g.name || '';
|
||||
const pr = document.createElement('b'); pr.textContent = g.price + ' 兜豆';
|
||||
/* 价格和兜豆商城「本场好物」同款:小金币在前 + 千分位数字 + 淡色「兜豆」(2026-10-02 用户要求) */
|
||||
const pr = document.createElement('b'); pr.className = 'gi-pr';
|
||||
const coin = document.createElement('i'); coin.className = 'gi-coin';
|
||||
const num = document.createElement('span'); num.textContent = String(g.price).replace(/\B(?=(\d{3})+$)/g, ',');
|
||||
const unit = document.createElement('small'); unit.textContent = '兜豆';
|
||||
pr.append(coin, num, unit);
|
||||
it.append(pic, nm, pr);
|
||||
return it;
|
||||
}
|
||||
|
||||
@@ -3695,3 +3695,9 @@ a.skip:focus{left:16px;top:16px}
|
||||
.exch-wrap .exch-mod .exch-strip{padding:2px 0 4px}
|
||||
.exch-wrap .ex-goods{margin:8px -26px 0;padding:6px 26px 4px;scroll-padding-left:26px}
|
||||
.exch-wrap .ex-it{background:#FFF6F3;box-shadow:inset 0 0 0 1px #F6E6E0}
|
||||
|
||||
/* 好物价格:小金币 + 1,800 + 兜豆(对齐兜豆商城「本场好物」.price 的写法) */
|
||||
.gi-pr{display:flex;align-items:center;gap:3px;margin-top:1px}
|
||||
.gi-pr .gi-coin{flex:none;width:15px;height:15px;background:url(assets/img/dou-coin.svg?v=20261002) center/contain no-repeat}
|
||||
.gi-pr span{font-family:"DIN Alternate","DIN Condensed","Bahnschrift","Arial Rounded MT Bold",Arial,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-size:15px;font-weight:800;color:var(--ink)}
|
||||
.gi-pr small{font-size:10.5px;font-weight:600;color:var(--ink);opacity:.55}
|
||||
|
||||
Reference in New Issue
Block a user