|
|
@ -4,7 +4,7 @@ |
|
|
|
<div class="banner"> |
|
|
|
<div class="banner"> |
|
|
|
<div class="middle-wrapper"> |
|
|
|
<div class="middle-wrapper"> |
|
|
|
<div @click="defaulttimeline"> |
|
|
|
<div @click="defaulttimeline"> |
|
|
|
<img :src="icon_url" class="appicon" style="width:100px; height:100px"> |
|
|
|
<img ref="icon_url" :src="icon_url" class="appicon" style="width:100px; height:100px" alt=""> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="badges"> |
|
|
|
<div class="badges"> |
|
|
|
<span class="bundleid">SHORT<b class="short"> {{ appinfos.short }}</b></span> |
|
|
|
<span class="bundleid">SHORT<b class="short"> {{ appinfos.short }}</b></span> |
|
|
@ -19,7 +19,7 @@ |
|
|
|
width="288"> |
|
|
|
width="288"> |
|
|
|
<div style="text-align: center; margin: 0"> |
|
|
|
<div style="text-align: center; margin: 0"> |
|
|
|
<vue-qr :margin="qrinfo.margin" |
|
|
|
<vue-qr :margin="qrinfo.margin" |
|
|
|
:logoSrc="b64_icon_url" :logoScale="qrinfo.logoScale" |
|
|
|
:logoSrc="icon_url" :logoScale="qrinfo.logoScale" |
|
|
|
:logoCornerRadius="qrinfo.logoCornerRadius" |
|
|
|
:logoCornerRadius="qrinfo.logoCornerRadius" |
|
|
|
:correctLevel="qrinfo.correctLevel" |
|
|
|
:correctLevel="qrinfo.correctLevel" |
|
|
|
:text="short_url()" :size="266" |
|
|
|
:text="short_url()" :size="266" |
|
|
@ -94,7 +94,6 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import {apputils} from "../restful"; |
|
|
|
import {apputils} from "../restful"; |
|
|
|
import VueQr from 'vue-qr'; |
|
|
|
import VueQr from 'vue-qr'; |
|
|
|
import {ImgToBase64} from "../utils" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: "FirAppInfosBase", |
|
|
|
name: "FirAppInfosBase", |
|
|
@ -103,19 +102,6 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
save_qr() { |
|
|
|
|
|
|
|
let dtype = "I"; |
|
|
|
|
|
|
|
if (this.master_release.release_type === 0) { |
|
|
|
|
|
|
|
dtype = "A"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
let a = document.createElement('a'); |
|
|
|
|
|
|
|
// 下载图名字 |
|
|
|
|
|
|
|
a.download = this.appinfos.name + '_' + dtype + "_下载码"; |
|
|
|
|
|
|
|
//url |
|
|
|
|
|
|
|
a.href = this.$refs.qr.$el.src; |
|
|
|
|
|
|
|
//合成函数,执行下载 |
|
|
|
|
|
|
|
a.dispatchEvent(new MouseEvent('click')) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
qrinfo: { |
|
|
|
qrinfo: { |
|
|
|
logoScale: 0.3, |
|
|
|
logoScale: 0.3, |
|
|
|
logoCornerRadius: 12, |
|
|
|
logoCornerRadius: 12, |
|
|
@ -123,7 +109,6 @@ |
|
|
|
margin: 20 |
|
|
|
margin: 20 |
|
|
|
}, |
|
|
|
}, |
|
|
|
icon_url: "", |
|
|
|
icon_url: "", |
|
|
|
b64_icon_url: '', |
|
|
|
|
|
|
|
appinfos: {}, |
|
|
|
appinfos: {}, |
|
|
|
master_release: {}, |
|
|
|
master_release: {}, |
|
|
|
allapp: [], |
|
|
|
allapp: [], |
|
|
@ -133,6 +118,19 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
save_qr() { |
|
|
|
|
|
|
|
let dtype = "I"; |
|
|
|
|
|
|
|
if (this.master_release.release_type === 0) { |
|
|
|
|
|
|
|
dtype = "A"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
let a = document.createElement('a'); |
|
|
|
|
|
|
|
// 下载图名字 |
|
|
|
|
|
|
|
a.download = this.appinfos.name + '_' + dtype + "_下载码"; |
|
|
|
|
|
|
|
//url |
|
|
|
|
|
|
|
a.href = this.$refs.qr.$el.src; |
|
|
|
|
|
|
|
//合成函数,执行下载 |
|
|
|
|
|
|
|
a.dispatchEvent(new MouseEvent('click')) |
|
|
|
|
|
|
|
}, |
|
|
|
short_url() { |
|
|
|
short_url() { |
|
|
|
return location.origin + '/' + this.appinfos.short; |
|
|
|
return location.origin + '/' + this.appinfos.short; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -186,9 +184,6 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
set_icon_url() { |
|
|
|
set_icon_url() { |
|
|
|
this.icon_url = this.$store.state.currentapp.master_release.icon_url; |
|
|
|
this.icon_url = this.$store.state.currentapp.master_release.icon_url; |
|
|
|
ImgToBase64(this.icon_url, dataURL => { |
|
|
|
|
|
|
|
this.b64_icon_url = dataURL; |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, created() { |
|
|
|
}, created() { |
|
|
|
|
|
|
|
|
|
|
|