Compare commits

...

2 Commits

Author SHA1 Message Date
tianyi 3dc894ca6b 1 4 weeks ago
tianyi f95be17b57 1 4 weeks ago
  1. 9
      App.vue
  2. 4
      manifest.json

9
App.vue

@ -69,18 +69,11 @@
const baseUrl = getApp().globalData.mainurl const baseUrl = getApp().globalData.mainurl
// //
// #ifdef APP-PLUS // #ifdef APP-PLUS
plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {
// version: widgetInfo.version,
// name: widgetInfo.name
uni.request({ uni.request({
url: baseUrl + '/setting/app-update/latest', url: baseUrl + '/setting/app-update/latest',
data: {}, data: {},
success: (res) => { success: (res) => {
var data = res.data.result; var data = res.data.result;
// if(data.version == widgetInfo.version){
if (data.url) { if (data.url) {
uni.downloadFile({ uni.downloadFile({
url: data.url, url: data.url,
@ -98,10 +91,8 @@
} }
}); });
} }
// }
} }
}); });
});
// #endif // #endif
this.globalData._i18n = this.$i18n //$i18n this.globalData._i18n = this.$i18n //$i18n
this.globalData.$t = function(str) { this.globalData.$t = function(str) {

4
manifest.json

@ -2,8 +2,8 @@
"name" : "半径里商家端", "name" : "半径里商家端",
"appid" : "__UNI__F1A1D03", "appid" : "__UNI__F1A1D03",
"description" : "", "description" : "",
"versionName" : "1.2.6", "versionName" : "1.2.7",
"versionCode" : 5, "versionCode" : 6,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

Loading…
Cancel
Save