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
c8b91beb
Commit
c8b91beb
authored
Dec 11, 2023
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组合填写订单页面开发
parent
de038472
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
30 deletions
+32
-30
scenicCombiOrder.vue
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
+32
-30
icon01.png
static/img/my/icon01.png
+0
-0
No files found.
pages/scenic/scenicCombiOrder/scenicCombiOrder.vue
View file @
c8b91beb
...
...
@@ -123,7 +123,7 @@
<view
class=
"list-Number"
>
<view
class=
"title-text"
>
购买数量
</view>
<view>
<u-number-box
:max=
"item.maxBookNum"
v-model=
"item.buyNum"
@
change=
'buyNumChange'
>
<u-number-box
:max=
"item.maxBookNum"
v-model=
"item.buyNum"
@
change=
'buyNumChange'
:index=
'index'
>
<view
slot=
"minus"
class=
"number-minus"
>
<u-icon
name=
"minus"
color=
"#FFFFFF"
size=
"32"
></u-icon>
</view>
...
...
@@ -480,7 +480,7 @@ export default {
}
item
.
dateActive
=
0
//默认选中第一个日期
item
.
buyNum
=
1
,
//默认为1
item
.
c
ontactTotal
=
[]
//选中的游客信息列表
item
.
c
hooseContact
=
[]
//选中的游客信息列表
item
.
contactNum
=
1
//需要选择几位联系人数量
if
(
item
.
status
==
1
){
//任何一个产品下架,该组合票为下架状态
this
.
orderStatus
=
1
...
...
@@ -878,33 +878,36 @@ export default {
buyNumChange
(
value
,
index
)
{
console
.
log
(
value
)
console
.
log
(
index
)
if
(
this
.
productIfo
.
tripTemplateFlag
==
1
)
{
//实名制
this
.
contactNum
=
e
.
value
if
(
this
.
chooseContact
.
length
>
this
.
contactNum
)
{
//当选中联系人数量大于购买数量时
this
.
chooseContact
.
splice
(
this
.
chooseContact
.
length
-
1
,
1
)
//删除多余的联系人
//联系人列表重新判断是否选中
this
.
contactTotal
.
forEach
(
item
=>
{
item
.
ifChoose
=
false
})
this
.
chooseContact
.
forEach
(
item
=>
{
this
.
contactTotal
.
forEach
(
item2
=>
{
if
(
item
.
id
==
item2
.
id
){
item2
.
ifChoose
=
true
}
})
})
}
}
if
(
this
.
productIfo
.
tripTemplateFlag
==
0
)
{
//非实名制
this
.
contactNum
=
1
}
clearTimeout
(
this
.
timeFlag
)
this
.
timeFlag
=
setTimeout
(()
=>
{
this
.
initCoupon
()
},
1500
)
// let item=this.productList[index]
// if(item.tripTemplateFlag == 1) {
// //实名制
// console.log(111)
// console.log(item.buyNum)
// item.contactNum = item.buyNum
// if (item.chooseContact.length>item.contactNum) {
// //当选中联系人数量大于购买数量时
// item.chooseContact.splice(item.chooseContact.length - 1, 1) //删除多余的联系人
// //联系人列表重新判断是否选中
// item.contactTotal.forEach(item=>{
// item.ifChoose=false
// })
// item.chooseContact.forEach(item=>{
// item.contactTotal.forEach(item2=>{
// if(item.id==item2.id){
// item2.ifChoose=true
// }
// })
// })
// }
// }
// if (item.tripTemplateFlag == 0) {
// //非实名制
// item.contactNum = 1
// }
// clearTimeout(this.timeFlag)
// this.timeFlag = setTimeout(()=>{
// this.initCoupon()
// }, 1500)
//解决数量显示不及时更新问题
this
.
$forceUpdate
()
},
...
...
@@ -913,7 +916,6 @@ export default {
this
.
buyKnowData
=
this
.
productList
[
index
]
this
.
$refs
.
buyKnow
.
showPop
=
true
},
//---添加并选中联系人--用于添加联系人之后直接从联系人列表选出需要填写的几位联系人
addChoose
()
{
let
data
=
{
...
...
static/img/my/icon01.png
0 → 100644
View file @
c8b91beb
394 Bytes
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