Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HotelProject
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
zhengke
HotelProject
Commits
1c645591
Commit
1c645591
authored
Mar 04, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
js文件修改
parent
e81cf67e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
index.js
src/plugins/index.js
+0
-11
No files found.
src/plugins/index.js
View file @
1c645591
...
...
@@ -11,11 +11,8 @@ export default {
},
//域名管理对象
Vue
.
prototype
.
domainManager
=
function
()
{
var
domainUrl
=
"http://127.0.0.1"
;
//主域名
let
locationName
=
window
.
location
.
hostname
;
let
javaUrldo
=
""
;
javaUrldo
=
locationName
.
indexOf
(
'zcyx'
)
!==
-
1
||
locationName
.
indexOf
(
'viitto'
)
!==
-
1
?
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
?
"http://property.oytour.com"
:
"http://47.96.12.235:9001"
)
:
"http://192.168.2.17:8087"
;
if
(
this
.
isOnline
())
{
if
(
window
.
location
.
host
.
indexOf
(
'testzcyx.oytour.com'
)
!=
-
1
)
{
//domainUrl = "http://127.0.0.1"
...
...
@@ -26,16 +23,10 @@ export default {
var
obj
=
{
//主地址
DomainUrl
:
domainUrl
,
//上传文件URL
UploadFileUrl
:
domainUrl
+
'/api/File/post'
,
LocalTemplateFileDownLoadUrl
:
domainUrl
,
//常用提交数据URL
PostUrl
:
domainUrl
+
"/api/common/post"
,
javaUrl
:
"http://property.oytour.com"
,
ViittoFileUrl
:
locationName
.
indexOf
(
'zcyx'
)
!==
-
1
||
locationName
.
indexOf
(
'zcyx.oytour.com'
)
!==
-
1
?
"http://staticfile.oytour.com"
:
'http://imgfile.oytour.com'
,
UploadUrl
:
locationName
.
indexOf
(
'zcyx'
)
!==
-
1
||
locationName
.
indexOf
(
'zcyx.oytour.com'
)
!==
-
1
?
"http://uploadfile.oytour.com"
:
"http://upload.oytour.com"
,
LocalFileStreamDownLoadUrl
:
domainUrl
+
"/api/file/GetFileFromWebApi"
,
JavaLocalFileStreamDownLoadUrl
:
javaUrldo
,
//google地图图片地址
GoogleMapImageUrl
:
"http://imgfile.oytour.com"
,
};
...
...
@@ -126,7 +117,6 @@ export default {
key
=
this
.
getLocalStorage
().
secretKey
;
uid
=
this
.
getLocalStorage
().
Id
;
}
var
encodeMsg
=
encodeURIComponent
(
JSON
.
stringify
(
msg
)).
toLowerCase
();
var
md5Str
=
md5
(
`cmd=
${
cmd
}
&msg=
${
encodeMsg
}
×tamp=
${
timestamp
}
&token=
${
token
}
&key=
${
key
}
`
);
...
...
@@ -139,7 +129,6 @@ export default {
"uid"
:
uid
}
if
(
localStorage
.
g
&&
localStorage
.
g
!=
'undefined'
)
{
// postData.groupId = parseInt(JSON.parse(localStorage.g).i)
postData
.
groupId
=
2
;
}
this
.
$http
.
post
(
apiurl
,
postData
,
{
...
...
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