Browse Source

1

dev_czc
congzc 1 year ago
parent
commit
92b097ab81
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      src/pages/camera/index.vue

+ 15
- 0
src/pages/camera/index.vue View File

@@ -311,6 +311,7 @@ const checkImageByBaidu = async (file, data) => {
header: {
authorization: uni.getStorageSync("token"),
},
timeout: 30000,
formData: data,
success: (res) => {
console.log(res, "上传成功");
@@ -326,6 +327,10 @@ const checkImageByBaidu = async (file, data) => {
}
},
fail: (res) => {
uni.showToast({
title: "上传失败,请稍后再试",
icon: "none",
});
console.log(res, "上传失败");
},
});
@@ -342,6 +347,7 @@ const checkImageByMetavatar = async (file, data) => {
header: {
authorization: uni.getStorageSync("token"),
},
timeout: 30000,
formData: data,
success: (res) => {
console.log(res, "上传成功");
@@ -357,6 +363,10 @@ const checkImageByMetavatar = async (file, data) => {
}
},
fail: (res) => {
uni.showToast({
title: "上传失败,请稍后再试",
icon: "none",
});
console.log(res, "上传失败");
},
});
@@ -373,6 +383,7 @@ const uoloadImageAws = async (file, data) => {
header: {
authorization: uni.getStorageSync("token"),
},
timeout: 30000,
formData: data,
success: (res) => {
console.log(res, "上传成功");
@@ -400,6 +411,10 @@ const uoloadImageAws = async (file, data) => {
}
},
fail: (res) => {
uni.showToast({
title: "上传失败,请稍后再试",
icon: "none",
});
console.log(res, "上传失败");
},
});


Loading…
Cancel
Save