Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_app_page
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_app_page
Commits
37c0bc60
Commit
37c0bc60
authored
Nov 01, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cd983f48
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
5 deletions
+45
-5
index.html
index.html
+1
-1
App.vue
src/App.vue
+37
-2
switch.png
src/assets/switch.png
+0
-0
index.ts
src/utils/index.ts
+4
-0
vite.config.ts
vite.config.ts
+3
-2
No files found.
index.html
View file @
37c0bc60
...
...
@@ -5,7 +5,7 @@
<meta
charset=
"UTF-8"
/>
<link
rel=
"icon"
href=
"/favicon.ico"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<title>
Vite App
</title>
<title>
浙江省中小企业协会综合服务平台
</title>
</head>
<body>
...
...
src/App.vue
View file @
37c0bc60
...
...
@@ -8,7 +8,9 @@
<div
class=
"line"
></div>
</div>
<div
class=
"txtContainer2"
>
<a
href=
"https://phjr.obs.cn-east-3.myhuaweicloud.com/%E5%8D%8F%E4%BC%9A%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0.apk"
>
<a
href=
"https://phjr.obs.cn-east-3.myhuaweicloud.com/%E5%8D%8F%E4%BC%9A%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0.apk"
>
<div
class=
"btn btnTxt andriod"
>
<svg
class=
"iconfont icon"
aria-hidden=
"true"
style=
"color: #3F7EC7; font-size: 28px;"
>
<use
xlink:href=
"#icon-anzhuo"
/>
...
...
@@ -44,7 +46,9 @@
</div>
</div>
<div
style=
"display: flex; justify-content: center"
class=
"ig-btns-container"
>
<a
href=
"https://phjr.obs.cn-east-3.myhuaweicloud.com/%E5%8D%8F%E4%BC%9A%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0.apk"
>
<a
href=
"https://phjr.obs.cn-east-3.myhuaweicloud.com/%E5%8D%8F%E4%BC%9A%E6%9C%8D%E5%8A%A1%E5%B9%B3%E5%8F%B0.apk"
>
<div
class=
"ig-btn"
style=
"margin-right: 34px;"
>
<svg
class=
"iconfont icon"
...
...
@@ -70,12 +74,25 @@
</div>
<div
class=
"notify"
v-if=
"notifyStr"
>
{{
notifyStr
}}
</div>
<div
class=
"ig-notify2"
v-if=
"notifyStr2"
>
{{
notifyStr2
}}
</div>
<div
id=
"wechat_tip"
class=
"ig-wechat-tip"
v-if=
"isInWeChat"
>
<div
class=
"ig-wechat-tip_img"
></div>
</div>
</
template
>
<
script
setup
lang=
'ts'
>
import
{
ref
}
from
'@vue/reactivity'
;
import
{
onBeforeMount
}
from
'@vue/runtime-core'
;
import
QrCode
from
'./components/qrCode.vue'
;
import
{
notifyStr
,
notifyStr2
}
from
'./store'
;
import
{
isWeChat
}
from
'./utils'
;
let
timeoutid
=
NaN
;
const
isInWeChat
=
ref
(
true
)
onBeforeMount
(()
=>
{
isInWeChat
.
value
=
isWeChat
();
})
const
notify
=
(
str
:
string
)
=>
{
notifyStr
.
value
=
str
...
...
@@ -103,6 +120,24 @@ body {
a {
text-decoration: unset;
}
.ig-wechat-tip {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.6);
text-align: center;
z-index: 10;
}
.ig-wechat-tip_img {
margin: 5px auto 0;
width: 80%;
height: 70px;
background: url("./assets/switch.png") no-repeat;
background-size: 100%;
}
.iconfont {
width: 1em;
height: 1em;
...
...
src/assets/switch.png
0 → 100644
View file @
37c0bc60
10.5 KB
src/utils/index.ts
0 → 100644
View file @
37c0bc60
export
function
isWeChat
()
{
var
ua
=
navigator
.
userAgent
.
toLowerCase
()
return
/micromessenger/i
.
test
(
ua
)
}
vite.config.ts
View file @
37c0bc60
...
...
@@ -5,10 +5,11 @@ import path from 'path'
// https://vitejs.dev/config/
export
default
defineConfig
({
plugins
:
[
vue
()],
publicDir
:
'/other'
,
// base: '/download',
resolve
:
{
alias
:
{
'@'
:
path
.
resolve
(
__dirname
,
'/src'
),
},
}
}
,
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment