Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
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
viitto
million
Commits
6b568b1c
Commit
6b568b1c
authored
Sep 01, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a594ca66
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
25 deletions
+36
-25
utils.js
src/boot/utils.js
+12
-3
travel-list.vue
src/components/group/travel-list.vue
+1
-1
hor-btm.vue
src/components/navs/hor-btm.vue
+20
-18
HomeLayout.vue
src/layouts/HomeLayout.vue
+2
-2
Index.vue
src/pages/Index.vue
+1
-1
No files found.
src/boot/utils.js
View file @
6b568b1c
...
...
@@ -7,10 +7,11 @@ Vue.prototype.domainManager = function () {
let
domainUrl
=
''
;
domainUrl
=
"http://192.168.2.214:8082"
;
domainUrl
=
"http://127.0.0.1"
;
let
locationName
=
location
.
hostname
;
if
(
locationName
.
indexOf
(
'testerp.oytour'
)
!==
-
1
)
{
let
domainNameUrl
=
this
.
GetDomain
();
domainNameUrl
=
"http://tmb2b.oytour.com/"
if
(
domainNameUrl
.
indexOf
(
'testerp.oytour'
)
!==
-
1
)
{
domainUrl
=
"http://testapi.oytour.com"
;
}
else
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
}
else
if
(
domainNameUrl
.
indexOf
(
'oytour'
)
!==
-
1
)
{
domainUrl
=
"http://reborn.oytour.com"
;
}
var
obj
=
{
...
...
@@ -24,6 +25,14 @@ Vue.prototype.domainManager = function () {
return
obj
;
}
//获取当前域名
Vue
.
prototype
.
GetDomain
=
function
()
{
var
domainNameUrl
=
window
.
location
.
hostname
;
//domainNameUrl="tmb2b.oytour.com";
return
domainNameUrl
;
}
//HTTP提交数据
Vue
.
prototype
.
apipost
=
function
(
cmd
,
msg
,
successCall
,
faildCall
)
{
if
(
msg
==
null
||
msg
==
""
)
{
...
...
src/components/group/travel-list.vue
View file @
6b568b1c
...
...
@@ -199,7 +199,7 @@
if
(
currenthref
.
indexOf
(
"#"
)
>
-
1
)
{
resultUrl
=
currenthref
.
substring
(
0
,
currenthref
.
indexOf
(
'/#/'
))
+
"/#"
+
newUrl
;
}
else
{
resultUrl
=
location
.
hostname
;
resultUrl
=
this
.
GetDomain
()
;
if
(
location
.
port
!=
80
)
{
resultUrl
+=
":"
+
location
.
port
;
}
...
...
src/components/navs/hor-btm.vue
View file @
6b568b1c
...
...
@@ -361,23 +361,25 @@
</div>
<div
class=
"branch-company"
>
<div
class=
"footer-box"
>
<div
class=
"footer_title1"
>
{{
dataList
.
BranchList
[
0
].
Name
}}
</div>
<table
class=
"footer_table"
>
<tbody>
<tr>
<td
class=
"footer_tbtitle"
>
地址
</td>
<td>
{{
dataList
.
BranchList
[
0
].
Address
}}
</td>
</tr>
<tr>
<td
class=
"footer_tbtitle"
>
電話
</td>
<td>
{{
dataList
.
BranchList
[
0
].
Tel
}}
</td>
</tr>
<tr>
<td
class=
"footer_tbtitle"
>
傳真
</td>
<td>
{{
dataList
.
BranchList
[
0
].
Fax
}}
</td>
</tr>
</tbody>
</table>
<template
v-if=
"dataList.BranchList&&dataList.BranchList.length>0"
>
<div
class=
"footer_title1"
>
{{
dataList
.
BranchList
[
0
].
Name
}}
</div>
<table
class=
"footer_table"
>
<tbody>
<tr>
<td
class=
"footer_tbtitle"
>
地址
</td>
<td>
{{
dataList
.
BranchList
[
0
].
Address
}}
</td>
</tr>
<tr>
<td
class=
"footer_tbtitle"
>
電話
</td>
<td>
{{
dataList
.
BranchList
[
0
].
Tel
}}
</td>
</tr>
<tr>
<td
class=
"footer_tbtitle"
>
傳真
</td>
<td>
{{
dataList
.
BranchList
[
0
].
Fax
}}
</td>
</tr>
</tbody>
</table>
</
template
>
</div>
</div>
</div>
...
...
@@ -454,7 +456,7 @@
},
methods
:
{
getShowId
()
{
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
this
.
GetDomain
()
;
var
routeStr
=
this
.
$route
.
path
.
toLowerCase
();
var
showId
=
0
;
switch
(
routeStr
)
{
...
...
src/layouts/HomeLayout.vue
View file @
6b568b1c
...
...
@@ -138,7 +138,7 @@
},
//获取集团数据
getGroupData
()
{
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
this
.
GetDomain
()
;
var
msg
=
{
GroupId
:
0
,
B2BDomain
:
locationName
,
...
...
@@ -158,7 +158,7 @@
},
//获取网站配置数据
getConfigData
()
{
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
this
.
GetDomain
()
;
this
.
apipost
(
"ws_get_GetWebSiteConfig"
,
{
RB_Group_Id
:
this
.
RB_Group_Id
,
...
...
src/pages/Index.vue
View file @
6b568b1c
...
...
@@ -245,7 +245,7 @@
},
methods
:
{
getHomeData
()
{
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
this
.
GetDomain
()
;
var
msg
=
{
RB_Group_Id
:
this
.
RB_Group_Id
,
B2BDomain
:
locationName
...
...
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