Commit 69e20e1b authored by 华国豪's avatar 华国豪 🙄

‘特色’

parent ff0fb21d
......@@ -670,24 +670,23 @@
var image = new Image();
image.src = canvas.toDataURL("image/png");
document.body.appendChild(image)
// $.ajax({
// url: 'http://127.0.0.1:8120/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID1' + tcid,
// type: "POST",
// data: {myfile: image.src},
// datatype:"jsonP",
// success: function (data) {
// // console.log("上传成功",data);
// },
// error: function () {
// // console.log("上传失败");
// }
// });
// this.uploadImg(tcid,{'myfile': image.src}, res=>{
// console.log(res)
// }, err=>{
// console.log("GHJK",err);
// })
$.ajax({
url: 'http://upload.oytour.com/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID1' + tcid,
type: "POST",
data: {myfile: image.src},
datatype:"jsonP",
success: function (data) {
// console.log("上传成功",data);
},
error: function () {
// console.log("上传失败");
}
});
this.uploadImg(tcid,{'myfile': image.src}, res=>{
console.log(res)
}, err=>{
console.log("GHJK",err);
})
}
});
});
......
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