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
18a1c610
Commit
18a1c610
authored
Jan 02, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组合bug处理
parent
ca1729ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
43 deletions
+45
-43
distributionCombiChoose.vue
...ation/distributionCombiChoose/distributionCombiChoose.vue
+1
-1
scenicCombiOrder.vue
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
+44
-42
No files found.
pages/combination/distributionCombiChoose/distributionCombiChoose.vue
View file @
18a1c610
...
@@ -609,7 +609,7 @@ export default {
...
@@ -609,7 +609,7 @@ export default {
})
})
let
query
=
'?productIdList='
+
JSON
.
stringify
(
productIdList
)
+
'&groupId='
+
this
.
groupId
+
'&groupChannelId='
+
this
.
groupChannelId
+
'&orderSource=3'
let
query
=
'?productIdList='
+
JSON
.
stringify
(
productIdList
)
+
'&groupId='
+
this
.
groupId
+
'&groupChannelId='
+
this
.
groupChannelId
+
'&orderSource=3'
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/
combination/combiOrder/c
ombiOrder'
+
query
url
:
'/pages/
scenic/scenicCombiOrder/scenicC
ombiOrder'
+
query
})
})
}
}
},
},
...
...
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
View file @
18a1c610
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
<text
class=
"no-time"
v-if=
"
!item.timeList||item.timeList.length==
0"
>
该日票种已售罄,请选择其他日期
</text>
<text
class=
"no-time"
v-if=
"
item.startDate && item.endDate && item.timeList.length ==
0"
>
该日票种已售罄,请选择其他日期
</text>
<text
class=
"no-time"
v-if=
"!item.startDate || !item.endDate"
>
请先选游玩日期
</text>
<text
class=
"no-time"
v-if=
"!item.startDate || !item.endDate"
>
请先选游玩日期
</text>
<view
class=
"timeMore"
@
click=
"showTime(item,index)"
>
<view
class=
"timeMore"
@
click=
"showTime(item,index)"
>
<view
class=
"time-more-content"
>
<view
class=
"time-more-content"
>
...
@@ -140,40 +140,45 @@
...
@@ -140,40 +140,45 @@
</u-number-box>
</u-number-box>
</view>
</view>
</view>
</view>
<view
class=
"list-coupon"
v-if=
"couponData.length>0"
@
click=
"showCoupon()"
>
<!-- 有可用优惠券,并且未选中 -->
<view
class=
" list-coupon"
v-if=
"item.couponData&&item.couponData.masterSlaveCouponList&&item.couponData.masterSlaveCouponList.length>0&&!item.chooseCouponObj"
@
click=
"showCoupon()"
>
<view>
<view>
券
券
</view>
</view>
<!-- 有可用优惠券,并且未选中 -->
<template
v-if=
"item.couponData.masterSlaveCouponList&&item.couponData.masterSlaveCouponList.length>0&&!item.chooseCouponObj"
>
<view>
<view>
{{
item
.
couponData
.
masterSlaveCouponList
[
0
].
couponName
}}
{{
item
.
couponData
.
masterSlaveCouponList
[
0
].
couponName
}}
</view>
</view>
<view
>
<view
>
未使用优惠券
未使用优惠券
</view>
</view>
</
template
>
<u-icon
name=
"arrow-right"
color=
"#3688FF"
></u-icon>
</view>
<!-- 有可用优惠券 -->
<!-- 有可用优惠券 -->
<
template
v-if=
"item.chooseCouponObj&&item.savedMoney>0"
>
<view
class=
" list-coupon"
v-if=
"item.chooseCouponObj&&item.chooseCouponObj.savedMoney>0"
@
click=
"showCoupon()"
>
<view>
券
</view>
<view>
<view>
{{
item
.
chooseCouponObj
.
couponName
}}
{{
item
.
chooseCouponObj
.
couponName
}}
</view>
</view>
<view
style=
"font-size: 32rpx;"
>
<view
style=
"font-size: 32rpx;"
>
<text
style=
"font-size: 24rpx;position: relative;top: 6rpx;"
>
¥
</text>
<text
style=
"font-size: 24rpx;position: relative;top: 6rpx;"
>
¥
</text>
{{
parseFloat
(
item
.
savedMoney
.
toFixed
(
2
))
}}
{{
parseFloat
(
item
.
chooseCouponObj
.
savedMoney
.
toFixed
(
2
))
}}
</view>
<u-icon
name=
"arrow-right"
color=
"#3688FF"
></u-icon>
</view>
</view>
</
template
>
<!-- 可用优惠券条件-->
<!-- 可用优惠券条件-->
<
template
v-if=
"item.ableConpon"
>
<view
class=
" list-coupon"
v-if=
"item.ableConpon"
@
click=
"showCoupon()"
>
<view>
券
</view>
<view>
<view>
{{
item
.
ableConpon
.
couponName
}}
{{
item
.
ableConpon
.
couponName
}}
</view>
</view>
<view>
<view>
{{
item
.
ableConpon
.
couponRule
}}
{{
item
.
ableConpon
.
couponRule
}}
</view>
</view>
</
template
>
<u-icon
name=
"arrow-right"
color=
"#3688FF"
></u-icon>
<u-icon
name=
"arrow-right"
color=
"#3688FF"
></u-icon>
</view>
</view>
</view>
</view>
...
@@ -210,7 +215,7 @@
...
@@ -210,7 +215,7 @@
<u-icon
name=
"arrow-right"
color=
"#3688FF"
></u-icon>
<u-icon
name=
"arrow-right"
color=
"#3688FF"
></u-icon>
</view>
</view>
</view>
</view>
<view
class=
"visitorBtn"
v-else
@
click=
"
$refs.editContacts.showEdit = true
"
>
<view
class=
"visitorBtn"
v-else
@
click=
"
showEdit()
"
>
<u-icon
name=
"plus-circle"
color=
"#3688FF"
size=
"52"
></u-icon>
<u-icon
name=
"plus-circle"
color=
"#3688FF"
size=
"52"
></u-icon>
<text
style=
"margin-left:16rpx;"
>
新增
</text>
<text
style=
"margin-left:16rpx;"
>
新增
</text>
</view>
</view>
...
@@ -293,7 +298,6 @@
...
@@ -293,7 +298,6 @@
<editContacts
ref=
"editContacts"
:editContact=
"editContact"
:contactTotal=
"contactTotal"
></editContacts>
<editContacts
ref=
"editContacts"
:editContact=
"editContact"
:contactTotal=
"contactTotal"
></editContacts>
<contactList
<contactList
ref=
"contactList"
ref=
"contactList"
@
getEditContact=
"getEditContact"
:contactTotal=
"contactTotal"
:contactTotal=
"contactTotal"
:contactNum=
"contactNum"
:contactNum=
"contactNum"
></contactList>
></contactList>
...
@@ -531,6 +535,7 @@ export default {
...
@@ -531,6 +535,7 @@ export default {
//解决初始化日期不显示的情况
//解决初始化日期不显示的情况
this
.
$forceUpdate
()
this
.
$forceUpdate
()
}
else
{
}
else
{
this
.
maxBookNum
=
0
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
icon
:
'none'
icon
:
'none'
...
@@ -702,7 +707,6 @@ export default {
...
@@ -702,7 +707,6 @@ export default {
},
},
//---获取子组件的传值---已修改
//---获取子组件的传值---已修改
areaSure
(
data
)
{
areaSure
(
data
)
{
console
.
log
(
this
.
areaIndex
)
this
.
productList
[
this
.
areaIndex
].
areaObj
=
data
this
.
productList
[
this
.
areaIndex
].
areaObj
=
data
},
},
//---展示选择站点---已修改
//---展示选择站点---已修改
...
@@ -729,7 +733,8 @@ export default {
...
@@ -729,7 +733,8 @@ export default {
dateChoose
(
item
,
item2
,
index
)
{
dateChoose
(
item
,
item2
,
index
)
{
item
.
dateActive
=
index
//修改选中样式
item
.
dateActive
=
index
//修改选中样式
this
.
maxBookNum
=
999
//默认可以去支付
this
.
maxBookNum
=
999
//默认可以去支付
item
.
realMaxNum
=
Math
.
min
(
item
.
maxBookNum
,
item2
.
surplus
)
//获取实际最大购买数量
//由于会多次进行比较,防止出现bug,故重新增加一个字段,获取实际最大购买数量
item
.
realMaxNum
=
Math
.
min
(
item
.
maxBookNum
,
item2
.
surplus
)
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
]
//任何一个产品无库存时,无法进行支付
//任何一个产品无库存时,无法进行支付
...
@@ -806,10 +811,6 @@ export default {
...
@@ -806,10 +811,6 @@ export default {
this
.
$forceUpdate
()
this
.
$forceUpdate
()
}).
exec
()
}).
exec
()
},
},
//---获取点击的编辑联系人信息,传给编辑联系人组件
getEditContact
(
data
)
{
this
.
editContact
=
data
},
//---删除选中的联系人
//---删除选中的联系人
delChooseContact
(
item
,
index
)
{
delChooseContact
(
item
,
index
)
{
//所有联系人中找到删除联系人下标,改成未选中状态
//所有联系人中找到删除联系人下标,改成未选中状态
...
@@ -818,8 +819,9 @@ export default {
...
@@ -818,8 +819,9 @@ export default {
this
.
chooseContact
.
splice
(
index
,
1
)
//删除数组
this
.
chooseContact
.
splice
(
index
,
1
)
//删除数组
},
},
//---展示编辑联系人
//---展示编辑联系人
showEdit
(
obj
)
{
showEdit
(
data
)
{
this
.
$refs
.
editContacts
.
showEdit
=
true
let
obj
=
data
||
''
this
.
$refs
.
editContacts
.
showPop
=
true
this
.
editContact
=
obj
this
.
editContact
=
obj
},
},
//---展示新增联系人,并获取联系人列表
//---展示新增联系人,并获取联系人列表
...
...
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