Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
1df56749
Commit
1df56749
authored
Feb 19, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
行程修改
parent
f3313a78
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
14 deletions
+25
-14
index.html
index.html
+1
-0
confirmationOrderDownLoad.vue
src/components/confirmationOrderDownLoad.vue
+19
-7
index.js
src/plug/index.js
+5
-7
No files found.
index.html
View file @
1df56749
...
...
@@ -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>
...
...
src/components/confirmationOrderDownLoad.vue
View file @
1df56749
...
...
@@ -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);
// })
}
});
});
...
...
src/plug/index.js
View file @
1df56749
...
...
@@ -115,7 +115,7 @@ export default {
Vue
.
prototype
.
domainManager
=
function
()
{
let
domainUrl
=
''
;
let
locationName
=
window
.
location
.
hostname
;
domainUrl
=
"http://1
92.168.2.214:8082
"
;
//214主域名
domainUrl
=
"http://1
27.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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment