Fix Douyin reader scroll fight and ship audit/content pack updates.
Stop aggressive chapter pin/progressive remount from yanking back to cover; restore booklet images and hide review-sensitive nav entry. Co-authored-by: Cursor <cursoragent@cursor.com>
@ -39,8 +39,8 @@ XHS_BOOK_DATA = ROOT / "xhs" / "tool" / "book" / "book-data.js"
|
|||||||
XHS_PORTAL = ROOT / "xhs" / "tool" / "portal-data.js"
|
XHS_PORTAL = ROOT / "xhs" / "tool" / "portal-data.js"
|
||||||
|
|
||||||
# —— 硬预算(字节 / 文件数)——
|
# —— 硬预算(字节 / 文件数)——
|
||||||
# 抖音单分包 ≤2MB:书页+文案约占 0.9~1.0MB,配图预算压到 0.95MB
|
# 抖音单分包 ≤2MB:书页+文案约占 0.45~0.55MB,配图尽量吃满剩余额度
|
||||||
TT_IMG_BUDGET = int(0.95 * 1024 * 1024)
|
TT_IMG_BUDGET = int(1.40 * 1024 * 1024)
|
||||||
# 小红书包 ≤10MB,且创服平台硬限 zip 内 ≤200 个文件
|
# 小红书包 ≤10MB,且创服平台硬限 zip 内 ≤200 个文件
|
||||||
# 预留:index/app/styles≈3 + icons≈65 → 配图上限约 120
|
# 预留:index/app/styles≈3 + icons≈65 → 配图上限约 120
|
||||||
XHS_IMG_BUDGET = int(2.8 * 1024 * 1024)
|
XHS_IMG_BUDGET = int(2.8 * 1024 * 1024)
|
||||||
@ -98,11 +98,12 @@ def soft_sanitize_audit_deep(value):
|
|||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
MAX_WIDTH = 480
|
MAX_WIDTH = 420
|
||||||
JPEG_Q = 52
|
JPEG_Q = 48
|
||||||
WEBP_Q = 48
|
WEBP_Q = 42
|
||||||
WORKERS = 14
|
WORKERS = 14
|
||||||
PLACEHOLDER = "> 🖼 (配图已省略 · 完整图见公众号「异度世界」)"
|
# 超额图:静默去掉,禁止「配图已省略 / 见公众号」引流占位
|
||||||
|
PLACEHOLDER = ""
|
||||||
|
|
||||||
MD_IMG_RE = re.compile(r"!\[([^\]]*)\]\((https?://[^)\s]+)\)")
|
MD_IMG_RE = re.compile(r"!\[([^\]]*)\]\((https?://[^)\s]+)\)")
|
||||||
HTML_IMG_RE = re.compile(
|
HTML_IMG_RE = re.compile(
|
||||||
|
|||||||
@ -25,7 +25,7 @@ export const COVER_BOOK = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"emoji": "🖼",
|
"emoji": "🖼",
|
||||||
"value": "114",
|
"value": "174",
|
||||||
"label": "精选图"
|
"label": "精选图"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
BIN
apps/miniprogram/tt/assets/tt-group-qr.png
Normal file
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 9.9 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
BIN
apps/miniprogram/tt/src/assets/tt-group-qr.png
Normal file
|
After Width: | Height: | Size: 84 KiB |
@ -1,24 +1,34 @@
|
|||||||
.md {
|
.md {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
overflow-x: hidden;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-html {
|
.md-html {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
overflow-x: hidden;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-img-wrap {
|
.md-img-wrap {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
margin: 12px 0;
|
margin: 12px 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-img-frame {
|
.md-img-frame {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
max-width: 100%;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-img-slot {
|
.md-img-slot {
|
||||||
|
|||||||
@ -1,15 +1,18 @@
|
|||||||
|
import { useEffect, useState } from 'react'
|
||||||
import Taro from '@tarojs/taro'
|
import Taro from '@tarojs/taro'
|
||||||
import { View, Text, Image } from '@tarojs/components'
|
import { View, Text, Image } from '@tarojs/components'
|
||||||
import qrImg from '../assets/wechat-oa-qr.png'
|
import ttGroupQr from '../assets/tt-group-qr.png'
|
||||||
|
import wechatOaQr from '../assets/wechat-oa-qr.png'
|
||||||
import './WechatOaModal.scss'
|
import './WechatOaModal.scss'
|
||||||
|
|
||||||
/** 公众号:异度世界(二维码固化于 assets/wechat-oa-qr.png) */
|
/** 公众号:异度世界 */
|
||||||
export const WECHAT_OA_NAME = '异度世界'
|
export const WECHAT_OA_NAME = '异度世界'
|
||||||
export const WECHAT_OA_KEYWORD = '加群'
|
export const WECHAT_OA_KEYWORD = '加群'
|
||||||
|
|
||||||
const QR_SRC = qrImg as string
|
const TT_QR = ttGroupQr as string
|
||||||
|
const OA_QR = wechatOaQr as string
|
||||||
|
|
||||||
/** 抖音无微信关注组件;展示二维码 + 文案引导 */
|
/** 默认抖音群;点「稍后再说」切换为公众号关注引导 */
|
||||||
export function WechatOaModal({
|
export function WechatOaModal({
|
||||||
open,
|
open,
|
||||||
onClose,
|
onClose,
|
||||||
@ -17,10 +20,25 @@ export function WechatOaModal({
|
|||||||
open: boolean
|
open: boolean
|
||||||
onClose: () => void
|
onClose: () => void
|
||||||
}) {
|
}) {
|
||||||
|
const [showOa, setShowOa] = useState(false)
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!open) setShowOa(false)
|
||||||
|
}, [open])
|
||||||
|
|
||||||
if (!open) return null
|
if (!open) return null
|
||||||
|
|
||||||
|
const qrSrc = showOa ? OA_QR : TT_QR
|
||||||
const previewQr = () => {
|
const previewQr = () => {
|
||||||
void Taro.previewImage({ urls: [QR_SRC], current: QR_SRC })
|
void Taro.previewImage({ urls: [qrSrc], current: qrSrc })
|
||||||
|
}
|
||||||
|
|
||||||
|
const onLater = () => {
|
||||||
|
if (!showOa) {
|
||||||
|
setShowOa(true)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
onClose()
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -30,26 +48,44 @@ export function WechatOaModal({
|
|||||||
<View className='woa-close' onClick={onClose}>
|
<View className='woa-close' onClick={onClose}>
|
||||||
<Text>✕</Text>
|
<Text>✕</Text>
|
||||||
</View>
|
</View>
|
||||||
<Text className='woa-eyebrow'>保持连接</Text>
|
|
||||||
<Text className='woa-title'>
|
<Text className='woa-eyebrow'>{showOa ? '保持连接' : '社群'}</Text>
|
||||||
关注 <Text className='woa-accent'>{WECHAT_OA_NAME}</Text>
|
{showOa ? (
|
||||||
</Text>
|
<Text className='woa-title'>
|
||||||
|
关注 <Text className='woa-accent'>{WECHAT_OA_NAME}</Text>
|
||||||
|
</Text>
|
||||||
|
) : (
|
||||||
|
<Text className='woa-title'>
|
||||||
|
加入 <Text className='woa-accent'>抖音群</Text>
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
|
|
||||||
<Text className='woa-lead'>
|
<Text className='woa-lead'>
|
||||||
获取出海导航、游民社群与会员更新。
|
{showOa
|
||||||
|
? '获取出海导航、游民社群与会员更新。'
|
||||||
|
: '扫码进群,获取游民社群与活动更新。'}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<View className='woa-qr-wrap'>
|
<View className='woa-qr-wrap'>
|
||||||
<Image
|
<Image
|
||||||
className='woa-qr'
|
className='woa-qr'
|
||||||
src={QR_SRC}
|
src={qrSrc}
|
||||||
mode='aspectFit'
|
mode='aspectFit'
|
||||||
onClick={previewQr}
|
onClick={previewQr}
|
||||||
/>
|
/>
|
||||||
<Text className='woa-qr-hint'>搜索公众号「{WECHAT_OA_NAME}」</Text>
|
{showOa ? (
|
||||||
<Text className='woa-qr-kw'>
|
<>
|
||||||
关注后私信关键词「{WECHAT_OA_KEYWORD}」
|
<Text className='woa-qr-hint'>搜索公众号「{WECHAT_OA_NAME}」</Text>
|
||||||
</Text>
|
<Text className='woa-qr-kw'>
|
||||||
|
关注后私信关键词「{WECHAT_OA_KEYWORD}」
|
||||||
|
</Text>
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<Text className='woa-qr-hint'>抖音扫一扫 · 加入社群</Text>
|
||||||
|
)}
|
||||||
</View>
|
</View>
|
||||||
<View className='woa-later' onClick={onClose}>
|
|
||||||
|
<View className='woa-later' onClick={onLater}>
|
||||||
<Text>稍后再说</Text>
|
<Text>稍后再说</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@ -25,7 +25,7 @@ export const COVER_BOOK = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"emoji": "🖼",
|
"emoji": "🖼",
|
||||||
"value": "114",
|
"value": "174",
|
||||||
"label": "精选图"
|
"label": "精选图"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -38,7 +38,8 @@ export const DEFAULT_REMOTE_CONFIG: NomadroRemoteConfig = {
|
|||||||
updatedAt: '2026-03-28T00:00:00.000Z',
|
updatedAt: '2026-03-28T00:00:00.000Z',
|
||||||
modules: {
|
modules: {
|
||||||
home: { enabled: true, title: '首页', tabLabel: '首页' },
|
home: { enabled: true, title: '首页', tabLabel: '首页' },
|
||||||
nav: { enabled: true, title: '出海导航', tabLabel: '导航' },
|
/** 抖音拒审:隐藏入口,保留 pages/nav 与 links 数据,勿删 */
|
||||||
|
nav: { enabled: false, title: '出海导航', tabLabel: '导航', note: 'tt audit hide' },
|
||||||
book: { enabled: true, title: '数字游民小册', tabLabel: '小册' },
|
book: { enabled: true, title: '数字游民小册', tabLabel: '小册' },
|
||||||
community: { enabled: true, title: '旅居社群', tabLabel: '社群' },
|
community: { enabled: true, title: '旅居社群', tabLabel: '社群' },
|
||||||
destinations: { enabled: true, title: '目的地' },
|
destinations: { enabled: true, title: '目的地' },
|
||||||
@ -48,6 +49,7 @@ export const DEFAULT_REMOTE_CONFIG: NomadroRemoteConfig = {
|
|||||||
flags: {
|
flags: {
|
||||||
/** 抖音端无虚拟支付能力:默认免费,勿拉起支付 */
|
/** 抖音端无虚拟支付能力:默认免费,勿拉起支付 */
|
||||||
payEnabled: false,
|
payEnabled: false,
|
||||||
|
/** 加群弹窗:默认抖音群二维码(公众号仅隐蔽唤出) */
|
||||||
socialFollow: true,
|
socialFollow: true,
|
||||||
offlineBadge: false,
|
offlineBadge: false,
|
||||||
},
|
},
|
||||||
|
|||||||
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 9.7 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 9.9 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 8.2 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 13 KiB |