版本号获取修改
This commit is contained in:
@@ -41,10 +41,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
plus.runtime.getProperty(plus.runtime.appid, widgetInfo => {
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
console.log(widgetInfo)
|
//#ifdef APP-PLUS
|
||||||
this.version = widgetInfo.version
|
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: {
|
methods: {
|
||||||
goNav(e) {
|
goNav(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user