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
b5115e2d
Commit
b5115e2d
authored
Jul 09, 2025
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
9ad78cc1
652db2c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
hotelSpider.vue
src/components/Hotel/hotelSpider.vue
+15
-16
No files found.
src/components/Hotel/hotelSpider.vue
View file @
b5115e2d
...
...
@@ -35,21 +35,22 @@
<div>
<div
style=
"color:red;margin-bottom:5px;"
>
价格实时变动,以下价格仅供参考。
</div>
<el-table
:data=
"processedData"
border
style=
"width: 100%"
v-loading=
'loading'
:span-method=
"objectSpanMethod"
:header-cell-style=
"
{background: '#f5f7fa', fontWeight: 'bold'}" max-height="6
9
0px" highlight-current-row>
:header-cell-style=
"
{background: '#f5f7fa', fontWeight: 'bold'}" max-height="6
7
0px" highlight-current-row>
<el-table-column
prop=
"DiDaHotelName"
label=
"酒店名称"
width=
"200"
align=
"center"
fixed
></el-table-column>
<el-table-column
prop=
"priceType"
label=
"类型"
width=
"70"
align=
"center"
fixed
></el-table-column>
<el-table-column
v-for=
"(header, index) in dateHeaders"
:key=
"index"
:label=
"header.label"
align=
"center"
min-width=
"75"
>
<template
slot-scope=
"scope"
>
<el-tooltip
content=
"点击查看详情"
>
<span
v-if=
"scope.row.priceType === '直客价'"
:style=
"
{color: scope.row.SubList[index].Price
<scope
.
row
.
SubList
[
index
].
TeamPrice
?
'
red
'
:
''}"
@
click=
"gotoPage(1,scope.row.SubList[index])"
style=
"cursor:pointer; text-decoration: underline
"
>
@
click=
"gotoPage(1,scope.row.SubList[index])"
style=
"cursor:pointer;
"
>
{{
scope
.
row
.
SubList
[
index
].
Price
}}
</span>
<span
v-else
@
click=
"gotoPage(2,scope.row.SubList[index])"
style=
"cursor:pointer;text-decoration: underline"
>
<span
v-else
@
click=
"gotoPage(2,scope.row.SubList[index])"
style=
"cursor:pointer;"
>
{{
scope
.
row
.
SubList
[
index
].
TeamPrice
}}
</span>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -147,8 +148,6 @@
.
CheckInDate
+
"&EndDate="
+
item
.
CheckOutDate
;
window
.
open
(
dlUrl
);
}
console
.
log
(
"type"
,
type
);
console
.
log
(
"row"
,
row
);
},
// 单元格合并方法
objectSpanMethod
({
...
...
@@ -225,6 +224,7 @@
// }
}
let
myDate
=
new
Date
();
myDate
.
setDate
(
myDate
.
getDate
()
+
14
);
let
nowDate
=
myDate
.
getFullYear
()
+
"-"
+
...
...
@@ -232,11 +232,10 @@
"-"
+
myDate
.
getDate
();
this
.
msg
.
QStartDate
=
nowDate
;
var
currentDate
=
new
Date
();
// 获取当前时间
currentDate
.
setMonth
(
currentDate
.
getMonth
()
+
1
);
// 将当前时间的月份加1
this
.
msg
.
QEndDate
=
currentDate
.
getFullYear
()
+
"-"
+
parseInt
(
currentDate
.
getMonth
()
+
1
)
+
"-"
+
currentDate
.
getDate
();
myDate
.
setMonth
(
myDate
.
getMonth
()
+
1
);
// 将当前时间的月份加1
this
.
msg
.
QEndDate
=
myDate
.
getFullYear
()
+
"-"
+
parseInt
(
myDate
.
getMonth
()
+
1
)
+
"-"
+
myDate
.
getDate
();
this
.
getHotelList
();
},
mounted
()
{
...
...
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