From e6d7748a410f151195fe53d7c553c66ed3c7ee43 Mon Sep 17 00:00:00 2001 From: "WLT\\Eric.hu" Date: Mon, 7 Apr 2025 09:50:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=BB=BA=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/book/index.tsx | 52 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 48 insertions(+), 4 deletions(-) diff --git a/src/pages/book/index.tsx b/src/pages/book/index.tsx index 977641f..8058b91 100644 --- a/src/pages/book/index.tsx +++ b/src/pages/book/index.tsx @@ -12,7 +12,14 @@ import Taro from "@tarojs/taro"; import { AtAvatar } from "taro-ui"; import { AtTag } from "taro-ui"; import { AtList, AtListItem } from "taro-ui"; -import { AtForm, AtMessage, AtDrawer, AtIcon } from "taro-ui"; +import { + AtForm, + AtMessage, + AtDrawer, + AtIcon, + AtTimeline, + AtDivider, +} from "taro-ui"; import { marked } from "marked"; import infoText from "./info.md"; import bookText from "./book.md"; @@ -149,8 +156,8 @@ const Book = () => { className="book_header_left" onClick={() => { Taro.redirectTo({ - url: `/` - }) + url: `/`, + }); // Taro.navigateBack({ // delta: 1, // 表示返回的页面数,默认是 1,表示返回上一页 // }); @@ -178,6 +185,7 @@ const Book = () => { }} > + {/* 目录 */} { setshow(false); }} > - 优先展示items里的数据 + {/* 如果items没有数据就会展示children */} {/* 这是自定义内容 */} + + {/* 分割线 */} + + + 更新日志 + + + + {/* 更新日志 */} + + + );