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
71edddea
Commit
71edddea
authored
Jan 08, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取号样式处理
parent
2317375d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
17 deletions
+54
-17
numberChoose.vue
pages/my/takeNumber/numberChoose/numberChoose.vue
+1
-1
rowNumber.vue
pages/my/takeNumber/rowNumber/rowNumber.vue
+7
-0
scenicCombiOrder.vue
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
+22
-9
contactList.vue
pages/scenic/scenicComponents/contactList.vue
+1
-6
scenicSingleOrder.vue
pages/scenic/scenicSingleOrder/scenicSingleOrder.vue
+23
-1
No files found.
pages/my/takeNumber/numberChoose/numberChoose.vue
View file @
71edddea
...
...
@@ -144,7 +144,7 @@ export default {
}
.btn
{
display
:
inline-block
;
line-height
:
60
rpx
;
line-height
:
76
rpx
;
width
:
212rpx
;
height
:
80rpx
;
background
:
#3688FF
;
...
...
pages/my/takeNumber/rowNumber/rowNumber.vue
View file @
71edddea
...
...
@@ -147,6 +147,13 @@ export default {
},
//---立即取号
rowNumber
(){
if
(
!
this
.
merchantCode
||!
this
.
chooseArea
.
projectIds
||!
this
.
thirdOrderId
||!
this
.
ticketPhone
||!
this
.
orderId
){
uni
.
showToast
({
title
:
'缺少取号参数'
,
icon
:
'none'
})
return
}
let
data
=
{
merchantCode
:
this
.
merchantCode
,
//商户编号
areaCode
:
this
.
chooseArea
.
projectIds
,
//站点编号
...
...
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
View file @
71edddea
...
...
@@ -297,6 +297,7 @@
<times
ref=
"times"
:chooseTimeList=
"chooseTimeList"
@
timeConfig=
"timeConfig"
:timeActive=
"timeActive"
></times>
<editContacts
ref=
"editContacts"
:editContactData=
"editContactData"
></editContacts>
<contactList
@
contactListConfig=
'contactListConfig'
ref=
"contactList"
:contactTotal=
"productList[moreContactIndex].contactTotal"
:contactNum=
"productList[moreContactIndex].contactNum"
...
...
@@ -638,15 +639,19 @@ export default {
})
this
.
productList
.
forEach
((
item
)
=>
{
item
.
contactTotal
=
JSON
.
parse
(
JSON
.
stringify
(
contactTotal
))
this
.
$forceUpdate
()
})
// //编辑成功重新调该方法时,把之前选中的游客,设为选中状态
// this.contactTotal.forEach(item => {
// this.chooseContact.forEach(item2 => {
// if (item.id == item2.id) {
// item.ifChoose = true
// }
// })
// })
//编辑成功重新调该方法时,把之前选中的游客,设为选中状态
this
.
productList
.
forEach
(
item
=>
{
item
.
contactTotal
.
forEach
(
item2
=>
{
item
.
chooseContact
.
forEach
(
item3
=>
{
if
(
item2
.
id
==
item3
.
id
)
{
item
.
ifChoose
=
true
}
})
})
})
// //删除联系人成功重新调该方法时,之前选中的联系人,数据库可能被删除,删除该联系人
// this.chooseContact.forEach((item, index) => {
// if (!this.contactTotal.find(item2 => item.id == item2.id)) {
...
...
@@ -832,6 +837,10 @@ export default {
this
.
moreContactIndex
=
index
this
.
$refs
.
contactList
.
showPop
=
true
},
//---联系人列表弹窗确认选中---已修改
contactListConfig
(
data
){
this
.
productList
[
moreContactIndex
].
chooseContact
=
data
},
//---游客选择---已修改
visitorChoose
(
index
,
index2
)
{
//底层原理不明,特殊情况,需特殊处理
...
...
@@ -842,7 +851,11 @@ export default {
if
(
item2
.
ifChoose
)
{
if
(
item
.
chooseContact
.
length
==
item
.
contactNum
)
{
//需要人数满足时,点击增加联系人时,删除最后一个,增加点击的那个人
item
.
chooseContact
[
item
.
chooseContact
.
length
-
1
].
ifChoose
=
false
item
.
contactTotal
.
forEach
(
item3
=>
{
if
(
item3
.
id
==
item
.
chooseContact
[
item
.
chooseContact
.
length
-
1
].
id
){
item3
.
ifChoose
=
false
}
})
item
.
chooseContact
.
splice
(
item
.
chooseContact
.
length
-
1
,
1
)
}
item
.
chooseContact
.
push
(
item2
)
//加入数组
...
...
pages/scenic/scenicComponents/contactList.vue
View file @
71edddea
...
...
@@ -94,18 +94,13 @@ export default {
//---确定选中的联系人
config
()
{
this
.
showPop
=
false
//选中的排在前面
this
.
listTotal
.
sort
(
function
(
a
,
b
)
{
return
b
.
ifChoose
-
a
.
ifChoose
})
this
.
$parent
.
contactTotal
=
this
.
listTotal
let
chooseArr
=
[]
this
.
listTotal
.
forEach
(
item
=>
{
if
(
item
.
ifChoose
){
chooseArr
.
push
(
item
)
}
})
this
.
$
parent
.
chooseContact
=
chooseArr
this
.
$
emit
(
'contactListConfig'
,
chooseArr
)
},
//---联系人姓名变化
chooseContactChange
(
e
){
...
...
pages/scenic/scenicSingleOrder/scenicSingleOrder.vue
View file @
71edddea
...
...
@@ -349,6 +349,7 @@
ref=
"contactList"
:contactTotal=
"contactTotal"
:contactNum=
"contactNum"
@
contactListConfig=
'contactListConfig'
></contactList>
<orderCoupon
:couponData=
"couponData"
ref=
"orderCoupon"
@
couponChoose=
"couponChoose"
:chooseCouponObj=
"chooseCouponObj"
></orderCoupon>
<!--一个站点时获取排队信息弹窗-->
...
...
@@ -834,6 +835,23 @@ export default {
showContacts
()
{
this
.
$refs
.
contactList
.
showPop
=
true
},
//---联系人列表弹窗确认选中
contactListConfig
(
data
){
this
.
chooseContact
=
data
this
.
contactTotal
.
forEach
(
item
=>
{
//在总的列表里面回去选中的联系人
item
.
ifChoose
=
false
this
.
chooseContact
.
forEach
(
item2
=>
{
if
(
item
.
id
==
item2
.
id
){
item
.
ifChoose
=
true
}
})
})
//选中的排在前面
this
.
contactTotal
.
sort
(
function
(
a
,
b
)
{
return
b
.
ifChoose
-
a
.
ifChoose
})
},
//---游客选择
visitorChoose
(
i
)
{
//直接传入item,会造成item.ifChoose值变,但是this.contactTotal[i].ifChoose没变,故选择传入下标
...
...
@@ -842,7 +860,11 @@ export default {
if
(
item
.
ifChoose
)
{
if
(
this
.
chooseContact
.
length
==
this
.
contactNum
)
{
//需要人数满足时,点击增加联系人时,删除最后一个,增加点击的那个人
this
.
chooseContact
[
this
.
chooseContact
.
length
-
1
].
ifChoose
=
false
this
.
contactTotal
.
forEach
(
item2
=>
{
if
(
item2
.
id
==
this
.
chooseContact
[
this
.
chooseContact
.
length
-
1
].
id
){
item2
.
ifChoose
=
false
}
})
this
.
chooseContact
.
splice
(
this
.
chooseContact
.
length
-
1
,
1
)
}
this
.
chooseContact
.
push
(
item
)
//加入数组
...
...
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