uu
This commit is contained in:
parent
db8100b90c
commit
89939a21aa
24
App.vue
24
App.vue
@ -29,12 +29,6 @@
|
|||||||
// 线上示例使用
|
// 线上示例使用
|
||||||
console.log('App Launch');
|
console.log('App Launch');
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// App平台检测升级,服务端代码是通过uniCloud的云函数实现的,详情可参考:https://ext.dcloud.net.cn/plugin?id=4542
|
|
||||||
// if (plus.runtime.appid !== 'HBuilder') { // 真机运行不需要检查更新,真机运行时appid固定为'HBuilder',这是调试基座的appid
|
|
||||||
// checkUpdate()
|
|
||||||
// }
|
|
||||||
|
|
||||||
checkUpdate()
|
|
||||||
|
|
||||||
// 一键登录预登陆,可以显著提高登录速度
|
// 一键登录预登陆,可以显著提高登录速度
|
||||||
uni.preLogin({
|
uni.preLogin({
|
||||||
@ -55,6 +49,7 @@
|
|||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
console.log('HHH Show')
|
console.log('HHH Show')
|
||||||
|
this.appCheckUpdate()
|
||||||
},
|
},
|
||||||
onHide: function() {
|
onHide: function() {
|
||||||
console.log('HHH Hide')
|
console.log('HHH Hide')
|
||||||
@ -63,11 +58,26 @@
|
|||||||
test: ''
|
test: ''
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations(['setUniverifyErrorMsg', 'setUniverifyLogin'])
|
...mapMutations(['setUniverifyErrorMsg', 'setUniverifyLogin']),
|
||||||
|
appCheckUpdate(){
|
||||||
|
console.log("appCheckUpdate=============")
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
// App平台检测升级,服务端代码是通过uniCloud的云函数实现的,详情可参考:https://ext.dcloud.net.cn/plugin?id=4542
|
||||||
|
// if (plus.runtime.appid !== 'HBuilder') { // 真机运行不需要检查更新,真机运行时appid固定为'HBuilder',这是调试基座的appid
|
||||||
|
// checkUpdate()
|
||||||
|
// }
|
||||||
|
checkUpdate()
|
||||||
|
// #endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script module="vconsole" lang="renderjs">
|
||||||
|
import VConsole from 'vconsole'
|
||||||
|
new VConsole();
|
||||||
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '@/common/custom.scss';
|
@import '@/common/custom.scss';
|
||||||
@import '@/uni_modules/uview-plus/index.scss';
|
@import '@/uni_modules/uview-plus/index.scss';
|
||||||
|
|||||||
@ -16,7 +16,8 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"file-saver": "2.0.5",
|
"file-saver": "2.0.5",
|
||||||
"pdf-lib": "1.17.1"
|
"pdf-lib": "1.17.1",
|
||||||
|
"vconsole": "3.15.1"
|
||||||
},
|
},
|
||||||
"dcloudext": {
|
"dcloudext": {
|
||||||
"category": [
|
"category": [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user