This commit is contained in:
我是个攻城狮
2026-07-16 17:01:34 +08:00
parent c3f5f13bb3
commit ca87258846
12 changed files with 2413 additions and 788 deletions
+2 -3
View File
@@ -614,7 +614,7 @@ export default {
formData.append('type', filetype);
formData.append('app_id', '10001');
formData.append('token', uni.getStorageSync('token') || '');
// uni.request暂不支持直接传formData,改用原生XMLHttpRequest优化图片上传
// uni.request暂不支持直接传formData,改用原生XMLHttpRequest优化图片上传
const xhr = new XMLHttpRequest();
xhr.open('POST', this.config.app_url+'/api/file.upload/file', true);
xhr.onreadystatechange = function () {
@@ -627,7 +627,6 @@ export default {
that.$message.error('签名上传返回异常');
return;
}
console.log(res.data.file_id,2222222222222222)
if(res.code === 1){
// 调用签约接口给后端参数
that.toqy(res.data.file_id);
@@ -658,7 +657,7 @@ export default {
this.getData();
}, err => {
uni.showToast({
icon: 'none',
icon: 'none',
title: err.data.msg
})
return;