Browse Source

优化消息提示

hella_online_20240829
lijuncheng 5 months ago
parent
commit
0d39c46f7e
  1. 18
      src/mycomponents/common/comMessage.vue

18
src/mycomponents/common/comMessage.vue

@ -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;
@ -78,9 +93,8 @@
// #endif // #endif
}, },
methods: {
open() { open() {
this.getVersionCode()
this.show = true; this.show = true;
this.isDisabled = true; this.isDisabled = true;
}, },

Loading…
Cancel
Save