首页兑换模块标题改「攒兜豆好物免费兑」,角标用去兑换同款色 (v26100193)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 13:08:30 +00:00
parent 05db23eba1
commit 3021a2821f
3 changed files with 10 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
(function () {
'use strict';
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
var VER = '26100192';
var VER = '26100193';
const $ = (s, c) => (c || document).querySelector(s);
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
@@ -4848,7 +4848,10 @@
从商城返回(页面重新可见)时再刷一次,兑换后余额能跟上。 */
let douToken = '';
function setExchSub(t) {
$$('#meExchSub, #homeExchSub').forEach(function (el) { el.textContent = t; });
/* 2026-10-02 首页标题改成「攒兜豆好物免费兑」,副标题的默认文案不能再重复它 */
$$('#meExchSub, #homeExchSub').forEach(function (el) {
el.textContent = (el.id === 'homeExchSub' && t === '攒兜豆,好物免费兑') ? '做孕期任务就能攒兜豆' : t;
});
}
function douImg(g) {
return /^https?:/.test(g.img || '') ? g.img : EXCH_URL + String(g.img || '').replace(/^\//, '');