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
0380317b
Commit
0380317b
authored
Jun 24, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
4ad4ee89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
9 deletions
+46
-9
utils.js
src/boot/utils.js
+1
-1
HomeLayout.vue
src/layouts/HomeLayout.vue
+45
-8
No files found.
src/boot/utils.js
View file @
0380317b
...
@@ -5,7 +5,7 @@ import md5 from 'js-md5'
...
@@ -5,7 +5,7 @@ import md5 from 'js-md5'
//域名管理对象
//域名管理对象
Vue
.
prototype
.
domainManager
=
function
()
{
Vue
.
prototype
.
domainManager
=
function
()
{
let
domainUrl
=
''
;
let
domainUrl
=
''
;
domainUrl
=
"http://192.168.
0.110
"
;
domainUrl
=
"http://192.168.
2.214:8082
"
;
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
window
.
location
.
hostname
;
if
(
locationName
.
indexOf
(
'testerp.oytour'
)
!==
-
1
)
{
if
(
locationName
.
indexOf
(
'testerp.oytour'
)
!==
-
1
)
{
domainUrl
=
"http://testapi.oytour.com"
;
domainUrl
=
"http://testapi.oytour.com"
;
...
...
src/layouts/HomeLayout.vue
View file @
0380317b
...
@@ -36,37 +36,74 @@
...
@@ -36,37 +36,74 @@
desc
:
"這是一家非常牛逼的旅遊網站"
desc
:
"這是一家非常牛逼的旅遊網站"
},
},
headType
:
1
,
headType
:
1
,
dataList
:
{}
dataList
:
{},
//集团编号
RB_Group_Id
:
0
,
};
};
},
},
created
()
{
created
()
{
console
.
log
(
"111"
);
this
.
$root
.
$on
(
'change-head-style'
,
param
=>
{
this
.
$root
.
$on
(
'change-head-style'
,
param
=>
{
this
.
changeHeadHandler
(
param
);
this
.
changeHeadHandler
(
param
);
})
})
},
},
mounted
()
{
mounted
()
{
this
.
getData
();
//获取集团数据
if
(
localStorage
.
baseifo
)
{
var
jObj
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'groupinfo'
));
this
.
RB_Group_Id
=
jObj
.
GroupId
;
}
else
{
this
.
getGroupData
();
}
//获取网站基础配置
if
(
localStorage
.
baseifo
)
{
var
jObj
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'baseifo'
));
this
.
baseinfo
.
logo
=
jObj
.
Config
.
Logo
;
this
.
baseinfo
.
name
=
jObj
.
Config
.
Name
;
this
.
baseinfo
.
nav
.
navs
=
jObj
.
HeaderList
;
this
.
baseinfo
.
nav
.
bg
=
jObj
.
Config
.
BgColor
;
}
else
{
this
.
getData
();
}
},
},
methods
:
{
methods
:
{
changeHeadHandler
(
t
)
{
changeHeadHandler
(
t
)
{
this
.
headType
=
t
;
this
.
headType
=
t
;
},
},
//获取集团数据
getGroupData
()
{
let
locationName
=
window
.
location
.
hostname
;
var
msg
=
{
GroupId
:
0
,
B2BDomain
:
locationName
};
this
.
apipost
(
"admin_get_GetGroupDomain"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
jsonData
=
JSON
.
stringify
(
res
.
data
.
data
);
window
.
localStorage
.
setItem
(
"groupinfo"
,
jsonData
);
}
},
err
=>
{}
);
},
getData
()
{
getData
()
{
this
.
apipost
(
this
.
apipost
(
"ws_get_GetHomePage"
,
{
"ws_get_GetHomePage"
,
{
RB_Group_Id
:
2
RB_Group_Id
:
this
.
RB_Group_Id
},
},
res
=>
{
res
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
this
.
dataList
=
res
.
data
.
data
;
if
(
this
.
dataList
)
{
if
(
this
.
dataList
)
{
var
jsonData
=
JSON
.
stringify
(
res
.
data
.
data
);
window
.
localStorage
.
setItem
(
"baseifo"
,
jsonData
);
this
.
baseinfo
.
logo
=
this
.
dataList
.
Config
.
Logo
;
this
.
baseinfo
.
logo
=
this
.
dataList
.
Config
.
Logo
;
this
.
baseinfo
.
name
=
this
.
dataList
.
Config
.
Name
;
this
.
baseinfo
.
name
=
this
.
dataList
.
Config
.
Name
;
this
.
baseinfo
.
nav
.
navs
=
this
.
dataList
.
HeaderList
;
this
.
baseinfo
.
nav
.
navs
=
this
.
dataList
.
HeaderList
;
this
.
baseinfo
.
nav
.
bg
=
this
.
dataList
.
Config
.
BgColor
;
this
.
baseinfo
.
nav
.
bg
=
this
.
dataList
.
Config
.
BgColor
;
}
}
}
}
},
},
...
...
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