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
b1a97027
Commit
b1a97027
authored
Jun 03, 2021
by
ZJG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改专车的滚动
parent
e1a851de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
12 deletions
+45
-12
bookaCarList.vue
pages/guidecar/bookaCarList.vue
+42
-9
allorderdetails.vue
pages/jiuzhai/allorderdetails.vue
+3
-3
No files found.
pages/guidecar/bookaCarList.vue
View file @
b1a97027
...
...
@@ -59,7 +59,7 @@
}
.box-rili-item
{
// width: 50px;
无效
width
:
50px
;
//
无效
height
:
50px
;
border-radius
:
10px
;
font-size
:
13px
;
...
...
@@ -330,11 +330,17 @@
</view>
<view
class=
"box-rili"
>
<view
class=
"box-rili-scroll"
>
<view
class=
"box-rili-item"
:class=
"
{'box-rili-item2':msg.Q_Date == x.date}"
v-for="(x,y) in topdateList" :key='y' @click="choicedatelist(x)">
<span
style=
'width: 50px;display: inline-block;text-align: center;'
>
{{
x
.
showdate
}}
</span>
<span>
{{
x
.
week
}}
</span>
</view>
<scroll-view
:scroll-x=
'true'
style=
"width: 100%;"
@
scroll=
'getscroll'
:scroll-left=
"scrollleft"
>
<view
style=
"display: flex;align-items: center;"
>
<view
class=
"box-rili-item"
:class=
"
{'box-rili-item2':msg.Q_Date == x.date}"
v-for="(x,y) in topdateList" :key='y' @click="choicedatelist(x)">
<span
style=
'width: 50px;display: inline-block;text-align: center;'
>
{{
x
.
showdate
}}
</span>
<span>
{{
x
.
week
}}
</span>
</view>
</view>
</scroll-view>
</view>
<view
class=
"porili"
@
click=
"showcalendar = true"
>
<image
...
...
@@ -565,6 +571,7 @@
StartDate
:
''
,
EndDate
:
''
,
},
scrollleft
:
0
}
...
...
@@ -581,7 +588,9 @@
this
.
msg
.
ArriveCityType
=
this
.
carMsg
.
ArriveCityType
;
this
.
msg
.
Q_Date
=
this
.
carMsg
.
Q_Date
;
}
this
.
$nextTick
(
function
()
{
this
.
scrollleft
=
0
});
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
gettimeList
()
this
.
init
();
...
...
@@ -591,7 +600,10 @@
});
},
methods
:
{
methods
:
{
getscroll
(
e
){
console
.
log
(
e
.
detail
.
scrollLeft
)
},
yuding
(
x
){
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
...
...
@@ -625,7 +637,8 @@
let
nowtime
=
date1
.
getFullYear
()
+
"-"
+
(
date1
.
getMonth
()
+
1
)
+
"-"
+
date1
.
getDate
();
let
htime
=
date2
.
getFullYear
()
+
"-"
+
(
date2
.
getMonth
()
+
1
)
+
"-"
+
date2
.
getDate
();
this
.
topdateList
=
this
.
getDayAll
(
nowtime
,
htime
)
this
.
startDate
=
nowtime
this
.
startDate
=
nowtime
;
this
.
getscollwz
()
},
getDayAll
(
starDay
,
endDay
)
{
//根据2个时间段获取之间的所有日期
...
...
@@ -695,6 +708,26 @@
this
.
msg
.
pageIndex
=
1
;
this
.
g
=
[];
this
.
init
()
this
.
getscollwz
()
},
getscollwz
(){
//在日历上选择了列表上滚动
let
index
=
0
this
.
topdateList
.
map
((
x
,
i
)
=>
{
if
(
x
.
date
==
this
.
msg
.
Q_Date
){
index
=
i
;
console
.
log
(
index
)
return
}
})
if
(
index
>
3
){
this
.
$nextTick
(
function
()
{
this
.
scrollleft
=
(
index
-
2
)
*
58
});
}
else
{
this
.
$nextTick
(
function
()
{
this
.
scrollleft
=
0
});
}
},
getclose
()
{
this
.
showcalendar
=
false
;
...
...
pages/jiuzhai/allorderdetails.vue
View file @
b1a97027
...
...
@@ -304,12 +304,12 @@
<view
class=
"box-c-caritem-l"
>
付款方式
</view>
<view
class=
"box-c-caritem-r"
>
{{
OrderInfo
.
PaymentWayName
}}
</view>
</view>
<view
class=
"box-c-caritem"
>
<
!--
<
view
class=
"box-c-caritem"
>
<view
class=
"box-c-caritem-l"
>
应收
</view>
<view
class=
"box-c-caritem-r"
>
¥
{{
OrderInfo
.
PreferPrice
}}
元
</view>
</view>
</view>
-->
<view
class=
"box-c-caritem"
>
<view
class=
"box-c-caritem-l"
>
实收
</view>
<view
class=
"box-c-caritem-l"
>
金额
</view>
<view
class=
"box-c-caritem-r"
><span
style=
'color:#F20707'
>
¥
{{
OrderInfo
.
Income
}}
元
</span></view>
</view>
</view>
...
...
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