调整会员页面,重构会员页面,移出会员页面冗余代码
This commit is contained in:
58
App.vue
58
App.vue
@@ -24,35 +24,35 @@
|
||||
|
||||
//#ifdef APP-PLUS
|
||||
// 获取系统版本号
|
||||
getVersions({
|
||||
platform: plus.os.name,
|
||||
version : plus.runtime.versionCode
|
||||
}).then(res => {
|
||||
if(res.update){
|
||||
uni.showModal({
|
||||
title: "更新提示",
|
||||
content: res.note || '版本更新信息',
|
||||
confirmText: "更新",
|
||||
success: modalRes => {
|
||||
if (modalRes.confirm) {
|
||||
if (plus.os.name == "Android") {
|
||||
plus.runtime.openURL(res.info.download);
|
||||
} else{
|
||||
uni.showToast({
|
||||
title: 'IOS应用暂未上架,请打开测试(TestFlight)工具点击更新',
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
// getVersions({
|
||||
// platform: plus.os.name,
|
||||
// version : plus.runtime.versionCode
|
||||
// }).then(res => {
|
||||
// if(res.update){
|
||||
// uni.showModal({
|
||||
// title: "更新提示",
|
||||
// content: res.note || '版本更新信息',
|
||||
// confirmText: "更新",
|
||||
// success: modalRes => {
|
||||
// if (modalRes.confirm) {
|
||||
// if (plus.os.name == "Android") {
|
||||
// plus.runtime.openURL(res.info.download);
|
||||
// } else{
|
||||
// uni.showToast({
|
||||
// title: 'IOS应用暂未上架,请打开测试(TestFlight)工具点击更新',
|
||||
// icon : 'none'
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// }).catch(err => {
|
||||
// uni.showToast({
|
||||
// title: err.message,
|
||||
// icon : 'none'
|
||||
// })
|
||||
// })
|
||||
//#endif
|
||||
},
|
||||
onShow() {
|
||||
|
||||
Reference in New Issue
Block a user