新增引导图调整购买转跳

This commit is contained in:
唐明明
2021-11-01 18:48:47 +08:00
parent ff8870b9bb
commit 4acbd258b2
13 changed files with 3373 additions and 3082 deletions

35
App.vue
View File

@@ -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() {