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

Merge commit '705a63c9' into develop

parents 7b8acbb3 705a63c9
...@@ -144,10 +144,8 @@ ...@@ -144,10 +144,8 @@
uploadImage(key) { uploadImage(key) {
uni.chooseImage({ uni.chooseImage({
success: (res) => { success: (res) => {
uni.showToast({ uni.showLoading({
title: '上传中', title: '上传中'
icon: 'none',
duration:90000
}) })
const tempFilePaths = res.tempFilePaths; const tempFilePaths = res.tempFilePaths;
uni.uploadFile({ uni.uploadFile({
...@@ -157,7 +155,7 @@ ...@@ -157,7 +155,7 @@
success: (uploadFileRes) => { success: (uploadFileRes) => {
const data = JSON.parse(uploadFileRes.data) const data = JSON.parse(uploadFileRes.data)
this.params[key] = data.data; this.params[key] = data.data;
uni.hideToast(); uni.hideLoading();
} }
}); });
} }
...@@ -193,9 +191,8 @@ ...@@ -193,9 +191,8 @@
// mozilla(firefox) // mozilla(firefox)
url = window.URL.createObjectURL(file); url = window.URL.createObjectURL(file);
} }
uni.showToast({ uni.showLoading({
title: '上传中', title: '上传中'
icon: 'none'
}) })
uni.uploadFile({ uni.uploadFile({
url: '/uni/api/resources', url: '/uni/api/resources',
...@@ -208,7 +205,7 @@ ...@@ -208,7 +205,7 @@
const data = JSON.parse(uploadFileRes.data) const data = JSON.parse(uploadFileRes.data)
this.params[key] = data.data; this.params[key] = data.data;
this.compressName = fileName; this.compressName = fileName;
uni.hideToast(); uni.hideLoading();
} }
}); });
} }
......
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
uploadImage(key) { uploadImage(key) {
uni.chooseImage({ uni.chooseImage({
success: (res) => { success: (res) => {
uni.showToast({ uni.showLoading({
title: '上传中', title: '上传中',
icon: 'none', icon: 'none',
duration:90000 duration:90000
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
success: (uploadFileRes) => { success: (uploadFileRes) => {
const data = JSON.parse(uploadFileRes.data) const data = JSON.parse(uploadFileRes.data)
this.params[key] = data.data; this.params[key] = data.data;
uni.hideToast(); uni.hideLoading();
} }
}); });
} }
...@@ -164,9 +164,8 @@ ...@@ -164,9 +164,8 @@
// mozilla(firefox) // mozilla(firefox)
url = window.URL.createObjectURL(file); url = window.URL.createObjectURL(file);
} }
uni.showToast({ uni.showLoading({
title: '上传中', title: '上传中'
icon: 'none'
}) })
uni.uploadFile({ uni.uploadFile({
url: '/uni/api/resources', url: '/uni/api/resources',
...@@ -179,7 +178,7 @@ ...@@ -179,7 +178,7 @@
const data = JSON.parse(uploadFileRes.data) const data = JSON.parse(uploadFileRes.data)
this.params[key] = data.data; this.params[key] = data.data;
this.compressName = fileName; this.compressName = fileName;
uni.hideToast(); uni.hideLoading();
} }
}); });
} }
......
...@@ -90,10 +90,8 @@ ...@@ -90,10 +90,8 @@
uploadImage(key) { uploadImage(key) {
uni.chooseImage({ uni.chooseImage({
success: (res) => { success: (res) => {
uni.showToast({ uni.showLoading({
title: '上传中', title: '上传中'
icon: 'none',
duration:90000
}) })
const tempFilePaths = res.tempFilePaths const tempFilePaths = res.tempFilePaths
uni.uploadFile({ uni.uploadFile({
...@@ -103,7 +101,7 @@ ...@@ -103,7 +101,7 @@
success: (uploadFileRes) => { success: (uploadFileRes) => {
const data = JSON.parse(uploadFileRes.data) const data = JSON.parse(uploadFileRes.data)
this.params[key] = data.data; this.params[key] = data.data;
uni.hideToast(); uni.hideLoading();
} }
}); });
} }
......
...@@ -99,10 +99,8 @@ ...@@ -99,10 +99,8 @@
uploadImage(key) { uploadImage(key) {
uni.chooseImage({ uni.chooseImage({
success: (res) => { success: (res) => {
uni.showToast({ uni.showLoading({
title: '上传中', title: '上传中'
icon: 'none',
duration:90000
}) })
const tempFilePaths = res.tempFilePaths const tempFilePaths = res.tempFilePaths
uni.uploadFile({ uni.uploadFile({
...@@ -112,7 +110,7 @@ ...@@ -112,7 +110,7 @@
success: (uploadFileRes) => { success: (uploadFileRes) => {
const data = JSON.parse(uploadFileRes.data) const data = JSON.parse(uploadFileRes.data)
this.params[key] = data.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