更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -1,24 +1,14 @@
|
||||
/**
|
||||
* 内容模型:列表页 / 详情页 / 单页共用
|
||||
* 与后端 CMS(文章、产品、解决方案)字段保持一一对应的思路,
|
||||
* 后续接入接口时只需替换 data 层的数据来源。
|
||||
*/
|
||||
|
||||
/** 栏目标识 */
|
||||
export type SectionKey = "news" | "products" | "solutions" | "cases" | "events";
|
||||
|
||||
/** 分类(支持父子树:顶级分类的 parent 为 "" 或 "0") */
|
||||
export interface Category {
|
||||
slug: string;
|
||||
name: string;
|
||||
desc?: string;
|
||||
/** 父级分类 slug,顶级为空串 */
|
||||
parent?: string;
|
||||
/** 子分类,叶子节点为空数组 */
|
||||
children?: Category[];
|
||||
}
|
||||
|
||||
/** 封面配色(暂用渐变替代实拍图) */
|
||||
export type CoverTone = "navy" | "blue" | "teal" | "indigo";
|
||||
|
||||
export interface Feature {
|
||||
@@ -55,9 +45,7 @@ export interface QuickLink {
|
||||
path: string;
|
||||
}
|
||||
|
||||
/** 正文区块:详情页与单页共用同一套渲染器 */
|
||||
export type Block =
|
||||
/** 后端富文本正文(平台「文章管理」录入的 HTML),由 BlockRenderer 原样渲染 */
|
||||
| { type: "html"; html: string }
|
||||
| { type: "heading"; text: string; sub?: string }
|
||||
| { type: "paragraph"; text: string }
|
||||
@@ -71,13 +59,10 @@ export type Block =
|
||||
| { type: "links"; items: QuickLink[] }
|
||||
| { type: "table"; head: string[]; rows: string[][] };
|
||||
|
||||
/** 一条内容(新闻 / 产品 / 方案 / 案例 / 活动) */
|
||||
export interface ContentItem {
|
||||
slug: string;
|
||||
section: SectionKey;
|
||||
/** 分类 slug(接入后端真实数据时为分类ID的字符串形式) */
|
||||
category: string;
|
||||
/** 分类展示名:后端数据直接带回,本地 mock 走 config/sections 查表 */
|
||||
categoryName?: string;
|
||||
title: string;
|
||||
subtitle: string;
|
||||
@@ -87,25 +72,18 @@ export interface ContentItem {
|
||||
author?: string;
|
||||
tags?: string[];
|
||||
featured?: boolean;
|
||||
/**
|
||||
* 封面图完整地址。
|
||||
* 兜底链:文章封面 -> 所属分类的图片 -> 空(为空时按 tone 渲染渐变占位封面)
|
||||
*/
|
||||
image?: string;
|
||||
blocks: Block[];
|
||||
}
|
||||
|
||||
/** 独立单页 */
|
||||
export interface SinglePage {
|
||||
title: string;
|
||||
subtitle: string;
|
||||
/** 面包屑(不含"首页") */
|
||||
crumbs: string[];
|
||||
tone: CoverTone;
|
||||
blocks: Block[];
|
||||
}
|
||||
|
||||
/** 列表查询参数 */
|
||||
export interface ListQuery {
|
||||
section: SectionKey;
|
||||
category?: string;
|
||||
|
||||
Vendored
-1
@@ -1,4 +1,3 @@
|
||||
// 补充第三方库缺失的类型声明
|
||||
declare module "vuex";
|
||||
|
||||
declare module "*.vue" {
|
||||
|
||||
Reference in new issue
Block a user