feat: 更新
This commit is contained in:
1 parent
7753498cbe
commit
2b20582afc
4 files changed
+44
-5
No files matched your search
Vendored
-1
@@ -12,6 +12,5 @@ declare module '@vue/runtime-core' {
|
|||||||
IconAndText: typeof import('./src/components/abnormal/iconAndText.vue')['default']
|
IconAndText: typeof import('./src/components/abnormal/iconAndText.vue')['default']
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
VanButton: typeof import('vant/es')['Button']
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
+38
-2
@@ -1,4 +1,24 @@
|
|||||||
<script setup lang="ts" name="appH5">
|
<script setup lang="ts" name="appH5">
|
||||||
|
import { ref, computed } from "vue";
|
||||||
|
import { browser } from "@/lib/util";
|
||||||
|
|
||||||
|
const versions = browser.versions;
|
||||||
|
|
||||||
|
const androidUrl = "http://img.haloapp.vip/card-release_v1.0.1_2023-04-20_101_jiagu_sign.apk";
|
||||||
|
|
||||||
|
const downloadUrl = computed(() => {
|
||||||
|
if(versions.android) return androidUrl;
|
||||||
|
if(versions.ios) return "";
|
||||||
|
return androidUrl;
|
||||||
|
});
|
||||||
|
|
||||||
|
const downloadName = computed(() => {
|
||||||
|
const name = "card-release_v1.0.1_2023-04-20_101_jiagu_sign.apk";
|
||||||
|
if(versions.android) return name;
|
||||||
|
if(versions.ios) return false;
|
||||||
|
return name;
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -7,13 +27,23 @@
|
|||||||
|
|
||||||
<div class="h5-main-mask">
|
<div class="h5-main-mask">
|
||||||
<div class="h5-main-mask-btnbox">
|
<div class="h5-main-mask-btnbox">
|
||||||
<van-button
|
<!-- <van-button
|
||||||
class="h5-main-mask-btnbox-download"
|
class="h5-main-mask-btnbox-download"
|
||||||
round
|
round
|
||||||
color="#222222"
|
color="#222222"
|
||||||
size="large"
|
size="large"
|
||||||
block
|
block
|
||||||
>立即下载</van-button>
|
>立即下载</van-button> -->
|
||||||
|
<a
|
||||||
|
v-if="versions.ios"
|
||||||
|
class="h5-main-mask-btnbox-download"
|
||||||
|
></a>
|
||||||
|
<a
|
||||||
|
v-else
|
||||||
|
class="h5-main-mask-btnbox-download"
|
||||||
|
:href="downloadUrl"
|
||||||
|
:download="downloadName"
|
||||||
|
></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="h5-main-mask-text">
|
<div class="h5-main-mask-text">
|
||||||
@@ -58,6 +88,12 @@
|
|||||||
&-download {
|
&-download {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
& > a {
|
||||||
|
background-image: url(../assets/images/download.png);
|
||||||
|
background-size: 100% 100%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-text {
|
&-text {
|
||||||
|
|||||||
+6
-2
@@ -8,8 +8,12 @@
|
|||||||
<div class="web-main-middle">
|
<div class="web-main-middle">
|
||||||
|
|
||||||
<div class="web-main-middle-btnbox">
|
<div class="web-main-middle-btnbox">
|
||||||
<a href="###" class="web-main-middle-btnbox-andriod"></a>
|
<a
|
||||||
<a href="###" class="web-main-middle-btnbox-ios"></a>
|
href="http://img.haloapp.vip/card-release_v1.0.1_2023-04-20_101_jiagu_sign.apk"
|
||||||
|
class="web-main-middle-btnbox-andriod"
|
||||||
|
download="card-release_v1.0.1_2023-04-20_101_jiagu_sign.apk"
|
||||||
|
></a>
|
||||||
|
<a class="web-main-middle-btnbox-ios"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user