From 0d39c46f7e6e9e0897450a1dda5b26c6f2c61d0d Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Tue, 25 Jun 2024 19:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B6=88=E6=81=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/common/comMessage.vue | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) 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; },