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
c2f5f495
Commit
c2f5f495
authored
Oct 14, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
0011f052
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
101 additions
and
27 deletions
+101
-27
jz_Reserve.vue
pages/jiuzhai/jz_Reserve.vue
+101
-27
No files found.
pages/jiuzhai/jz_Reserve.vue
View file @
c2f5f495
<
style
>
<
style
>
.jz_Reserve
{
.jz_Reserve
{
padding-bottom
:
180
rpx
;
padding-bottom
:
180
rpx
;
background-color
:
#fff
;
}
}
.jz_ReserTop
{
.jz_ReserTop
{
width
:
100%
;
width
:
100%
;
...
@@ -113,6 +114,7 @@
...
@@ -113,6 +114,7 @@
.jz_form
{
.jz_form
{
margin-top
:
60
rpx
;
margin-top
:
60
rpx
;
padding
:
0
45
rpx
;
padding
:
0
45
rpx
;
}
}
.jz_form
.form-items
{
.jz_form
.form-items
{
margin-bottom
:
20
rpx
;
margin-bottom
:
20
rpx
;
...
@@ -131,6 +133,7 @@
...
@@ -131,6 +133,7 @@
font-weight
:
600
;
font-weight
:
600
;
margin-right
:
60
rpx
;
margin-right
:
60
rpx
;
flex-shrink
:
0
;
flex-shrink
:
0
;
width
:
56px
;
}
}
.jz_form
.form-items
.val
{
.jz_form
.form-items
.val
{
flex
:
1
;
flex
:
1
;
...
@@ -239,6 +242,25 @@
...
@@ -239,6 +242,25 @@
line-height
:
40
rpx
;
line-height
:
40
rpx
;
margin-right
:
24
rpx
;
margin-right
:
24
rpx
;
}
}
.jz_GuestList
{
box-shadow
:
0px
2px
15px
0px
rgba
(
76
,
76
,
76
,
0.13
);
padding
:
20
rpx
;
margin
:
25
rpx
;
border-radius
:
25
rpx
;
}
.jz_GuestList
.form-items
:last-child
{
margin-bottom
:
0
;
padding-bottom
:
6
rpx
;
}
.jz_TextArea
{
height
:
50px
;
margin-bottom
:
10px
;
width
:
auto
;
border
:
1px
solid
#DFDDD8
;
border-radius
:
4px
;
margin
:
25
rpx
;
padding
:
20
rpx
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<view
class=
"jz_Reserve"
>
<view
class=
"jz_Reserve"
>
...
@@ -282,14 +304,18 @@
...
@@ -282,14 +304,18 @@
/>
即时确认:本产品付款后可快速确认,放心期待您的旅行
/>
即时确认:本产品付款后可快速确认,放心期待您的旅行
</view>
</view>
</view>
</view>
<view
class=
"jz_form"
>
<view
class=
"jz_form jz_GuestList"
v-for=
"(subItem,subIndex) in GuestList"
:key=
"subIndex"
>
<view
style=
"margin:10rpx 0 15rpx 0;"
>
游客:
{{
subIndex
+
1
}}
</view>
<view
class=
"form-items"
>
<view
class=
"form-items"
>
<view
class=
"label"
>
游客姓名
</view>
<view
class=
"label"
>
游客姓名
</view>
<view
class=
"val"
>
<view
class=
"val"
>
<input
<input
type=
"text"
type=
"text"
v-model=
"contactName"
:key=
"subIndex"
placeholder=
"若是多人,输入代表人员即可"
v-model=
"subItem.SurName"
placeholder=
"请输入游客姓名"
/>
/>
</view>
</view>
</view>
</view>
...
@@ -298,12 +324,34 @@
...
@@ -298,12 +324,34 @@
<view
class=
"val"
>
<view
class=
"val"
>
<input
<input
type=
"number"
type=
"number"
v-model=
"
contactMobil
e"
v-model=
"
subItem.MobilePhon
e"
placeholder=
"
输入电话号码
"
placeholder=
"
请输入联系电话
"
/>
/>
</view>
</view>
</view>
</view>
<view
class=
"form-items"
>
<view
class=
"label"
>
身份证
</view>
<view
class=
"val"
>
<input
type=
"number"
v-model=
"subItem.IdCard"
placeholder=
"请输入身份证号"
/>
</view>
</view>
<view
class=
"form-items"
>
<view
class=
"label"
>
学生
</view>
<view
class=
"val"
style=
"margin-top: -20rpx;"
>
<u-checkbox-group>
<u-checkbox
v-model=
"subItem.IsHightSchool"
></u-checkbox>
</u-checkbox-group>
</view>
</view>
</view>
</view>
<view>
<textarea
class=
"jz_TextArea"
placeholder=
"请输入备注信息"
v-model=
"Remarks"
/>
</view>
<view
class=
"empty-block"
></view>
<view
class=
"empty-block"
></view>
<!--
<view
class=
"jz_ReseOrder"
>
<!--
<view
class=
"jz_ReseOrder"
>
<view
class=
"jz_ReDix"
>
<view
class=
"jz_ReDix"
>
...
@@ -487,6 +535,8 @@ export default {
...
@@ -487,6 +535,8 @@ export default {
contactName
:
""
,
contactName
:
""
,
orderInfo
:
{},
orderInfo
:
{},
orderData
:
""
,
orderData
:
""
,
Remarks
:
""
,
//备注
GuestList
:[]
};
};
},
},
created
()
{
created
()
{
...
@@ -600,24 +650,56 @@ export default {
...
@@ -600,24 +650,56 @@ export default {
:
0
)
*
this
.
orderMsg
.
ChirdNoBedNum
;
:
0
)
*
this
.
orderMsg
.
ChirdNoBedNum
;
}
}
this
.
price
=
money
;
this
.
price
=
money
;
//根据总人数 生成旅客信息
for
(
var
i
=
0
;
i
<
this
.
total
;
i
++
){
let
obj
=
{
Id
:
0
,
SurName
:
""
,
//姓
Name
:
""
,
//名
IdCard
:
""
,
//身份证
MobilePhone
:
""
,
//联系电话
IsHightSchool
:
false
,
//是否高校学生1 是 2否
}
this
.
GuestList
.
push
(
obj
);
}
},
},
//去支付
//去支付
goPay
()
{
goPay
()
{
if
(
this
.
contactName
==
""
)
{
for
(
var
i
=
0
;
i
<
this
.
GuestList
.
length
;
i
++
){
uni
.
showToast
({
if
(
this
.
GuestList
[
i
].
SurName
==
''
){
title
:
"请输入联系人姓名"
,
uni
.
showToast
({
icon
:
"none"
,
title
:
`请输入游客
${
i
+
1
}
的姓名`
,
});
icon
:
"none"
,
}
else
if
(
this
.
contactMobile
==
""
)
{
});
uni
.
showToast
({
return
title
:
"请输入联系人电话"
,
}
icon
:
"none"
,
if
(
this
.
GuestList
[
i
].
IdCard
==
''
){
});
uni
.
showToast
({
}
else
{
title
:
`请输入游客
${
i
+
1
}
的身份证`
,
icon
:
"none"
,
});
return
}
if
(
this
.
GuestList
[
i
].
MobilePhone
==
''
){
uni
.
showToast
({
title
:
`请输入游客
${
i
+
1
}
的联系电话`
,
icon
:
"none"
,
});
return
}
}
this
.
submit
=
true
;
this
.
submit
=
true
;
this
.
userInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
userInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
basedataObj
=
uni
.
getStorageSync
(
"basedata"
).
mall
;
this
.
basedataObj
=
uni
.
getStorageSync
(
"basedata"
).
mall
;
var
CustomerId
=
this
.
basedataObj
.
virtualB2BCustomerId
;
var
CustomerId
=
this
.
basedataObj
.
virtualB2BCustomerId
;
this
.
GuestList
.
forEach
(
x
=>
{
if
(
x
.
IsHightSchool
){
x
.
IsHightSchool
=
1
}
else
{
x
.
IsHightSchool
=
2
}
})
var
ContactName
=
this
.
contactName
;
var
ContactName
=
this
.
contactName
;
var
ContactMobile
=
this
.
contactMobile
;
var
ContactMobile
=
this
.
contactMobile
;
var
CustomerType
=
4
;
var
CustomerType
=
4
;
...
@@ -679,15 +761,8 @@ export default {
...
@@ -679,15 +761,8 @@ export default {
OrderSource
:
6
,
OrderSource
:
6
,
// #endif
// #endif
MiniAppUserId
:
this
.
userInfo
.
UserId
,
MiniAppUserId
:
this
.
userInfo
.
UserId
,
Remarks
:
""
,
//备注
Remarks
:
this
.
Remarks
,
//备注
GuestList
:[{
GuestList
:
this
.
GuestList
Id
:
0
,
SurName
:
""
,
//姓
Name
:
""
,
//名
IdCard
:
""
,
//身份证
MobilePhone
:
""
,
//联系电话
IsHightSchool
:
2
,
//是否高校学生1 是 2否
}]
};
};
this
.
apipost
(
this
.
apipost
(
"sellorder_post_SetOrderInfoForB2B"
,
"sellorder_post_SetOrderInfoForB2B"
,
...
@@ -712,7 +787,6 @@ export default {
...
@@ -712,7 +787,6 @@ export default {
this
.
submit
=
false
;
this
.
submit
=
false
;
}
}
);
);
}
},
},
// #ifdef MP-WEIXIN
// #ifdef MP-WEIXIN
//微信支付
//微信支付
...
...
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