Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
panyongping
uni-pdtravel
Commits
dd4f9359
Commit
dd4f9359
authored
Nov 16, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug处理
parent
8068d968
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
scenicCombiOrder.vue
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
+9
-0
scenicSingleOrder.vue
pages/scenic/scenicSingleOrder/scenicSingleOrder.vue
+8
-0
No files found.
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
View file @
dd4f9359
...
@@ -445,6 +445,7 @@ export default {
...
@@ -445,6 +445,7 @@ export default {
for
(
let
i
=
0
;
i
<
this
.
productList
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
this
.
productList
.
length
;
i
++
){
let
item
=
this
.
productList
[
i
]
let
item
=
this
.
productList
[
i
]
item
.
buyNum
=
1
,
//默认为1
item
.
buyNum
=
1
,
//默认为1
item
.
realMaxNum
=
999
,
//默认最大值为999
item
.
chooseContact
=
[]
//选中的游客信息列表
item
.
chooseContact
=
[]
//选中的游客信息列表
item
.
contactNum
=
1
//需要选择几位联系人数量
item
.
contactNum
=
1
//需要选择几位联系人数量
if
(
item
.
status
==
1
){
//任何一个产品下架,该组合票为下架状态
if
(
item
.
status
==
1
){
//任何一个产品下架,该组合票为下架状态
...
@@ -725,6 +726,10 @@ export default {
...
@@ -725,6 +726,10 @@ export default {
this
.
maxBookNum
=
999
//默认可以去支付
this
.
maxBookNum
=
999
//默认可以去支付
//由于会多次进行比较,防止出现bug,故重新增加一个字段,获取实际最大购买数量
//由于会多次进行比较,防止出现bug,故重新增加一个字段,获取实际最大购买数量
item
.
realMaxNum
=
Math
.
min
(
item
.
maxBookNum
,
item2
.
surplus
)
item
.
realMaxNum
=
Math
.
min
(
item
.
maxBookNum
,
item2
.
surplus
)
//超过最大值时等于最大值
if
(
item
.
buyNum
>
item
.
realMaxNum
){
item
.
buyNum
=
item
.
realMaxNum
}
for
(
let
i
=
0
;
i
<
this
.
productList
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
this
.
productList
.
length
;
i
++
){
let
item
=
this
.
productList
[
i
]
let
item
=
this
.
productList
[
i
]
//任何一个产品无库存时,无法进行支付
//任何一个产品无库存时,无法进行支付
...
@@ -782,6 +787,10 @@ export default {
...
@@ -782,6 +787,10 @@ export default {
item
.
timeActive
=
index2
item
.
timeActive
=
index2
item
.
cruisePlanId
=
item2
.
cruisePlanId
//获取班次Id
item
.
cruisePlanId
=
item2
.
cruisePlanId
//获取班次Id
item
.
realMaxNum
=
Math
.
min
(
item
.
realMaxNum
,
item2
.
last
)
item
.
realMaxNum
=
Math
.
min
(
item
.
realMaxNum
,
item2
.
last
)
//超过最大值时等于最大值
if
(
item
.
buyNum
>
item
.
realMaxNum
){
item
.
buyNum
=
item
.
realMaxNum
}
//如果为场次票,开始时间为班次时间的开始时间,结束时间为班次时间的结束时间,班次时间的结束时间为空时,结束时间为班次时间的开始时间
//如果为场次票,开始时间为班次时间的开始时间,结束时间为班次时间的结束时间,班次时间的结束时间为空时,结束时间为班次时间的开始时间
item
.
startPlayTime
=
item2
.
startPlanTime
item
.
startPlayTime
=
item2
.
startPlanTime
item
.
endPlayTime
=
item2
.
endPlanTime
||
item2
.
startPlanTime
item
.
endPlayTime
=
item2
.
endPlanTime
||
item2
.
startPlanTime
...
...
pages/scenic/scenicSingleOrder/scenicSingleOrder.vue
View file @
dd4f9359
...
@@ -804,6 +804,10 @@ export default {
...
@@ -804,6 +804,10 @@ export default {
dateChoose
(
index
)
{
dateChoose
(
index
)
{
this
.
active
=
index
//修改选中样式
this
.
active
=
index
//修改选中样式
this
.
maxBookNum
=
Math
.
min
(
this
.
dateList
[
index
].
surplus
,
this
.
productIfo
.
maxBookNum
)
//剩余量变化
this
.
maxBookNum
=
Math
.
min
(
this
.
dateList
[
index
].
surplus
,
this
.
productIfo
.
maxBookNum
)
//剩余量变化
//超过最大值时等于最大值
if
(
this
.
buyNum
>
this
.
maxBookNum
){
this
.
buyNum
=
this
.
maxBookNum
}
this
.
originalPrice
=
this
.
dateList
[
index
].
originalPrice
//原价变化
this
.
originalPrice
=
this
.
dateList
[
index
].
originalPrice
//原价变化
this
.
sellingPrice
=
this
.
dateList
[
index
].
sellingPrice
//卖价变化
this
.
sellingPrice
=
this
.
dateList
[
index
].
sellingPrice
//卖价变化
this
.
endDate
=
this
.
dateList
[
index
].
endTime
//开始日期
this
.
endDate
=
this
.
dateList
[
index
].
endTime
//开始日期
...
@@ -842,6 +846,10 @@ export default {
...
@@ -842,6 +846,10 @@ export default {
this
.
timeActive
=
i
this
.
timeActive
=
i
this
.
cruisePlanId
=
this
.
timeList
[
i
].
cruisePlanId
//获取班次Id
this
.
cruisePlanId
=
this
.
timeList
[
i
].
cruisePlanId
//获取班次Id
this
.
maxBookNum
=
Math
.
min
(
this
.
timeList
[
i
].
last
,
this
.
maxBookNum
)
//获取剩余库存
this
.
maxBookNum
=
Math
.
min
(
this
.
timeList
[
i
].
last
,
this
.
maxBookNum
)
//获取剩余库存
//超过最大值时等于最大值
if
(
this
.
buyNum
>
this
.
maxBookNum
){
this
.
buyNum
=
this
.
maxBookNum
}
//如果为班次票,开始时间为班次时间的开始时间,结束时间为班次时间的结束时间,班次时间的结束时间为空时,结束时间为班次时间的开始时间
//如果为班次票,开始时间为班次时间的开始时间,结束时间为班次时间的结束时间,班次时间的结束时间为空时,结束时间为班次时间的开始时间
this
.
startPlayTime
=
this
.
timeList
[
i
].
startPlanTime
this
.
startPlayTime
=
this
.
timeList
[
i
].
startPlanTime
this
.
endPlayTime
=
this
.
timeList
[
i
].
endPlanTime
||
this
.
timeList
[
i
].
startPlanTime
this
.
endPlayTime
=
this
.
timeList
[
i
].
endPlanTime
||
this
.
timeList
[
i
].
startPlanTime
...
...
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