Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
f50467e2
Commit
f50467e2
authored
Jan 04, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
5dd93d0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
HotelList.vue
src/components/Hotel/singleProduct/HotelList.vue
+20
-3
No files found.
src/components/Hotel/singleProduct/HotelList.vue
View file @
f50467e2
...
...
@@ -81,7 +81,8 @@
:height=
"tableHeight"
>
<el-table-column
fixed
label=
"酒店名称"
min-width=
"180"
>
<template
slot-scope=
"scope"
>
<div
style=
"text-decoration: underline;cursor:pointer"
@
click=
"GotoHotel(scope.row.HotelId)"
>
<!-- @click="GotoHotel(scope.row.HotelId)" -->
<div
style=
"text-decoration: underline;cursor:pointer"
@
click=
"showHotelDetailHandler(scope.row.HotelId)"
>
{{
scope
.
row
.
HotelName
}}
</div>
<div>
{{
scope
.
row
.
TotalInventory
}}
</div>
</
template
>
...
...
@@ -247,21 +248,28 @@
</div>
</el-dialog>
<!-- 暂存购物车 -->
<el-dialog
custom-class=
"w800"
title=
"酒店信息"
:visible
.
sync=
"showOrderPreview"
center
>
<el-dialog
custom-class=
"w800"
title=
"酒店信息"
:visible
.
sync=
"showOrderPreview"
center
@
close=
"removeEditor"
>
<TableOperation
:editorType=
"editorType"
:HotelRow=
"orderSubmitObj"
:hotelInfor=
"orderSubmitItemObj"
@
close=
"close"
></TableOperation>
</el-dialog>
<!-- 购物车 -->
<ListCar
v-if=
"rightCarOpen"
@
close=
"close"
@
success=
"success"
@
editor=
"editor"
></ListCar>
<!-- 酒店详情信息 -->
<el-dialog
custom-class=
"w700"
title=
"酒店详情"
:visible
.
sync=
"showHotelDetails"
center
@
close=
"close"
>
<hotelDetails
:hotelId=
"HotelDetailId"
></hotelDetails>
</el-dialog>
</div>
</template>
<
script
>
import
SamplePriceList
from
'./components/SamplePriceList'
import
TableOperation
from
'./components/TableOperation'
import
ListCar
from
'./components/ListCar'
import
hotelDetails
from
'./components/hotelDetails'
export
default
{
components
:
{
SamplePriceList
,
TableOperation
,
ListCar
},
components
:
{
SamplePriceList
,
TableOperation
,
ListCar
,
hotelDetails
},
data
()
{
return
{
showHotelDetails
:
false
,
HotelDetailId
:
0
,
editorType
:
0
,
rightCarOpen
:
false
,
HotelLength
:
0
,
...
...
@@ -374,6 +382,14 @@
};
},
methods
:
{
removeEditor
(){
localStorage
.
removeItem
(
'editor'
)
},
// 酒店信息详情
showHotelDetailHandler
(
hotelId
){
this
.
HotelDetailId
=
hotelId
this
.
showHotelDetails
=
true
},
// 编辑购物车
editor
(
x
){
let
state
=
true
...
...
@@ -411,6 +427,7 @@
this
.
showOrderPreview
=
false
this
.
rightCarOpen
=
false
this
.
showHotelDetails
=
false
localStorage
.
removeItem
(
"editor"
)
},
// 加入购物车
...
...
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