You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
xxdj1/user/pages/download.vue

72 lines
1.2 KiB

<template>
<view class="download">
<view class="logo">
<image src="../../static/logopic.png" mode=""></image>
<view class="btn" @click="getInfo">
下载
</view>
</view>
</view>
</template>
<script>
export default{
data(){
return{
}
},
methods:{
getInfo(){
let platform = uni.getSystemInfoSync().platform;
if(platform === 'ios'){
window.location.href = "https://apps.apple.com/cn/app/%E5%B8%8C%E5%B8%8C%E5%88%B0%E5%AE%B6/id6450150514"
// 苹果
} else if(platform === 'android'){
// 安卓
window.location.href = "https://www.pgyer.com/mhZD6o"
} else {
// 其他
}
}
},
onLoad(option) {
}
}
</script>
<style lang="scss" scoped>
.download{
height:calc(100vh);
width:100%;
.logo{
width:100%;
height:100%;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
image{
width:200rpx;
height:200rpx;
}
.btn{
border-radius: 50px;
background-color:#17C161;
font-size: 26rpx;
padding:30rpx 0;
text-align: center;
color:#ffffff;
width:70%;
margin:0 auto;
margin-top:40rpx;
}
}
}
</style>