File tree Expand file tree Collapse file tree 1 file changed +1
-32
lines changed
docs/.vitepress/components Expand file tree Collapse file tree 1 file changed +1
-32
lines changed Original file line number Diff line number Diff line change @@ -106,38 +106,7 @@ const isWeChatBrowser = () => {
106106const handleAppStoreClick = (event : MouseEvent ) => {
107107 if (isWeChatBrowser ()) {
108108 event .preventDefault ();
109- // 创建引导遮罩层
110- const mask = document .createElement (" div" );
111- mask .style .cssText = `
112- position: fixed;
113- top: 0;
114- left: 0;
115- width: 100%;
116- height: 100%;
117- background: rgba(0, 0, 0, 0.7);
118- z-index: 999999;
119- display: flex;
120- justify-content: center;
121- align-items: center;
122- ` ;
123-
124- const text = document .createElement (" div" );
125- text .style .cssText = `
126- color: white;
127- font-size: 16px;
128- text-align: center;
129- padding: 20px;
130- ` ;
131- text .innerHTML =
132- ' 请点击右上角<br/>选择"在浏览器中打开"<br/>以访问 App Store' ;
133-
134- mask .appendChild (text );
135- document .body .appendChild (mask );
136-
137- // 点击遮罩层移除
138- mask .addEventListener (" click" , () => {
139- document .body .removeChild (mask );
140- });
109+ window .location .href = " itms-apps://itunes.apple.com/app/6443558874"
141110 }
142111};
143112 </script >
You can’t perform that action at this time.
0 commit comments