v26110463 孕周福利对齐数胎动后台最终字段(cat/read_text/claim_text/pack_*/body),恢复分类筛选;预览也跟 giftEnabled 开关(用户:隐藏福利模块,?gift=1 临时看);福利卡头像挤字判断修正
This commit is contained in:
@@ -21,8 +21,9 @@
|
||||
'html.gift-off .shelf.gift2{display:none!important}';
|
||||
(document.head || de).appendChild(st);
|
||||
|
||||
/* 11-05 用户:「预览页面要放出来,正式上线的可以先隐藏」→ 预览站不跟 giftEnabled,一直显示;正式站照开关 */
|
||||
var pvSite = /\/mama-box-preview\//.test(location.pathname);
|
||||
/* 11-05 用户先说「预览页面要放出来」(预览不跟开关),同日又说「把底部的孕周福利模块隐藏起来」→ 预览也跟 giftEnabled 走;
|
||||
预览站想临时看效果用 ?gift=1 */
|
||||
var pvSite = /\/mama-box-preview\//.test(location.pathname) && /[?&#]gift=1/.test(location.search + location.hash);
|
||||
if (!pvSite) try { de.classList.toggle('gift-off', localStorage.getItem('mmbox.gift.v1') === '0'); } catch (e) {}
|
||||
if (!pvSite) fetch('/api/mp/public/mama-box/config', { cache: 'no-store' })
|
||||
.then(function (r) { return r.json(); })
|
||||
|
||||
Reference in New Issue
Block a user