Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
jz_Travel
Commits
bfc6125f
Commit
bfc6125f
authored
Jun 03, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时提交线路详情
parent
7a8d3734
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
index.vue
pages/jiuzhai/components/sign/index.vue
+15
-9
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+1
-1
No files found.
pages/jiuzhai/components/sign/index.vue
View file @
bfc6125f
...
...
@@ -61,8 +61,8 @@
]"
:style=
"
{ width: (dayWidth - 10) / 7 + 'px',borderRadius:line == end[0]
&&
index == end[1]?'0px 6px 6px 0px':'',backgroundColor:line == end[0]
&&
index == end[1]?'#111':'',color:line == end[0]
&&
index == end[1]?'#FFFFFF':''}">
<view
style=
"padding-top:2px;padding-bottom:2px;"
>
{{
item
}}
</view>
<view
class=
"select-style"
v-if=
"line == start[0] && index == start[1]"
>
最早
</view>
<view
class=
"select-style"
v-if=
"line == end[0] && index == end[1]"
>
最晚
</view>
<
!--
<
view
class=
"select-style"
v-if=
"line == start[0] && index == start[1]"
>
最早
</view>
<view
class=
"select-style"
v-if=
"line == end[0] && index == end[1]"
>
最晚
</view>
-->
<view
style=
"font-size:12px;padding-bottom: 3px;"
v-if=
"priceStauts.length > 0"
>
<view
v-if=
"priceStauts[line][index]>0"
>
¥
{{
priceStauts
[
line
][
index
]
}}
</view>
<view
v-if=
"priceStauts[line][index]
<0
"
>
无房
</view>
...
...
@@ -166,7 +166,7 @@
this
.
dayWidth
=
res
.
windowWidth
;
}
});
this
.
priceStauts
=
this
.
initPrice
()
this
.
setDate
();
var
dateTime
=
new
Date
();
dateTime
=
dateTime
.
setDate
(
dateTime
.
getDate
()
+
1
);
...
...
@@ -192,7 +192,8 @@
})
this
.
priceStauts
=
this
.
initPrice
()
console
.
log
(
this
.
priceStauts
,
this
.
priceList
)
//如果需要日期的价格,-1为无房,其他价格代表正常
// if (option && option.request) {
// uni.request({
...
...
@@ -297,13 +298,18 @@
var
days
=
[];
var
week
=
0
;
for
(
var
j
=
0
;
j
<
new
Date
(
year
,
month
+
1
,
0
).
getDate
();
j
++
)
{
let
isexsit
=
false
this
.
priceList
.
forEach
(
x
=>
{
if
(
x
.
startDate
==
`
${
year
}
-
${
month
+
1
}
-
${
j
+
1
}
`
){
let
m
=
(
month
+
1
)
>
9
?(
month
+
1
):
"0"
+
(
month
+
1
)
let
d
=
(
j
+
1
)
>
9
?(
j
+
1
):
"0"
+
(
j
+
1
)
if
(
x
.
startDate
==
`
${
year
}
-
${
m
}
-
${
d
}
`
){
isexsit
=
true
days
.
push
(
x
.
b2BPrice
)
}
else
{
days
.
push
(
0
)
}
})
if
(
!
isexsit
){
days
.
push
(
0
)
}
}
data
.
push
(
days
)
if
(
month
==
11
)
{
...
...
@@ -314,7 +320,7 @@
}
}
return
this
.
date
;
return
data
;
},
//月份补零
setMonth
(
dateIndex
)
{
...
...
@@ -673,7 +679,7 @@
/* 入住离开时间的color */
.bg-orange
{
background
:
#111111
!important
;
border-radius
:
6px
0px
0px
6px
!important
;
border-radius
:
6px
!important
;
}
...
...
pages/jiuzhai/jz_LineDetail.vue
View file @
bfc6125f
...
...
@@ -279,7 +279,7 @@
</view>
</view>
<u-popup
v-model=
"showDateChosen"
mode=
"bottom"
border-radius=
"20"
length=
"90%"
:safe-area-inset-bottom=
"true"
>
<canlendar
@
finish=
"chosenDateResult"
></canlendar>
<canlendar
@
finish=
"chosenDateResult"
:priceList=
"dataList.priceList"
></canlendar>
</u-popup>
</scroll-view>
</template>
...
...
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