diff --git a/src/mycomponents/common/comMessage.vue b/src/mycomponents/common/comMessage.vue index f90e2f78..e9beb857 100644 --- a/src/mycomponents/common/comMessage.vue +++ b/src/mycomponents/common/comMessage.vue @@ -67,6 +67,21 @@ }, 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(); // #ifdef H5 this.version = systemInfo.appVersion; @@ -76,11 +91,10 @@ // #ifdef APP this.version = systemInfo.appWgtVersion; // #endif - }, - - - methods: { + }, + open() { + this.getVersionCode() this.show = true; this.isDisabled = true; },