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
b0bd15b5
Commit
b0bd15b5
authored
Apr 23, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店支付
parent
0478109e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
21 deletions
+50
-21
mapList.vue
pages/hotel/mapList.vue
+1
-3
order.vue
pages/hotel/order.vue
+11
-13
orderdetails.vue
pages/hotel/orderdetails.vue
+38
-5
No files found.
pages/hotel/mapList.vue
View file @
b0bd15b5
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
iconPath
:
''
,
iconPath
:
''
,
title
:
''
,
title
:
''
,
alpha
:
0
,
alpha
:
0
,
width
:
3
0
,
width
:
2
0
,
height
:
30
,
height
:
30
,
callout
:{
callout
:{
content
:
'¥ 99999起'
,
content
:
'¥ 99999起'
,
...
@@ -118,8 +118,6 @@
...
@@ -118,8 +118,6 @@
padding
:
5
,
padding
:
5
,
display
:
'ALWAYS'
,
display
:
'ALWAYS'
,
},
},
joinCluster
:
true
,
clusterId
:
10
,
},
},
bubble
:[
bubble
:[
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638761641584224459.png'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638761641584224459.png'
,
...
...
pages/hotel/order.vue
View file @
b0bd15b5
...
@@ -336,7 +336,6 @@
...
@@ -336,7 +336,6 @@
roomType
:
0
,
roomType
:
0
,
CustomerId
:
0
,
//同行Id
CustomerId
:
0
,
//同行Id
DirectCustomerId
:
0
,
//直客Id
DirectCustomerId
:
0
,
//直客Id
CreateBy
:
0
,
//同业联系人
Remarks
:
''
,
//备注
Remarks
:
''
,
//备注
}
,
}
,
showtime
:
false
,
showtime
:
false
,
...
@@ -838,18 +837,17 @@
...
@@ -838,18 +837,17 @@
if
(
this
.
customer
&&
this
.
customer
.
erpBaseInfo
&&
this
.
customer
.
erpBaseInfo
.
employeeId
)
{
if
(
this
.
customer
&&
this
.
customer
.
erpBaseInfo
&&
this
.
customer
.
erpBaseInfo
.
employeeId
)
{
that
.
orderMsg
.
EmployeeIdStr
=
this
.
customer
.
erpBaseInfo
.
employeeId
;
that
.
orderMsg
.
EmployeeIdStr
=
this
.
customer
.
erpBaseInfo
.
employeeId
;
}
}
// this.orderMsg.OrderSource = 7
// #endif
// #endif
// #ifdef MP-AG
// #ifdef MP-AG
CreateBy
=
this
.
CreateBy
CreateBy
=
this
.
CreateBy
that
.
orderMsg
.
CustomerId
=
this
.
customer
.
customerId
that
.
orderMsg
.
CustomerId
=
this
.
customer
.
customerId
// this.orderMsg.OrderSource = 5
// if (this.customer && this.customer.salesBaseInfo && this.customer.salesBaseInfo.employeeId)
{
if
(
this
.
customer
&&
this
.
customer
.
salesBaseInfo
&&
this
.
customer
.
salesBaseInfo
.
employeeId
)
{
// this.orderMsg.EmployeeIdStr = this.customer.salesBaseInfo.employeeId
this
.
orderMsg
.
EmployeeIdStr
=
this
.
customer
.
salesBaseInfo
.
employeeId
//
}
}
that
.
orderMsg
.
EmployeeIdStr
=
CreateBy
// #endif
// #endif
that
.
orderMsg
.
CreateBy
=
CreateBy
let
CouponAllotIds
=
''
let
CouponAllotIds
=
''
if
(
this
.
useCouponIds
.
length
>
0
){
if
(
this
.
useCouponIds
.
length
>
0
){
CouponAllotIds
=
this
.
useCouponIds
.
join
(
','
)
CouponAllotIds
=
this
.
useCouponIds
.
join
(
','
)
...
...
pages/hotel/orderdetails.vue
View file @
b0bd15b5
...
@@ -34,10 +34,8 @@
...
@@ -34,10 +34,8 @@
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638766174213789755.png"
/>
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638766174213789755.png"
/>
</view>
</view>
<view
class=
"orderIforRzTime column col"
>
<view
class=
"orderIforRzTime column col"
>
<view>
入住:
<text>
{{
getDate
(
orderData
.
parmResultRoomInfo
.
CheckInDate
)
}}
<view>
入住:
<text>
{{
getDate
(
orderData
.
parmResultRoomInfo
.
CheckInDate
)
}}
{{
getWeek
(
orderData
.
parmResultRoomInfo
.
CheckInDate
)
}}
14:00后
</text></view>
{{
getWeek
(
orderData
.
parmResultRoomInfo
.
CheckInDate
)
}}
14:00后
</text></view>
<view
style=
"margin-top: 28rpx;"
>
离店:
<text>
{{
getDate
(
orderData
.
parmResultRoomInfo
.
CheckOutDate
)
}}
{{
getWeek
(
orderData
.
parmResultRoomInfo
.
CheckOutDate
)
}}
12:00前
</text></view>
<view
style=
"margin-top: 28rpx;"
>
离店:
<text>
{{
getDate
(
orderData
.
parmResultRoomInfo
.
CheckOutDate
)
}}
{{
getWeek
(
orderData
.
parmResultRoomInfo
.
CheckOutDate
)
}}
12:00前
</text></view>
</view>
</view>
<view
class=
"orderIforRzNum"
>
<view
class=
"orderIforRzNum"
>
{{
getDay
(
orderData
.
parmResultRoomInfo
.
CheckInDate
.
slice
(
0
,
10
),
orderData
.
parmResultRoomInfo
.
CheckOutDate
.
slice
(
0
,
10
))
}}
晚
{{
getDay
(
orderData
.
parmResultRoomInfo
.
CheckInDate
.
slice
(
0
,
10
),
orderData
.
parmResultRoomInfo
.
CheckOutDate
.
slice
(
0
,
10
))
}}
晚
...
@@ -316,7 +314,7 @@
...
@@ -316,7 +314,7 @@
this
.
apipost
(
"GetCodeByOrderNo_post"
,
payMsg
,
(
res
)
=>
{
this
.
apipost
(
"GetCodeByOrderNo_post"
,
payMsg
,
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
this
.
orderInfo
=
JSON
.
parse
(
res
.
data
.
sPayInfo
)
this
.
orderInfo
=
JSON
.
parse
(
res
.
data
.
sPayInfo
)
this
.
goPayHandler
();
this
.
goPayHandler
(
res
.
data
);
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
...
@@ -334,6 +332,41 @@
...
@@ -334,6 +332,41 @@
this
.
submit
=
false
this
.
submit
=
false
});
});
},
},
goPayHandler
(
item
)
{
let
OrderNo
=
item
.
OrderNo
;
let
that
=
this
;
uni
.
requestPayment
({
provider
:
"wxpay"
,
timeStamp
:
this
.
orderInfo
.
timeStamp
,
nonceStr
:
this
.
orderInfo
.
nonceStr
,
package
:
this
.
orderInfo
.
package
,
signType
:
this
.
orderInfo
.
signType
,
paySign
:
this
.
orderInfo
.
sign
,
success
:
function
(
res
)
{
that
.
submit
=
false
;
uni
.
showToast
({
title
:
"支付成功"
,
});
setTimeout
(()
=>
{
// (that.getPrice(that.orderMsg.TotalPrice) - that
// .currentCoupon.discountMoney).toFixed(2) +
// "&isFrom=5
uni
.
redirectTo
({
url
:
"/pages/jiuzhai/paysuccess?PreferPrice="
+
(
that
.
orderData
.
model
.
TotalPrice
-
that
.
orderData
.
model
.
DiscountMoney
).
toFixed
(
2
)
+
"&isFrom=5"
,
});
},
100
);
},
fail
:
function
(
err
)
{
that
.
submit
=
false
;
uni
.
showToast
({
title
:
"支付失败"
,
icon
:
"none"
,
});
},
});
},
goCancel
()
{
goCancel
()
{
if
(
this
.
submitCancel
)
return
if
(
this
.
submitCancel
)
return
this
.
submitCancel
=
true
this
.
submitCancel
=
true
...
...
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