|
@ -67,6 +67,21 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
mounted() { |
|
|
mounted() { |
|
|
|
|
|
// const systemInfo = uni.getSystemInfoSync(); |
|
|
|
|
|
// // #ifdef H5 |
|
|
|
|
|
// this.version = systemInfo.appVersion; |
|
|
|
|
|
// console.log(systemInfo.appVersion, '版本号'); |
|
|
|
|
|
// // #endif |
|
|
|
|
|
|
|
|
|
|
|
// // #ifdef APP |
|
|
|
|
|
// this.version = systemInfo.appWgtVersion; |
|
|
|
|
|
// // #endif |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
getVersionCode(){ |
|
|
const systemInfo = uni.getSystemInfoSync(); |
|
|
const systemInfo = uni.getSystemInfoSync(); |
|
|
// #ifdef H5 |
|
|
// #ifdef H5 |
|
|
this.version = systemInfo.appVersion; |
|
|
this.version = systemInfo.appVersion; |
|
@ -76,11 +91,10 @@ |
|
|
// #ifdef APP |
|
|
// #ifdef APP |
|
|
this.version = systemInfo.appWgtVersion; |
|
|
this.version = systemInfo.appWgtVersion; |
|
|
// #endif |
|
|
// #endif |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
open() { |
|
|
open() { |
|
|
|
|
|
this.getVersionCode() |
|
|
this.show = true; |
|
|
this.show = true; |
|
|
this.isDisabled = true; |
|
|
this.isDisabled = true; |
|
|
}, |
|
|
}, |
|
|