Commit 62b98efc authored by 华国豪's avatar 华国豪 🙄

1

parent ea8c0c0c
...@@ -642,8 +642,9 @@ ...@@ -642,8 +642,9 @@
}, },
methods: { methods: {
gernalFeature(){ gernalFeature(){
let tcid = this.$route.query.tcid;
$.ajax({ $.ajax({
url: 'http://upload.oytour.com/Upload/RemoveImage?fileType=1&fileLimit=5&&filePath=Freature/' + tcid, url: 'http://127.0.0.1:8120/Upload/RemoveImage?fileType=1&fileLimit=5&&filePath=Freature/' + tcid,
type: "POST", type: "POST",
datatype:"jsonP", datatype:"jsonP",
success: function (data) { success: function (data) {
...@@ -653,7 +654,6 @@ ...@@ -653,7 +654,6 @@
// console.log("上传失败"); // console.log("上传失败");
} }
}); });
let tcid = this.$route.query.tcid;
document.querySelector("#gernalCanvas").querySelectorAll('img').forEach(x => { document.querySelector("#gernalCanvas").querySelectorAll('img').forEach(x => {
if(x.src.indexOf('http')!=-1){ if(x.src.indexOf('http')!=-1){
x.setAttribute('crossOrigin','anonymous') x.setAttribute('crossOrigin','anonymous')
...@@ -681,9 +681,9 @@ ...@@ -681,9 +681,9 @@
context.imageSmoothingEnabled = false context.imageSmoothingEnabled = false
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) upload.oytour.com
$.ajax({ $.ajax({
url: 'http://upload.oytour.com/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/' + tcid, url: 'http://127.0.0.1:8120/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/' + tcid,
type: "POST", type: "POST",
data: { data: {
myfile: image.src, myfile: image.src,
...@@ -705,7 +705,7 @@ ...@@ -705,7 +705,7 @@
if (allNum!==document.querySelectorAll(cName).length) { if (allNum!==document.querySelectorAll(cName).length) {
allNum += 1 allNum += 1
} else { } else {
this.ToWord() this.ToWord(this.orderMsg.startDate + this.orderMsg.lineteamName + this.orderMsg.dayNum + '日游')
} }
} }
}); });
......
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