王宇飞
5 months ago
3 changed files with 17 additions and 4 deletions
@ -1,17 +1,29 @@ |
|||||
<template> |
<template> |
||||
<div style="position: absolute; bottom: 50px;right:0;display: flex; flex-direction: column;align-items: flex-end;"> |
<div style="position: absolute; bottom: 20px;right:0;display: flex; flex-direction: column;align-items: flex-end;"> |
||||
<div style="position: relative;" v-show="showCode"> |
<div style="position: relative;" v-show="showCode"> |
||||
<Icon icon="ep:close" style="position: absolute;right: 5px;top: 5px" @click="handleClose"/> |
<Icon icon="ep:close" style="position: absolute;right: 5px;top: 5px" @click="handleClose"/> |
||||
<img alt="" style="margin-bottom: 10px;" width="120" height="120"/> |
<!-- <vue-qr bgSrc='https://img2.baidu.com/it/u=1188690822,3145215011&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1038' logoSrc="https://img1.baidu.com/it/u=605875105,1314303687&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500" text="Hello world!" :size="200"></vue-qr> --> |
||||
|
<vue-qr :text="apkUrl" :size="200" ></vue-qr> |
||||
</div> |
</div> |
||||
<el-button type="primary" link @click="handleClose">PDA按照程序下载链接</el-button> |
<el-button type="primary" link @click="handleClose">PDA按照程序下载链接</el-button> |
||||
</div> |
</div> |
||||
</template> |
</template> |
||||
<script setup lang="ts"> |
<script setup lang="ts"> |
||||
|
import { downloadApk } from "@/api/login"; |
||||
|
// import logoImg from '@/assets/imgs/logo_white_blue.png' |
||||
|
|
||||
|
import vueQr from 'vue-qr/src/packages/vue-qr.vue' |
||||
|
const apkUrl = ref('') |
||||
const showCode = ref(false) |
const showCode = ref(false) |
||||
const handleClose = ()=>{ |
const handleClose = async ()=>{ |
||||
showCode.value = !showCode.value |
showCode.value = !showCode.value |
||||
|
let res = await downloadApk({}) |
||||
|
console.log('res',res) |
||||
|
if(res){ |
||||
|
apkUrl.value = res |
||||
|
} |
||||
|
|
||||
} |
} |
||||
|
|
||||
</script> |
</script> |
||||
<style lang="scss" scoped></style> |
<style lang="scss" scoped></style> |
Loading…
Reference in new issue