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
d9ef03b3
Commit
d9ef03b3
authored
Feb 12, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d29307f4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
596 additions
and
589 deletions
+596
-589
reset.css
src/assets/css/reset.css
+5
-0
Home.vue
src/components/Home.vue
+195
-171
HotelList.vue
src/components/assetsman/HotelList.vue
+2
-1
Autologin.vue
src/components/global/Autologin.vue
+27
-43
Login.vue
src/components/global/Login.vue
+4
-12
Nav.vue
src/components/global/Nav.vue
+203
-207
index.vue
src/components/global/index.vue
+156
-150
index.js
src/plugins/index.js
+4
-5
No files found.
src/assets/css/reset.css
View file @
d9ef03b3
...
...
@@ -2,6 +2,11 @@
width
:
200px
!important
;
}
.w100
{
width
:
100px
!important
;
}
.el-input
{
display
:
inline-block
;
}
...
...
src/components/Home.vue
View file @
d9ef03b3
...
...
@@ -2,190 +2,214 @@
<div
class=
"Home"
>
<div
class=
"banner"
ref=
"banner"
>
<ul
ref=
"scrollUl"
>
<li
class=
"liItem"
>
<li
class=
"liItem"
title=
"酒店列表"
@
click=
"goUrl('HotelList')"
>
<img
src=
"../assets/img/b1.png"
alt=
""
>
<div>
<p
class=
"f22"
></p>
<p
style=
"margin-top:10px"
>
酒店管理
</p>
<p
class=
"f22"
></p>
<p
style=
"margin-top:10px"
>
ホテル一覧
</p>
</div>
</li>
<li
class=
"liItem"
>
<li
class=
"liItem"
title=
"酒店订单"
@
click=
"goUrl('HotelOrder')"
>
<img
src=
"../assets/img/b2.png"
alt=
""
>
<div>
<p
class=
"f22"
></p>
<p
style=
"margin-top:10px"
>
订单管理
</p>
<p
class=
"f22"
></p>
<p
style=
"margin-top:10px"
>
ホテル注文
</p>
</div>
</li>
</ul>
</ul>
</div>
</div>
</
template
>
<
script
>
import
moment
from
'moment'
export
default
{
name
:
'Home'
,
data
()
{
return
{
stepTask
:
true
,
}
},
created
(){
},
mounted
(){
this
.
width
=
this
.
$refs
.
banner
.
clientWidth
;
let
num
=
this
.
width
/
340
;
if
(
num
>
7
)
{
this
.
stepTask
=
false
;
}
},
methods
:{
}
,
}
import
moment
from
'moment'
export
default
{
name
:
'Home'
,
data
()
{
return
{
}
},
created
()
{},
mounted
()
{
},
methods
:
{
goUrl
(
path
)
{
this
.
$router
.
push
({
path
:
path
})
},
},
}
</
script
>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<
style
scoped
>
.Zyprogress
>>>
svg
path
:first-child
{
stroke
:
rgb
(
190
,
239
,
240
)
!important
;
}
.Xzprogress
>>>
svg
path
:first-child
{
stroke
:
rgb
(
255
,
228
,
213
)
!important
;
}
.homeContent
.assetsgk
.Circle
{
display
:
inline-block
;
width
:
14px
;
height
:
14px
;
border-radius
:
50%
;
margin-left
:
25px
;
position
:
relative
;
top
:
4px
;
}
.homeContent
.Active
{
color
:
#089bab
;
}
.navDiv
.active
{
width
:
35px
!important
;
}
.navDiv
span
{
width
:
15px
;
display
:
inline-block
;
margin
:
0
2px
;
height
:
4px
;
background
:
#111111
;
border-radius
:
4px
;
cursor
:
pointer
;
}
.navDiv
{
position
:
absolute
;
bottom
:
5px
;
width
:
100%
;
text-align
:
center
;
}
.banner
>
ul
{
width
:
2141px
;
position
:
relative
;
}
.progressDiv
>>>
svg
path
:first-child
{
stroke
:
#EBEBEB
;
stroke-width
:
6
;
}
.chartTitle
.el-select
{
width
:
102px
;
height
:
24px
;
line-height
:
24px
;
background
:
rgba
(
17
,
17
,
17
,
1
);
border-radius
:
12px
;
margin-left
:
30px
;
position
:
relative
;
}
.chartTitle
{
padding
:
20px
30px
0
30px
;
}
.chartTitle
.circle
{
display
:
inline-block
;
width
:
14px
;
height
:
14px
;
background
:
rgba
(
0
,
210
,
214
,
1
);
border-radius
:
50%
;
margin-right
:
10px
;
font-size
:
14px
;
}
.homeContent
.zcState
.ziItem
.sl
{
color
:
#A9B5C7
;
}
.homeContent
.zcState
.ziItem
{
font-size
:
12px
;
color
:
#111111
;
display
:
flex
;
align-items
:
center
;
width
:
100%
;
padding
:
25px
;
box-sizing
:
border-box
;
}
.homeContent
.zcState
{
margin-top
:
30px
;
width
:
100%
;
background
:
rgba
(
255
,
255
,
255
,
1
);
border-radius
:
20px
;
}
.homeContent
.left
{
width
:
316px
;
/* position: absolute; */
left
:
30px
;
top
:
30px
;
}
.homeContent
.right
{
width
:
calc
(
100%
-
346px
);
/* padding-left: 346px; */
box-sizing
:
border-box
;
margin-left
:
26px
;
}
.homeContent
.right
.firstDiv
{
background
:
#fff
;
border-radius
:
20px
;
}
.homeContent
>
div
{
float
:
left
;
}
.homeContent
{
width
:
100%
;
padding
:
30px
;
box-sizing
:
border-box
;
position
:
relative
;
}
.banner
{
padding-top
:
20px
;
position
:
relative
;
overflow
:
hidden
;
background
:
#fff
;
}
.banner
.liItem
:first-child
{
margin-left
:
0
;
}
.banner
.liItem
{
position
:
relative
;
width
:
340px
;
height
:
210px
;
display
:
inline-block
;
margin-left
:
-15px
;
cursor
:
pointer
;
}
.banner
.liItem
img
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
}
.banner
.liItem
div
{
position
:
absolute
;
color
:
#fff
;
font-weight
:
700
;
top
:
77px
;
left
:
54px
;
font-family
:
'muil'
;
}
.Zyprogress
>>>
svg
path
:first-child
{
stroke
:
rgb
(
190
,
239
,
240
)
!important
;
}
.Xzprogress
>>>
svg
path
:first-child
{
stroke
:
rgb
(
255
,
228
,
213
)
!important
;
}
.homeContent
.assetsgk
.Circle
{
display
:
inline-block
;
width
:
14px
;
height
:
14px
;
border-radius
:
50%
;
margin-left
:
25px
;
position
:
relative
;
top
:
4px
;
}
.homeContent
.Active
{
color
:
#089bab
;
}
.navDiv
.active
{
width
:
35px
!important
;
}
.navDiv
span
{
width
:
15px
;
display
:
inline-block
;
margin
:
0
2px
;
height
:
4px
;
background
:
#111111
;
border-radius
:
4px
;
cursor
:
pointer
;
}
.navDiv
{
position
:
absolute
;
bottom
:
5px
;
width
:
100%
;
text-align
:
center
;
}
.banner
>
ul
{
width
:
2141px
;
position
:
relative
;
}
.progressDiv
>>>
svg
path
:first-child
{
stroke
:
#EBEBEB
;
stroke-width
:
6
;
}
.chartTitle
.el-select
{
width
:
102px
;
height
:
24px
;
line-height
:
24px
;
background
:
rgba
(
17
,
17
,
17
,
1
);
border-radius
:
12px
;
margin-left
:
30px
;
position
:
relative
;
}
.chartTitle
{
padding
:
20px
30px
0
30px
;
}
.chartTitle
.circle
{
display
:
inline-block
;
width
:
14px
;
height
:
14px
;
background
:
rgba
(
0
,
210
,
214
,
1
);
border-radius
:
50%
;
margin-right
:
10px
;
font-size
:
14px
;
}
.homeContent
.zcState
.ziItem
.sl
{
color
:
#A9B5C7
;
}
.homeContent
.zcState
.ziItem
{
font-size
:
12px
;
color
:
#111111
;
display
:
flex
;
align-items
:
center
;
width
:
100%
;
padding
:
25px
;
box-sizing
:
border-box
;
}
.homeContent
.zcState
{
margin-top
:
30px
;
width
:
100%
;
background
:
rgba
(
255
,
255
,
255
,
1
);
border-radius
:
20px
;
}
.homeContent
.left
{
width
:
316px
;
/* position: absolute; */
left
:
30px
;
top
:
30px
;
}
.homeContent
.right
{
width
:
calc
(
100%
-
346px
);
/* padding-left: 346px; */
box-sizing
:
border-box
;
margin-left
:
26px
;
}
.homeContent
.right
.firstDiv
{
background
:
#fff
;
border-radius
:
20px
;
}
.homeContent
>
div
{
float
:
left
;
}
.homeContent
{
width
:
100%
;
padding
:
30px
;
box-sizing
:
border-box
;
position
:
relative
;
}
.banner
{
padding-top
:
20px
;
position
:
relative
;
overflow
:
hidden
;
background
:
#fff
;
}
.banner
.liItem
:first-child
{
margin-left
:
0
;
}
.banner
.liItem
{
position
:
relative
;
width
:
340px
;
height
:
210px
;
display
:
inline-block
;
margin-left
:
-15px
;
cursor
:
pointer
;
}
.banner
.liItem
img
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
}
.banner
.liItem
div
{
position
:
absolute
;
color
:
#fff
;
font-weight
:
700
;
top
:
77px
;
left
:
54px
;
font-family
:
'muil'
;
}
</
style
>
src/components/assetsman/HotelList.vue
View file @
d9ef03b3
...
...
@@ -118,12 +118,13 @@
this
.
getList
();
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"scm_get_GetSCMHotelPageListService"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
console
.
log
(
"this.dataList"
,
this
.
dataList
)
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
src/components/global/Autologin.vue
View file @
d9ef03b3
<
template
>
<div
class=
"Autologin"
>
<div
class=
"gifContent"
>
<img
src=
"../../assets/img/load.gif"
alt=
""
>
<img
src=
"../../assets/img/load.gif"
alt=
""
>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'login'
,
data
()
{
return
{
export
default
{
name
:
'login'
,
data
()
{
return
{
}
},
created
()
{
let
href
=
window
.
location
.
href
;
let
param
=
href
.
split
(
'?'
)[
1
].
split
(
"&"
)
;
if
(
param
)
{
let
obj
=
{};
obj
.
token
=
param
[
0
].
split
(
'='
)[
1
];
obj
.
SecretKey
=
param
[
1
].
split
(
'='
)[
1
];
localStorage
.
zcuserInfo
=
JSON
.
stringify
(
obj
);
this
.
getUserInfo
();
},
created
()
{
let
href
=
window
.
location
.
href
;
let
param
=
href
.
split
(
'?'
)[
1
].
split
(
"&"
)
;
if
(
param
)
{
let
obj
=
{};
obj
.
token
=
param
[
0
].
split
(
'='
)[
1
];
obj
.
SecretKey
=
param
[
1
].
split
(
'='
)[
1
];
localStorage
.
scmAccount
=
JSON
.
stringify
(
obj
);
this
.
getUserInfo
();
}
},
mounted
(){
},
methods
:{
getUserInfo
(){
this
.
apiJavaPost
(
"/api/user/GetUserLoginMenu"
,{},
res
=>
{
this
.
btnLoading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
let
user
=
res
.
data
.
data
;
var
userJson
=
JSON
.
stringify
(
user
);
localStorage
.
zcuserInfo
=
userJson
;
this
.
$router
.
push
({
path
:
'Home'
})
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
$router
.
push
({
path
:
'login'
})
}
},
null
);
},
mounted
()
{},
methods
:
{
getUserInfo
()
{
},
},
}
</
script
>
},
}
</
script
>
<
style
>
.Autologin
.gifContent
{
.Autologin
.gifContent
{
width
:
100%
;
height
:
100%
;
position
:
fixed
;
...
...
@@ -61,5 +44,6 @@ export default {
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
}
</
style
>
src/components/global/Login.vue
View file @
d9ef03b3
...
...
@@ -37,15 +37,7 @@ export default {
}
},
created
(){
// let href = window.location.href;
// let param = href.split('?')[1].split("&") ;
// if(param){
// let obj={};
// obj.token=param[0].split('=')[1];
// obj.SecretKey=param[1].split('=')[1];
// localStorage.zcuserInfo = JSON.stringify(obj);
// this.getUserInfo();
// }
},
mounted
(){
this
.
initData
();
...
...
@@ -58,7 +50,7 @@ export default {
if
(
res
.
data
.
resultCode
===
1
)
{
let
user
=
res
.
data
.
data
;
var
userJson
=
JSON
.
stringify
(
user
);
localStorage
.
zcuserInfo
=
userJson
;
localStorage
.
scmAccount
=
userJson
;
this
.
$router
.
push
({
path
:
'Home'
})
}
else
{
this
.
Error
(
res
.
data
.
message
);
...
...
@@ -93,7 +85,7 @@ export default {
if
(
res
.
data
.
resultCode
===
1
)
{
let
user
=
res
.
data
.
data
;
var
userJson
=
JSON
.
stringify
(
user
);
localStorage
.
zcuserInfo
=
userJson
;
localStorage
.
scmAccount
=
userJson
;
this
.
$router
.
push
({
path
:
'Home'
})
}
else
{
this
.
Error
(
res
.
data
.
message
);
...
...
@@ -103,7 +95,7 @@ export default {
);
},
},
}
</
script
>
...
...
src/components/global/Nav.vue
View file @
d9ef03b3
This diff is collapsed.
Click to expand it.
src/components/global/index.vue
View file @
d9ef03b3
This diff is collapsed.
Click to expand it.
src/plugins/index.js
View file @
d9ef03b3
...
...
@@ -12,7 +12,7 @@ export default {
//域名管理对象
Vue
.
prototype
.
domainManager
=
function
()
{
var
domainUrl
=
"http://
testapi.oytour.com
"
;
//主域名
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"
;
...
...
@@ -21,7 +21,7 @@ export default {
//domainUrl = "http://127.0.0.1"
domainUrl
=
"http://testapi.oytour.com"
}
else
if
(
window
.
location
.
host
.
indexOf
(
'oytour.com'
)
!=
-
1
)
domainUrl
=
"http://
property
.oytour.com"
domainUrl
=
"http://
reborn
.oytour.com"
}
var
obj
=
{
//主地址
...
...
@@ -160,7 +160,7 @@ export default {
},
Vue
.
prototype
.
getLocalStorage
=
function
()
{
var
localStorageData
=
window
.
localStorage
[
"
zcuserInfo
"
];
var
localStorageData
=
window
.
localStorage
[
"
scmAccount
"
];
if
(
localStorageData
!==
undefined
&&
localStorageData
!=
'undefined'
)
{
return
JSON
.
parse
(
localStorageData
);
}
else
{
...
...
@@ -234,6 +234,5 @@ export default {
value
=
value
.
replace
(
this
.
$commonUtils
.
Regex
.
isInteger
,
""
);
item
[
filed
]
=
value
;
}
}
}
}
\ No newline at end of file
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