Commit 1e2e71ef by wenyang

IOS下载

parent f22d8017
......@@ -399,6 +399,12 @@
"navigationBarTitleText": "申请加盟-结果",
"enablePullDownRefresh": false
}
}, {
"path": "pages/downloadApp/index",
"style": {
"navigationBarTitleText": "下载",
"enablePullDownRefresh": false
}
}
, {
......@@ -460,15 +466,6 @@
"navigationBarTitleText": "批量数据计算"
}
}
, {
"path": "pages/downloadApp/downloadApp",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"subPackages": [{
"root": "myPackageA",
......
......@@ -965,7 +965,7 @@
// window.location.href = "http://itunes.apple.com/us/app/id399608199";
// }else {
// uni.navigateTo({
// url:'/pages/downloadApp/downloadApp'
// url:'/pages/downloadApp/index'
// })
// // alert('android')
// }
......
<template>
<view class="container downContainer">
<view class="container">
<view class="downContainer">
<view class="logoContainer">
<image src="/static/downlogo.png" mode="widthFix"></image>
<image src="../../static/downlogo.png" mode="widthFix"></image>
</view>
<view class="logoName">银盾家办APP</view>
<view class="downBtn" @click="handleBtnDown">立即下载</view>
<view class="qrcodeContainer">
<image :src="'/static/'+ (iosFlag ? 'iosDownLoadQrcode' : 'androidDownLoadQrcode')+'.png'" mode="widthFix"></image>
<view class="qrcodeContainer" v-if="!iosFlag">
<image :src="'../../static/'+ (iosFlag ? 'iosDownLoadQrcode' : 'androidDownLoadQrcode')+'.png'" mode="widthFix"></image>
</view>
<view class="footerTitle">【成为注册家庭财务策划师】</view>
<view class="footerSubtitle">金融·风险管理·咨询·投资组合</view>
<!-- 遮罩 -->
<view class="markContainer" v-if="markFlag">
<view class="tipsIcon">
<image src="/static/Group132.png" mode="widthFix"></image>
<image src="../../static/Group132.png" mode="widthFix"></image>
</view>
<view class="tipsContent">
<view style="display: flex;justify-content: center;align-items: center;">戳这里,点击<image src="/static/browser.png" mode="widthFix" style="width:100rpx!important;height:100rpx;margin:0 30rpx"></image>按钮</view>
<view style="display: flex;justify-content: center;align-items: center;">戳这里,点击<image src="../../static/browser.png" mode="widthFix" style="width:100rpx!important;height:100rpx;margin:0 30rpx"></image>按钮</view>
<view class="">
<view>使用系统浏览器即可安装</view>
</view>
......@@ -24,10 +25,12 @@
<view class="confirmBtn">知道了</view>
</view>
</view>
</view>
</template>
<script>
import {companyInfo} from "@/environments/environment";
export default {
data() {
return {
......@@ -36,17 +39,19 @@
browser:{}
}
},
onShow() {
},
methods: {
// 下载app
handleBtnDown() {
if (browser.versions.weixin){
if (this.browser.versions.weixin){
this.markFlag = true;
return;
}
if (browser.versions.android) {
window.location.href = "https://mdev.anjibao.cn/app.apk";
}else if (browser.versions.ios) {
window.location.href = "http://itunes.apple.com/us/app/id399608199";
if (this.browser.versions.android) {
window.location.href = "https://app.ydhomeoffice.cn/app.apk";
}else if (this.browser.versions.ios) {
window.location.href = "http://itunes.apple.com/us/app/id6447550987";
}
}
......@@ -85,19 +90,19 @@
}(),
language: (navigator.browserLanguage || navigator.language).toLowerCase()
}
if (browser.versions.ios){
if (this.browser.versions.ios){
this.iosFlag = true
}else{
this.iosFlag = false
}
if (browser.versions.weixin){
if (this.browser.versions.weixin){
return;
}
//页面初始化进入app,进不去就说明没安装app,然后可以点击下载去应用市场去下载
if (browser.versions.ios) {
if (this.browser.versions.ios) {
console.log('ios')
// window.location.href = "http://itunes.apple.com/us/app/id399608199";
} else if (browser.versions.android) {
// window.location.href = "http://itunes.apple.com/us/app/id6447550987";
} else if (this.browser.versions.android) {
console.log('android')
// window.location.href = "cffpapp://" //manifest.json配置的schemes
}
......@@ -106,8 +111,9 @@
}
</script>
<style lang="scss">
.downContainer{
<style lang="scss" scoped>
.container {
.downContainer{
display: flex;
flex-direction: column;
align-items: center;
......@@ -181,6 +187,7 @@
background-color: #999;
}
.footerTitle{
margin-top: 30rpx;
font-size: 30rpx;
color: #333;
font-weight: bold;
......@@ -191,5 +198,5 @@
color: #666;
}
}
}
</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