新增版本检测,合同记录,业绩账户调整
This commit is contained in:
@@ -99,7 +99,16 @@
|
||||
</view>
|
||||
<u-icon name="arrow-right" color="#cacaca" size="34rpx" bold></u-icon>
|
||||
</view>
|
||||
<view class="border-solid-empty"></view>
|
||||
<view class="border-solid-empty"></view>
|
||||
<view class="nav-flex" @click="updateApp">
|
||||
<view class="nav-icon">
|
||||
<image class="nav-icon-src" src="@/static/icons/user_nav_08.png"></image>版本检测
|
||||
</view>
|
||||
<view class="nav-text">
|
||||
<text>V{{version}}</text>
|
||||
<u-icon name="arrow-right" color="#cacaca" size="34rpx" bold></u-icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class="nav-flex" @click="onNav('UserSet')">
|
||||
<view class="nav-icon">
|
||||
<image class="nav-icon-src" src="@/static/icons/user_nav_05.png"></image>设置
|
||||
@@ -160,23 +169,20 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
info,
|
||||
relationsVerify,
|
||||
relationsBind,
|
||||
submitTeamName,
|
||||
} from '@/apis/interfaces/user.js'
|
||||
import { info, relationsVerify, relationsBind, submitTeamName } from '@/apis/interfaces/user.js'
|
||||
import { getVersions } from '@/apis/interfaces/versions'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
isAuth: false,
|
||||
nickname: '',
|
||||
identity: '',
|
||||
team_name:'',
|
||||
avatar: '',
|
||||
certification: '',
|
||||
return {
|
||||
version : plus.runtime.version,
|
||||
isAuth : false,
|
||||
nickname : '',
|
||||
identity : '',
|
||||
team_name :'',
|
||||
avatar : '',
|
||||
certification : '',
|
||||
// 绑定关系
|
||||
bindTypeArr: [{
|
||||
bindTypeArr : [{
|
||||
name: '手机号',
|
||||
value: 'mobile'
|
||||
},
|
||||
@@ -185,22 +191,22 @@
|
||||
value: 'verify'
|
||||
},
|
||||
],
|
||||
bindTypeVal: 'mobile',
|
||||
showBind: false,
|
||||
isInvitation: true,
|
||||
parent: '',
|
||||
invitationUser: {
|
||||
avatar: '',
|
||||
nickname: '',
|
||||
username: ''
|
||||
bindTypeVal : 'mobile',
|
||||
showBind : false,
|
||||
isInvitation : true,
|
||||
parent : '',
|
||||
invitationUser : {
|
||||
avatar : '',
|
||||
nickname : '',
|
||||
username : ''
|
||||
},
|
||||
invitation: '',
|
||||
yunyingShow:false, // 运营中心是否展示
|
||||
yunying_name:'', // 运营名称
|
||||
team_status:'', // 状态 0 不展示运营中心 1可以申请但是没有完善,2申请完,审核中,3已通过,已修改
|
||||
team_id:'',
|
||||
region_status:'', // 状态 0 不展示 大区中心 1可以申请但是没有完善,2申请完,审核中,3已通过,已修改
|
||||
region_id:'',
|
||||
invitation : '',
|
||||
yunyingShow :false, // 运营中心是否展示
|
||||
yunying_name :'', // 运营名称
|
||||
team_status :'', // 状态 0 不展示运营中心 1可以申请但是没有完善,2申请完,审核中,3已通过,已修改
|
||||
team_id :'',
|
||||
region_status :'', // 状态 0 不展示 大区中心 1可以申请但是没有完善,2申请完,审核中,3已通过,已修改
|
||||
region_id :'',
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
@@ -421,7 +427,73 @@
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
},
|
||||
// 检查版本更新
|
||||
updateApp() {
|
||||
uni.showLoading({
|
||||
title: '检查更新'
|
||||
})
|
||||
//#ifdef APP-PLUS
|
||||
// 获取系统版本号
|
||||
getVersions({
|
||||
platform: plus.os.name,
|
||||
version : plus.runtime.version
|
||||
}).then(res => {
|
||||
uni.hideLoading()
|
||||
if (res.update) {
|
||||
uni.showModal({
|
||||
title: "更新提示",
|
||||
content: res.note || '版本更新信息',
|
||||
confirmText: "更新",
|
||||
success: modalRes => {
|
||||
if (modalRes.confirm) {
|
||||
if (plus.os.name == "Android") {
|
||||
uni.showToast({
|
||||
title: '新版本下载中,将在下载完成后自动为您安装更新包',
|
||||
icon: 'none'
|
||||
})
|
||||
uni.downloadFile({
|
||||
url: res.info.download,
|
||||
success: apkPick => {
|
||||
plus.runtime.install(apkPick
|
||||
.tempFilePath, '',
|
||||
installRES => {
|
||||
// 安装完成用于提示新版本引导,暂时无用
|
||||
}, installERR => {
|
||||
// 安装失败
|
||||
})
|
||||
},
|
||||
fail(err) {
|
||||
uni.showToast({
|
||||
title: '安装包下载失败,请检查您的网络或稍后重试',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '暂无ios版本这块留着后续用',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
content: "当前已是最新版本",
|
||||
showCancel: false,
|
||||
})
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
//#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -446,7 +518,15 @@
|
||||
margin-right: $margin;
|
||||
margin-top: 5rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.nav-text{
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
color: #999;
|
||||
font-size: 30rpx;
|
||||
text{ padding-right: 10rpx; }
|
||||
}
|
||||
}
|
||||
|
||||
// 用户信息
|
||||
|
||||
Reference in New Issue
Block a user