diff --git a/me/setting/index.vue b/me/setting/index.vue index 86a4302..afe2376 100644 --- a/me/setting/index.vue +++ b/me/setting/index.vue @@ -41,10 +41,18 @@ } }, onLoad() { - plus.runtime.getProperty(plus.runtime.appid, widgetInfo => { - console.log(widgetInfo) - this.version = widgetInfo.version - }) + const systemInfo = uni.getSystemInfoSync(); + //#ifdef APP-PLUS + this.version = systemInfo.appWgtVersion; + //#endif + // #ifdef H5 + this.version = systemInfo.appVersion; + // #endif + console.log(this.version,'版本号'); + // plus.runtime.getProperty(plus.runtime.appid, widgetInfo => { + // console.log(widgetInfo) + // this.version = widgetInfo.version + // }) }, methods: { goNav(e) {