Commit ca2f402c authored by agping's avatar agping

bug

parent 152061d1
<template>
<div class="min-height-list">
<div class="bg-con"></div>
<div class="btn-con">
<img :src="btn" @click="download"/>
</div>
</div>
</template>
<script>
import btn from '@/components/download/images/btn@2x.png';
import '@/assets/js/layer041002.js';
export default {
data: () => ({
btn,
}),
created() {
let _this = this;
if(_this.common.isIos()) {
_this.downloadAddress = 'https://itunes.apple.com/cn/app/id1326696107';
} else {
//获取安卓下载链接,type为1,苹果为2
_this.axios({
method: 'get',
url: '/api/getVersionNo',
responseType: 'json',
data: {
'type': 0
}
})
.then(function(response) {
if(response.data.code == 200) {
_this.downloadAddress = response.data.data.app_path;
} else {
layer.tipsX(response.data.message);
}
})
.catch(function(error) {
_this.common.layerError(error);
});
}
},
methods: {
download() {
let _this = this;
if(_this.common.isIos()) {
window.open(_this.downloadAddress);
} else {
if(_this.common.isWeixinBrowser()) {
_this.layerWeiXin = true;
} else {
window.open(_this.downloadAddress);
}
}
}
}
}
</script>
<style scoped>
.min-height-list{
width: 100%;
height: 100vh;
background: #fff;
}
.bg-con{
width: 100%;
height: 10rem;
background: #fff url(images/Group@2x.png) no-repeat center .3rem/100%;
}
img{
width: 5.4rem;
position: fixed;
bottom: 1.2rem;
left: 50%;
margin-left: -2.7rem;
}
.btn-con{
/*margin-top: .3rem;*/
}
</style>
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