diff --git a/App.vue b/App.vue index 360ddd8..e213ec6 100644 --- a/App.vue +++ b/App.vue @@ -21,12 +21,57 @@ }, onShow: function() { console.log('App Show') + // // #ifdef APP-PLUS + // this.appVersion() + // // #endif + }, onHide: function() { console.log('App Hide') }, methods: { + // 校验APP应用版本 + appVersion() { + console.log("校验APP应用版本", uni.getSystemInfoSync().platform) + // console.log('ss' + JSON.stringify(uni.getSystemInfoSync())) + // const response = await this.$api.appVersion(param) + // console.log(response) + plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => { + console.log('当前版本号' + wgtinfo.versionCode) + console.log(wgtinfo) + + let param = { + 'appId': 'android', + 'versionCode': wgtinfo.version + } + console.log(param) + this.$api.appVersion(param).then(response => { + console.log(response) + + if (wgtinfo.version < response.versionCode) { + console.log('更新了吗') + let that = this; + this.conInfo = response + this.showLogOut=true + // uni.showModal({ + // title: this.$t("login").Versionupdate, + // content: response.info, + // showCancel: false, + // confirmText: this.$t("login").Confirm, + // success: function(res) { + // if (res.confirm) { + // plus.runtime.openURL(response.appUrl); + // } + // } + // }) + + } + + }) + + }); + }, } } diff --git a/manifest.json b/manifest.json index 89e37d8..992ed5d 100644 --- a/manifest.json +++ b/manifest.json @@ -110,7 +110,7 @@ "proxy" : { "/api" : { "ws" : false, - "target" : "https://sapi.payairs.com", + "target" : "https://api.gream.ltd", "changeOrigin" : true, "secure" : false, "pathRewrite" : { @@ -119,7 +119,7 @@ }, "/market" : { "ws" : false, - "target" : "https://market.acefinex.com", + "target" : "https://market.gream.ltd", "changeOrigin" : true, "secure" : false, "pathRewrite" : { diff --git a/pages/home/index.vue b/pages/home/index.vue index a356f66..99eb7dd 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -7,8 +7,10 @@ - {{ i18n.customerService }} - + + {{ i18n.customerService }} + {{ langTrue }} @@ -30,7 +32,7 @@ - + @@ -62,33 +64,20 @@ - - - {{ i18n.TodaySteps }} - - - - - - - - - {{ i18n.ReceiveEarnings }} - + + + + - - - @@ -113,8 +102,6 @@ - -