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
4b305ddc
Commit
4b305ddc
authored
May 08, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
6e47ec1e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
15 deletions
+45
-15
busDetails.vue
pages/bus/busDetails.vue
+31
-13
index.vue
pages/bus/index.vue
+12
-0
order.vue
pages/bus/order.vue
+1
-1
orderInfor.vue
pages/bus/orderInfor.vue
+1
-1
No files found.
pages/bus/busDetails.vue
View file @
4b305ddc
...
@@ -146,16 +146,18 @@
...
@@ -146,16 +146,18 @@
</view>
</view>
<!-- #endif -->
<!-- #endif -->
<view
class=
"busTispBox"
style=
"margin-top: 20rpx;"
>
<view
class=
"busTispBox"
style=
"margin-top: 20rpx;"
>
<template
v-if=
"(dataList.PriceIncludeList&&dataList.PriceIncludeList.length>0)||
(dataList.PriceNotIncludeList&&dataList.PriceNotIncludeList.length>0)"
>
<view
class=
"busTispTitle"
>
费用说明
</view>
<view
class=
"busTispTitle"
>
费用说明
</view>
<view
class=
"busTispInfor"
>
<view
class=
"busTispInfor"
>
<view
class=
"busTispFY"
>
<view
class=
"busTispFY"
v-if=
"dataList.PriceIncludeList&&dataList.PriceIncludeList.length>0"
>
费用包含:
费用包含:
<text
class=
"bus-tagText"
v-for=
"(item,index) in dataList.PriceIncludeList"
<text
class=
"bus-tagText"
v-for=
"(item,index) in dataList.PriceIncludeList"
:key=
"index"
>
:key=
"index"
>
{{
item
}}
{{
item
}}
</text>
</text>
</view>
</view>
<view
class=
"busTispFY"
>
<view
class=
"busTispFY"
v-if=
"dataList.PriceNotIncludeList&&dataList.PriceNotIncludeList.length>0"
>
费用不包含:
费用不包含:
<text
class=
"bus-tagText active"
v-for=
"(item,index) in dataList.PriceNotIncludeList"
<text
class=
"bus-tagText active"
v-for=
"(item,index) in dataList.PriceNotIncludeList"
:key=
"index"
>
:key=
"index"
>
...
@@ -163,10 +165,13 @@
...
@@ -163,10 +165,13 @@
</text>
</text>
</view>
</view>
</view>
</view>
<view
class=
"busTispTitle"
>
购买须知
</view>
</
template
>
<view
class=
"busTispInfor"
>
<
template
v-if=
"dataList.BuyNotes"
>
{{
dataList
.
BuyNotes
}}
<view
class=
"busTispTitle"
>
购买须知
</view>
</view>
<view
class=
"busTispInfor"
>
{{
dataList
.
BuyNotes
}}
</view>
</
template
>
<view
class=
"busTispTitle"
>
<view
class=
"busTispTitle"
>
<view>
接送点范围
</view>
<view>
接送点范围
</view>
<view
v-for=
"(item,index) in dataList.PlaceList"
<view
v-for=
"(item,index) in dataList.PlaceList"
...
@@ -184,10 +189,13 @@
...
@@ -184,10 +189,13 @@
:scale=
"scale"
>
:scale=
"scale"
>
</map>
</map>
</view>
</view>
<view
class=
"busTispTitle"
>
取消政策
</view>
<
template
v-if=
"dataList.CancelPolicy"
>
<view
class=
"busTispInfor"
style=
"border: 0;"
>
<view
class=
"busTispTitle"
>
取消政策
</view>
{{
dataList
.
CancelPolicy
}}
<view
class=
"busTispInfor"
style=
"border: 0;"
>
</view>
{{
dataList
.
CancelPolicy
}}
</view>
</
template
>
</view>
</view>
</view>
</view>
...
@@ -626,9 +634,19 @@
...
@@ -626,9 +634,19 @@
this
.
includePoints
=
[]
this
.
includePoints
=
[]
this
.
dataList
=
res
.
data
;
this
.
dataList
=
res
.
data
;
if
(
!
this
.
orderMsg
.
CarId
)
{
if
(
!
this
.
orderMsg
.
CarId
)
{
this
.
orderMsg
.
CarId
=
this
.
dataList
.
CarTypeList
[
0
].
Id
if
(
this
.
busInfor
.
CarType
!=
3
&&
this
.
busInfor
.
peopleNum
){
this
.
orderMsg
.
CarName
=
this
.
dataList
.
CarTypeList
[
0
].
CarName
let
i
=
this
.
dataList
.
CarTypeList
.
findIndex
(
item
=>
{
this
.
orderMsg
.
PeopleNum
=
this
.
dataList
.
CarTypeList
[
0
].
PeopleNum
return
item
.
PeopleNum
>=
this
.
busInfor
.
peopleNum
})
let
item
=
this
.
dataList
.
CarTypeList
[
i
]
this
.
orderMsg
.
CarId
=
item
.
Id
this
.
orderMsg
.
CarName
=
item
.
CarName
this
.
orderMsg
.
PeopleNum
=
item
.
PeopleNum
}
else
{
this
.
orderMsg
.
CarId
=
this
.
dataList
.
CarTypeList
[
0
].
Id
this
.
orderMsg
.
CarName
=
this
.
dataList
.
CarTypeList
[
0
].
CarName
this
.
orderMsg
.
PeopleNum
=
this
.
dataList
.
CarTypeList
[
0
].
PeopleNum
}
}
}
this
.
getPrices
()
this
.
getPrices
()
for
(
let
i
=
0
;
i
<
res
.
data
.
ImageList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
res
.
data
.
ImageList
.
length
;
i
++
)
{
...
...
pages/bus/index.vue
View file @
4b305ddc
...
@@ -272,6 +272,18 @@
...
@@ -272,6 +272,18 @@
startYear
:
2025
,
startYear
:
2025
,
}
}
},
},
onLoad
(
options
)
{
},
onShow
()
{
// uni.getStorage({
// key: "busInfor",
// success: (res) => {
// let obj = JSON.parse(res.data);
// this.busInfor = obj;
// },
// });
},
created
()
{
created
()
{
this
.
startYear
=
this
.
$utils
.
GetDateFewFaysLater
(
0
).
year
this
.
startYear
=
this
.
$utils
.
GetDateFewFaysLater
(
0
).
year
},
},
...
...
pages/bus/order.vue
View file @
4b305ddc
...
@@ -290,7 +290,7 @@
...
@@ -290,7 +290,7 @@
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
view
class
=
"buyTispBox"
>
<
view
class
=
"buyTispBox"
v
-
if
=
"dataList.BuyNotes"
>
<
view
class
=
"big-title"
>
<
view
class
=
"big-title"
>
<
text
class
=
""
>
购买说明
<
/text
>
<
text
class
=
""
>
购买说明
<
/text
>
<
/view
>
<
/view
>
...
...
pages/bus/orderInfor.vue
View file @
4b305ddc
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
<view
class=
"ResInforL"
>
人数
</view>
<view
class=
"ResInforL"
>
人数
</view>
<view
class=
"ResInforR"
>
最多坐
{{
orderInfor
.
PeopleNum
}}
人
</view>
<view
class=
"ResInforR"
>
最多坐
{{
orderInfor
.
PeopleNum
}}
人
</view>
</view>
</view>
<view
class=
"ResInforText row"
>
<view
class=
"ResInforText row"
v-if=
"dataList.CancelPolicy"
>
<view
class=
"ResInforL"
>
取消政策
</view>
<view
class=
"ResInforL"
>
取消政策
</view>
<view
class=
"ResInforR"
>
<view
class=
"ResInforR"
>
<text>
<text>
...
...
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