新增引导图调整购买转跳
This commit is contained in:
35
App.vue
35
App.vue
@@ -24,20 +24,33 @@
|
||||
|
||||
//#ifdef APP-PLUS
|
||||
// 获取系统版本号
|
||||
console.log(plus.runtime.versionCode)
|
||||
console.log(plus.runtime.uniVersion)
|
||||
|
||||
|
||||
getVersions({
|
||||
version:
|
||||
platform: plus.os.name,
|
||||
version: plus.runtime.versionCode
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
if(res.update){
|
||||
uni.showModal({
|
||||
title: "更新提示",
|
||||
content: res.note || '版本更新信息',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
if (plus.os.name=="Android") {
|
||||
plus.runtime.openURL(res.data.url);
|
||||
} else{
|
||||
uni.showToast({
|
||||
title: 'IOS应用暂未上架,请打开测试工具点击更新'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
|
||||
// 请求一个接口
|
||||
// 是否需要更新
|
||||
// 弹出更新提示
|
||||
// 下载文件安装
|
||||
//#endif
|
||||
},
|
||||
onShow() {
|
||||
|
||||
Reference in New Issue
Block a user