Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CRM
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
华国豪
CRM
Commits
e32b731e
Commit
e32b731e
authored
May 04, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save
parent
e6cf6f68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
44 deletions
+0
-44
index.js
src/plugins/index.js
+0
-44
No files found.
src/plugins/index.js
View file @
e32b731e
...
...
@@ -11,51 +11,7 @@ export default {
return
process
.
env
.
NODE_ENV
!==
'development'
;
},
//域名管理对象
<<<<<<<
HEAD
Vue
.
prototype
.
domainManager
=
domainManager
,
=======
Vue
.
prototype
.
domainManager
=
function
()
{
//CRM API
let
domainUrl
=
""
;
// domainUrl = "http://192.168.10.128:8500";
domainUrl
=
"http://192.168.10.9:8098"
;
// domainUrl = "http://192.168.10.226";
// domainUrl = "http://crm.oytour.com"
//domainUrl = "http://localhost:5003";
let
locationName
=
window
.
location
.
hostname
;
//旅游ERPApi
let
domainPostUrl
=
""
domainPostUrl
=
"http://192.168.10.9:8083"
;
// domainPostUrl = "http://192.168.10.226";
// domainPostUrl = "http://192.168.10.128";
if
(
this
.
isOnline
())
{
if
(
window
.
location
.
host
.
indexOf
(
'fcrmyx.oytour.com'
)
!=
-
1
)
{
domainUrl
=
"http://crm.oytour.com"
domainPostUrl
=
"http://reborn.oytour.com"
}
else
{
domainUrl
=
"http://testcrm.oytour.com"
domainPostUrl
=
"http://testapi.oytour.com"
}
}
var
obj
=
{
//主地址
DomainUrl
:
domainUrl
,
DownLoadContractUrl
:
domainPostUrl
,
//阿里服务器地址
AliUrl
:
"https://reborndev.oss-cn-hangzhou.aliyuncs.com"
,
//CRMApi地址
PostUrl
:
domainUrl
,
//旅游ERPApi地址
ERPApiUrl
:
domainPostUrl
+
"/api/common/post"
,
ERPApiUrlFile
:
domainPostUrl
+
"/api/file/GetFileFromWebApi"
,
javaUrl
:
locationName
.
indexOf
(
'testb2b'
)
==
-
1
?
"http://efficient.oytour.com"
:
locationName
.
indexOf
(
'testb2b.oytour.com'
)
!==
-
1
?
"http://47.96.12.235:9001"
:
"http://192.168.10.215:9000"
,
ViittoFileUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'testb2b.oytour.com'
)
!==
-
1
?
"http://staticfile.oytour.com"
:
'http://192.168.10.214:8130'
,
UploadUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'testb2b.oytour.com'
)
!==
-
1
?
"http://uploadfile.oytour.com"
:
"http://192.168.10.214:8120"
,
erpRoutingUrl
:
locationName
.
indexOf
(
'oytour'
)
!==
-
1
||
locationName
.
indexOf
(
'testb2b.oytour.com'
)
!==
-
1
?
"http://yx.oytour.com/#/"
:
"http://localhost:8080/#/"
// "http://www.test.com:8081/#/",
};
return
obj
;
},
>>>>>>>
4769089
d22bbfc75e9251c430b64c85c4493d5aa
//消息成功提示
Vue
.
prototype
.
Success
=
function
(
msg
)
{
...
...
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