Browse Source

获取版本号

zhanghui 1 year ago
parent
commit
0db2f6c002
1 changed files with 3 additions and 1 deletions
  1. 3 1
      pages/groupbuying/aboutUs/index.vue

+ 3 - 1
pages/groupbuying/aboutUs/index.vue

@@ -9,7 +9,7 @@
 				中意购
 			</view>
 			<view class="info2">
-				中意购小程序版本:1.0.1
+				中意购小程序版本:{{appVersion}}
 			</view>
 
 		</view>
@@ -43,10 +43,12 @@ export default {
 
 	data () {
 		return {
+			appVersion:''
 		};
 	},
 
 	onLoad () {
+		this.appVersion = uni.getSystemInfoSync().appVersion
 
 	},
 	methods: {