This commit is contained in:
hackrobot
2025-03-26 18:25:50 -05:00
parent d94b011163
commit 7a74bc3c11
7 changed files with 2214 additions and 9 deletions

View File

@@ -16,6 +16,9 @@
sizes="192x192"
href="/static/images/images/youtube.ico"
/>
<!-- PWA设置 -->
<link rel="manifest" href="/manifest.json">
<!-- <link rel="icon" type="image/x-icon" href="/static/images/youtube.ico"> -->
<title>Youtube运营笔记</title>
<meta name="description" content="Youtube运营笔记">

View File

@@ -16,6 +16,8 @@ import { AtForm, AtMessage } from "taro-ui";
import { marked } from "marked";
import infoText from "./info.md";
import bookText from "./book.md";
import youtubeIco from "../../images/youtube.ico";
marked.setOptions({
breaks: true, // 是否回车换行

View File

@@ -49,8 +49,6 @@ import ytGpt from "../../images/ytGpt.png";
import demo from "../../images/demo.svg";
import youtubeIco from "../../images/youtube.ico";
// export default class Index extends Component {
const Index = () => {
const [current, setcurrent] = useState(0);
@@ -93,6 +91,19 @@ const Index = () => {
}
};
// pwa安装弹窗
// useEffect(() => {
// window.addEventListener("beforeinstallprompt", (event) => {
// event.preventDefault();
// let installPrompt = event;
// // 显示安装按钮
// document.getElementById("install-btn").addEventListener("click", () => {
// installPrompt.prompt();
// });
// });
// }, []);
// 获取openid
const getOpenid = () => {
// let newparams = Taro.getCurrentInstance().router.params;