Commit 1df56749 authored by 黄奎's avatar 黄奎

行程修改

parent f3313a78
......@@ -11,6 +11,7 @@
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=ZzGBZF6L0sgFDLlDohyvYhCnWy4dwksX" ></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/CurveLine/1.5/src/CurveLine.min.js"></script>
<script type="text/javascript" src="http://ditu.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&language=zh-CN"></script>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<title>四川和平国际旅行社</title>
</head>
<body>
......
......@@ -669,13 +669,25 @@
context.imageSmoothingEnabled = false
var image = new Image();
image.src = canvas.toDataURL("image/png");
// document.body.appendChild(image)
let msg = {
myfile: image.src
}
this.uploadImg(tcid,msg, res=>{
console.log(res)
}, null)
$.ajax({
url: 'http://127.0.0.1:8120/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID',
type: "POST",
data: {myfile: image.src},
datatype:"jsonP",
success: function (data) {
console.log("上传成功",data);
},
error: function () {
console.log("上传失败");
}
});
// this.uploadImg(tcid,msg, res=>{
// //console.log(res)
// }, err=>{
// console.log("GHJK",err);
// })
}
});
});
......
......@@ -115,7 +115,7 @@ export default {
Vue.prototype.domainManager = function () {
let domainUrl = '';
let locationName = window.location.hostname;
domainUrl = "http://192.168.2.214:8082"; //214主域名
domainUrl = "http://127.0.0.1"; //214主域名
// 127.0.0.12
// domainUrl = "http://192.168.2.88"; //王悦主域名
// domainUrl = "http://127.0.0.1"; //214主域名
......@@ -149,7 +149,7 @@ export default {
GoogleMapUrl: "http://ditu.google.cn/maps/api/js?key=AIzaSyAZ5MIfzicStzKbIkbI3RcBBeZBjQFKsp0&sensor=false&language=zh-CN",
//google地图图片地址
GoogleMapImageUrl: "http://super.oytour.com",
Upload: "http://Upload.oytour.com"
Upload: "http://127.0.0.1:8120"
};
return obj;
},
......@@ -217,12 +217,10 @@ export default {
}
Vue.prototype.uploadImg = function (tcID, msg, successCall, faildCall) {
var apiurl = this.domainManager().Upload + '/Upload?fileType=1&fileLimit=5&&filePath=Freature/TCID' + tcID;
let postData = msg
this.$http.post(apiurl, postData, {
var apiurl = this.domainManager().Upload + '/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID' + tcID;
this.$http.post(apiurl, msg, {
headers: {
'Content-Type': 'application/json',
'Referer-Viitto': this.$route.path
}
}).then(res => {
successCall(res);
......
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