Commit 37c0bc60 authored by chenqikuai's avatar chenqikuai

fix

parent cd983f48
......@@ -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>
......
......@@ -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;
......
export function isWeChat() {
var ua = navigator.userAgent.toLowerCase()
return /micromessenger/i.test(ua)
}
......@@ -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'),
},
}
},
})
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