Commit 37c0bc60 authored by chenqikuai's avatar chenqikuai

fix

parent cd983f48
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title> <title>浙江省中小企业协会综合服务平台</title>
</head> </head>
<body> <body>
......
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
<div class="line"></div> <div class="line"></div>
</div> </div>
<div class="txtContainer2"> <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"> <div class="btn btnTxt andriod">
<svg class="iconfont icon" aria-hidden="true" style="color: #3F7EC7; font-size: 28px;"> <svg class="iconfont icon" aria-hidden="true" style="color: #3F7EC7; font-size: 28px;">
<use xlink:href="#icon-anzhuo" /> <use xlink:href="#icon-anzhuo" />
...@@ -44,7 +46,9 @@ ...@@ -44,7 +46,9 @@
</div> </div>
</div> </div>
<div style="display: flex; justify-content: center" class="ig-btns-container"> <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;"> <div class="ig-btn" style="margin-right: 34px;">
<svg <svg
class="iconfont icon" class="iconfont icon"
...@@ -70,12 +74,25 @@ ...@@ -70,12 +74,25 @@
</div> </div>
<div class="notify" v-if="notifyStr">{{ notifyStr }}</div> <div class="notify" v-if="notifyStr">{{ notifyStr }}</div>
<div class="ig-notify2" v-if="notifyStr2">{{ notifyStr2 }}</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> </template>
<script setup lang='ts'> <script setup lang='ts'>
import { ref } from '@vue/reactivity';
import { onBeforeMount } from '@vue/runtime-core';
import QrCode from './components/qrCode.vue'; import QrCode from './components/qrCode.vue';
import { notifyStr, notifyStr2 } from './store'; import { notifyStr, notifyStr2 } from './store';
import { isWeChat } from './utils';
let timeoutid = NaN; let timeoutid = NaN;
const isInWeChat = ref(true)
onBeforeMount(() => {
isInWeChat.value = isWeChat();
})
const notify = (str: string) => { const notify = (str: string) => {
notifyStr.value = str notifyStr.value = str
...@@ -103,6 +120,24 @@ body { ...@@ -103,6 +120,24 @@ body {
a { a {
text-decoration: unset; 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 { .iconfont {
width: 1em; width: 1em;
height: 1em; height: 1em;
......
export function isWeChat() {
var ua = navigator.userAgent.toLowerCase()
return /micromessenger/i.test(ua)
}
...@@ -5,10 +5,11 @@ import path from 'path' ...@@ -5,10 +5,11 @@ import path from 'path'
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [vue()], plugins: [vue()],
publicDir: '/other', // base: '/download',
resolve: { resolve: {
alias: { alias: {
'@': path.resolve(__dirname, '/src'), '@': path.resolve(__dirname, '/src'),
}, },
} },
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment