Browse Source

版本更新

lilei 4 years ago
parent
commit
0388744ab4
2 changed files with 11 additions and 3 deletions
  1. 10 3
      pages/userCenter/userCenter.vue
  2. 1 0
      unpackage/dist/dev/app-plus/app-service.js

+ 10 - 3
pages/userCenter/userCenter.vue

@@ -37,6 +37,7 @@
 
 
 <script>
 <script>
 import { logout } from '@/api/user.js';
 import { logout } from '@/api/user.js';
+import { getSysVersion } from '@/api/data.js'
 import { checkVersionToLoadUpdate, clzConfirm } from '@/libs/tools';
 import { checkVersionToLoadUpdate, clzConfirm } from '@/libs/tools';
 import market from "@/js_sdk/dc-market/market.js"
 import market from "@/js_sdk/dc-market/market.js"
 export default {
 export default {
@@ -151,9 +152,15 @@ export default {
 		// 获取最新版本信息
 		// 获取最新版本信息
 		getVersion() {
 		getVersion() {
 			//最新版本
 			//最新版本
-			const newVer = this.$store.state.vuex_versionInfo;
-			//进行版本型号的比对 以及下载更新请求
-			checkVersionToLoadUpdate(newVer, 1, market);
+			getSysVersion().then(ret => {
+				console.log(JSON.stringify(ret))
+				if(ret.status == 200){
+					console.log(ret.data)
+					this.$store.state.vuex_versionInfo = ret.data
+					//进行版本型号的比对 以及下载更新请求
+					checkVersionToLoadUpdate(ret.data, 1, market); 
+				}
+			})
 		}
 		}
 	}
 	}
 };
 };

File diff suppressed because it is too large
+ 1 - 0
unpackage/dist/dev/app-plus/app-service.js


Some files were not shown because too many files changed in this diff