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. 60
      App.vue
  2. 2
      components/worker/delivery.vue
  3. 2
      manifest.json

60
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,
// uni.request({ // name: widgetInfo.name
// url: '', uni.request({
// data: { url: baseUrl + '/setting/app-update/latest',
// version: widgetInfo.version, data: {},
// name: widgetInfo.name success: (res) => {
// },
// success: (result) => { var data = res.data.result;
// var data = result.data; // if(data.version == widgetInfo.version){
// if (data.update && data.wgtUrl) {
// uni.downloadFile({
// url: data.wgtUrl, if (data.url) {
// success: (downloadResult) => { uni.downloadFile({
// if (downloadResult.statusCode === 200) { url: data.url,
// plus.runtime.install(downloadResult.tempFilePath, { success: (downloadResult) => {
// force: false if (downloadResult.statusCode === 200) {
// }, function() { plus.runtime.install(downloadResult.tempFilePath, {
// console.log('install success...'); force: false
// plus.runtime.restart(); }, function() {
// }, function(e) { console.log('install success...');
// console.error('install fail...'); plus.runtime.restart();
// }); }, function(e) {
// } console.error('install fail...',e);
// } });
// }); }
// } }
// } });
// }); }
// }
}
});
}); });
// #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