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

‘特色’

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