alls
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user