feat: 更新book页面
This commit is contained in:
@@ -75,6 +75,7 @@ const config = {
|
|||||||
customRoutes: {
|
customRoutes: {
|
||||||
// "页面路径": "自定义路由"
|
// "页面路径": "自定义路由"
|
||||||
"/pages/index/index": "/",
|
"/pages/index/index": "/",
|
||||||
|
"/pages/book/index": "/book",
|
||||||
// '/pages/detail/index': ['/detail'], // 可以通过数组为页面配置多个自定义路由
|
// '/pages/detail/index': ['/detail'], // 可以通过数组为页面配置多个自定义路由
|
||||||
"pages/my/index": "/my",
|
"pages/my/index": "/my",
|
||||||
"pages/meetup/index": "/meetup",
|
"pages/meetup/index": "/meetup",
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
|
||||||
|
<head>
|
||||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
||||||
<meta
|
<meta content="width=device-width,initial-scale=1,user-scalable=no" name="viewport" />
|
||||||
content="width=device-width,initial-scale=1,user-scalable=no"
|
|
||||||
name="viewport"
|
|
||||||
/>
|
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
<meta name="apple-touch-fullscreen" content="yes" />
|
<meta name="apple-touch-fullscreen" content="yes" />
|
||||||
<meta name="format-detection" content="telephone=no,address=no" />
|
<meta name="format-detection" content="telephone=no,address=no" />
|
||||||
@@ -15,11 +13,7 @@
|
|||||||
<!-- <link rel="icon" href="./images/nomadcna.ico" type="image/x-icon" /> -->
|
<!-- <link rel="icon" href="./images/nomadcna.ico" type="image/x-icon" /> -->
|
||||||
<!-- <link rel="icon" href="/static/images/images/cloud/nomadcna-192.png" type="image/png" /> -->
|
<!-- <link rel="icon" href="/static/images/images/cloud/nomadcna-192.png" type="image/png" /> -->
|
||||||
<link rel="apple-touch-icon" href="/static/images/images/cloud/nomadcna192.png" />
|
<link rel="apple-touch-icon" href="/static/images/images/cloud/nomadcna192.png" />
|
||||||
<link
|
<link rel="icon" sizes="192x192" href="/static/images/images/cloud/nomadcna192.png" />
|
||||||
rel="icon"
|
|
||||||
sizes="192x192"
|
|
||||||
href="/static/images/images/cloud/nomadcna192.png"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
<%= htmlWebpackPlugin.options.script %>
|
<%= htmlWebpackPlugin.options.script %>
|
||||||
@@ -58,18 +52,14 @@
|
|||||||
})(window, document, "script", "dataLayer", "GTM-M9PR3MVC");
|
})(window, document, "script", "dataLayer", "GTM-M9PR3MVC");
|
||||||
</script>
|
</script>
|
||||||
<!-- End Google Tag Manager -->
|
<!-- End Google Tag Manager -->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
|
<body>
|
||||||
<!-- Google Tag Manager (noscript) -->
|
<!-- Google Tag Manager (noscript) -->
|
||||||
<noscript
|
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M9PR3MVC" height="0" width="0"
|
||||||
><iframe
|
style="display: none; visibility: hidden"></iframe></noscript>
|
||||||
src="https://www.googletagmanager.com/ns.html?id=GTM-M9PR3MVC"
|
|
||||||
height="0"
|
|
||||||
width="0"
|
|
||||||
style="display: none; visibility: hidden"
|
|
||||||
></iframe
|
|
||||||
></noscript>
|
|
||||||
<!-- End Google Tag Manager (noscript) -->
|
<!-- End Google Tag Manager (noscript) -->
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@@ -51,10 +51,18 @@ const Book = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View className="Book">
|
<View className="Book">
|
||||||
<View
|
{/* 渲染markdown */}
|
||||||
|
{/* <View
|
||||||
className="markdown-body" // 添加 GitHub Markdown 主题类
|
className="markdown-body" // 添加 GitHub Markdown 主题类
|
||||||
dangerouslySetInnerHTML={{ __html: marked(markdownText) }}
|
dangerouslySetInnerHTML={{ __html: marked(markdownText) }}
|
||||||
></View>
|
></View> */}
|
||||||
|
|
||||||
|
<View>分类</View>
|
||||||
|
<View className="BookItems">
|
||||||
|
<View className="BookItem">列表1</View>{" "}
|
||||||
|
<View className="BookItem">列表2</View>{" "}
|
||||||
|
<View className="BookItem">列表3</View>
|
||||||
|
</View>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user