nomadro/app/admin/miniprogram/page.tsx
eric 9f8fec1723 Ship portal PC/H5 acceptance, VIP ScrollReader, admin analytics and ops anchors.
Adds /api/health, ntfy notify on config save, /admin/analytics charts, and deploy smoke for miniprogram config/API.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 23:52:00 -05:00

99 lines
2.5 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client";
import styles from "../admin.module.css";
const MATRIX = [
{
product: "统一门户小程序",
path: "apps/miniprogram",
weapp: "脚手架",
tt: "脚手架",
xhs: "脚手架",
},
{
product: "导航 navmini",
path: "apps/navmini/{weapp,tt,xhs}",
weapp: "原生包",
tt: "原生包",
xhs: "静态包",
},
{
product: "电子书 ebook",
path: "apps/ebook/{wemini,dymini,redmini}",
weapp: "Taro4 + 虚拟支付",
tt: "Taro4",
xhs: "静态包",
},
{
product: "社群 nomadweb",
path: "apps/nomadweb/{wemini,dymini,redmini}",
weapp: "Taro4",
tt: "Taro4",
xhs: "静态包",
},
{
product: "VIP nomadvip",
path: "apps/miniprogram (VIP 页)",
weapp: "建设中",
tt: "待接",
xhs: "待接",
},
] as const;
const CHECKLIST = [
"微信开发者工具导入 apps/miniprogram 编译产物 dist/weapp",
"AppID = wxa55815dd741a540d(写 env,勿提交密钥)",
"虚拟支付:OfferID + 沙箱/现网 AppKey 配后端",
"抖音:pnpm build:tt → 抖音开发者工具",
"小红书:pnpm build:xhs 或使用垂直 redmini 静态包",
"验收:登录 → 下单 → requestVirtualPayment → 发货回调",
];
export default function AdminMiniprogramPage() {
return (
<>
<h1 className={styles.pageTitle}>📱 小程序矩阵</h1>
<p className={styles.pageLead}>
章程要求微信 / 抖音 / 小红书均基于 Taro。统一仓:
<code>apps/miniprogram</code>
</p>
<div className={styles.panel} style={{ overflowX: "auto", marginBottom: "1rem" }}>
<table className={styles.table}>
<thead>
<tr>
<th>产品</th>
<th>路径</th>
<th>微信</th>
<th>抖音</th>
<th>小红书</th>
</tr>
</thead>
<tbody>
{MATRIX.map((row) => (
<tr key={row.product}>
<td>{row.product}</td>
<td>
<code>{row.path}</code>
</td>
<td>{row.weapp}</td>
<td>{row.tt}</td>
<td>{row.xhs}</td>
</tr>
))}
</tbody>
</table>
</div>
<div className={styles.panel}>
<h3>部署前检查清单</h3>
<ul className={styles.listPlain}>
{CHECKLIST.map((c) => (
<li key={c}>{c}</li>
))}
</ul>
</div>
</>
);
}