This commit is contained in:
parent
4079fa7a47
commit
982a69b65e
|
@ -230,11 +230,18 @@
|
||||||
uni.getSystemInfo({
|
uni.getSystemInfo({
|
||||||
success(res) {
|
success(res) {
|
||||||
that.$u.vuex('vuex_version', res.appVersion)
|
that.$u.vuex('vuex_version', res.appVersion)
|
||||||
|
console.log(res)
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
if (res.platform == 'android') {
|
if (res.platform == 'android') {
|
||||||
that.$u.api.apkCheck().then(res1 => {
|
that.$u.api.apkCheck().then(res1 => {
|
||||||
// console.log(res.appVersion, 2, res1.version)
|
|
||||||
if (res.appVersion < res1.version) {
|
// if(res.appWgtVersion==res1.version){
|
||||||
|
// console.log(res.appWgtVersion,1,res1.version)
|
||||||
|
// }else{
|
||||||
|
// console.log(res.appWgtVersion, '2', res1.version)
|
||||||
|
// }
|
||||||
|
|
||||||
|
if (res.appWgtVersion != res1.version) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "版本更新",
|
title: "版本更新",
|
||||||
content: '有新的版本发布, 请下载新版本',
|
content: '有新的版本发布, 请下载新版本',
|
||||||
|
|
|
@ -38,10 +38,10 @@ const store = new Vuex.Store({
|
||||||
vuex_appid: 'wxf7d6140f507466be',
|
vuex_appid: 'wxf7d6140f507466be',
|
||||||
vuex_login: 'http://qyjy.ctc-zc.com/h5/',
|
vuex_login: 'http://qyjy.ctc-zc.com/h5/',
|
||||||
vuex_version: '1.00.08',
|
vuex_version: '1.00.08',
|
||||||
// vuex_host: 'http://222.222.144.147:6013',
|
vuex_host: 'http://222.222.144.147:6013',
|
||||||
vuex_host: 'http://49.232.14.174:2226',
|
// vuex_host: 'http://49.232.14.174:2226',
|
||||||
// vuex_api: 'http://222.222.144.147:6013/api',
|
vuex_api: 'http://222.222.144.147:6013/api',
|
||||||
vuex_api: 'http://49.232.14.174:2226/api',
|
// vuex_api: 'http://49.232.14.174:2226/api',
|
||||||
vuex_apifile: 'http://222.222.144.147:6013/api/file/',
|
vuex_apifile: 'http://222.222.144.147:6013/api/file/',
|
||||||
// vuex_api: 'http://127.0.0.1:8000/api',
|
// vuex_api: 'http://127.0.0.1:8000/api',
|
||||||
// vuex_host: 'http://10.99.5.79:20309',
|
// vuex_host: 'http://10.99.5.79:20309',
|
||||||
|
|
Loading…
Reference in New Issue