Compare commits

...

3 Commits

Author SHA1 Message Date
tianyi 2d60c3f490 1 1 month ago
tianyi 63053674e0 1 1 month ago
tianyi 9a39355a79 1 1 month ago
  1. 58
      App.vue
  2. 2
      components/worker/delivery.vue
  3. 2
      manifest.json

58
App.vue

@ -66,37 +66,41 @@
}, },
onLaunch: function() { onLaunch: function() {
let context = this; let context = this;
const baseUrl = getApp().globalData.mainurl
// //
// #ifdef APP-PLUS // #ifdef APP-PLUS
plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) { plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {
// version: widgetInfo.version,
// name: widgetInfo.name
uni.request({
url: baseUrl + '/setting/app-update/latest',
data: {},
success: (res) => {
// uni.request({ var data = res.data.result;
// url: '', // if(data.version == widgetInfo.version){
// data: {
// version: widgetInfo.version,
// name: widgetInfo.name if (data.url) {
// }, uni.downloadFile({
// success: (result) => { url: data.url,
// var data = result.data; success: (downloadResult) => {
// if (data.update && data.wgtUrl) { if (downloadResult.statusCode === 200) {
// uni.downloadFile({ plus.runtime.install(downloadResult.tempFilePath, {
// url: data.wgtUrl, force: false
// success: (downloadResult) => { }, function() {
// if (downloadResult.statusCode === 200) { console.log('install success...');
// plus.runtime.install(downloadResult.tempFilePath, { plus.runtime.restart();
// force: false }, function(e) {
// }, function() { console.error('install fail...',e);
// console.log('install success...'); });
// plus.runtime.restart(); }
// }, function(e) { }
// console.error('install fail...'); });
// }); }
// } // }
// } }
// }); });
// }
// }
// });
}); });
// #endif // #endif
this.globalData._i18n = this.$i18n //$i18n this.globalData._i18n = this.$i18n //$i18n

2
components/worker/delivery.vue

@ -1720,7 +1720,7 @@
} }
.box1 { .box1 {
width: 100%; width: 94%;
margin: 20rpx auto 20rpx; margin: 20rpx auto 20rpx;
background: #fff; background: #fff;
border-radius: 20rpx; border-radius: 20rpx;

2
manifest.json

@ -3,7 +3,7 @@
"appid" : "__UNI__F1A1D03", "appid" : "__UNI__F1A1D03",
"description" : "", "description" : "",
"versionName" : "1.2.5", "versionName" : "1.2.5",
"versionCode" : 2, "versionCode" : 3,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

Loading…
Cancel
Save