Commit 693adf77 authored by 郑秀明's avatar 郑秀明

Merge commit '705a63c9' into develop

parents 7b8acbb3 705a63c9
......@@ -144,10 +144,8 @@
uploadImage(key) {
uni.chooseImage({
success: (res) => {
uni.showToast({
title: '上传中',
icon: 'none',
duration:90000
uni.showLoading({
title: '上传中'
})
const tempFilePaths = res.tempFilePaths;
uni.uploadFile({
......@@ -157,7 +155,7 @@
success: (uploadFileRes) => {
const data = JSON.parse(uploadFileRes.data)
this.params[key] = data.data;
uni.hideToast();
uni.hideLoading();
}
});
}
......@@ -193,9 +191,8 @@
// mozilla(firefox)
url = window.URL.createObjectURL(file);
}
uni.showToast({
title: '上传中',
icon: 'none'
uni.showLoading({
title: '上传中'
})
uni.uploadFile({
url: '/uni/api/resources',
......@@ -208,7 +205,7 @@
const data = JSON.parse(uploadFileRes.data)
this.params[key] = data.data;
this.compressName = fileName;
uni.hideToast();
uni.hideLoading();
}
});
}
......
......@@ -115,7 +115,7 @@
uploadImage(key) {
uni.chooseImage({
success: (res) => {
uni.showToast({
uni.showLoading({
title: '上传中',
icon: 'none',
duration:90000
......@@ -128,7 +128,7 @@
success: (uploadFileRes) => {
const data = JSON.parse(uploadFileRes.data)
this.params[key] = data.data;
uni.hideToast();
uni.hideLoading();
}
});
}
......@@ -164,9 +164,8 @@
// mozilla(firefox)
url = window.URL.createObjectURL(file);
}
uni.showToast({
title: '上传中',
icon: 'none'
uni.showLoading({
title: '上传中'
})
uni.uploadFile({
url: '/uni/api/resources',
......@@ -179,7 +178,7 @@
const data = JSON.parse(uploadFileRes.data)
this.params[key] = data.data;
this.compressName = fileName;
uni.hideToast();
uni.hideLoading();
}
});
}
......
......@@ -90,10 +90,8 @@
uploadImage(key) {
uni.chooseImage({
success: (res) => {
uni.showToast({
title: '上传中',
icon: 'none',
duration:90000
uni.showLoading({
title: '上传中'
})
const tempFilePaths = res.tempFilePaths
uni.uploadFile({
......@@ -103,7 +101,7 @@
success: (uploadFileRes) => {
const data = JSON.parse(uploadFileRes.data)
this.params[key] = data.data;
uni.hideToast();
uni.hideLoading();
}
});
}
......
......@@ -99,10 +99,8 @@
uploadImage(key) {
uni.chooseImage({
success: (res) => {
uni.showToast({
title: '上传中',
icon: 'none',
duration:90000
uni.showLoading({
title: '上传中'
})
const tempFilePaths = res.tempFilePaths
uni.uploadFile({
......@@ -112,7 +110,7 @@
success: (uploadFileRes) => {
const data = JSON.parse(uploadFileRes.data)
this.params[key] = data.data;
uni.hideToast();
uni.hideLoading();
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment