好物价格改为金币在前 + 千分位 + 淡色兜豆,对齐商城本场好物 (v26100164)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user