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
f09ffbef
Commit
f09ffbef
authored
May 09, 2025
by
youjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'B2C' of
http://gitlab.oytour.com/zk123/jz_travel
into B2C
parents
d373d446
c7f58df8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
10 deletions
+23
-10
orderdetails.vue
pages/hotel/orderdetails.vue
+23
-10
No files found.
pages/hotel/orderdetails.vue
View file @
f09ffbef
...
@@ -68,7 +68,8 @@
...
@@ -68,7 +68,8 @@
</view>
</view>
<view
class=
"ReservationInforBox"
>
<view
class=
"ReservationInforBox"
>
<view
class=
"ReservationInforTitle"
>
预定信息
</view>
<view
class=
"ReservationInforTitle"
>
预定信息
</view>
<view
class=
"ResInforText row-sb-n"
v-if=
"orderData.model&&orderData.model.ThirdOrderNo!=''&&orderData.model.OrderStatus==5"
>
<view
class=
"ResInforText row-sb-n"
v-if=
"orderData.model&&orderData.model.ThirdOrderNo!=''&&orderData.model.OrderStatus==5"
>
<view
class=
"ResInforL"
>
订单号
</view>
<view
class=
"ResInforL"
>
订单号
</view>
<view
class=
"ResInforR"
style=
"color: #ff3166;"
>
<view
class=
"ResInforR"
style=
"color: #ff3166;"
>
{{
orderData
.
model
.
ThirdOrderNo
}}
{{
orderData
.
model
.
ThirdOrderNo
}}
...
@@ -106,7 +107,7 @@
...
@@ -106,7 +107,7 @@
roomRateDetails.CancellationPolicyList.length > 0"
style=
"color: #ff3166;"
>
roomRateDetails.CancellationPolicyList.length > 0"
style=
"color: #ff3166;"
>
<
template
v-for=
"(itemCancella, index1) in roomRateDetails.CancellationPolicyList"
>
<
template
v-for=
"(itemCancella, index1) in roomRateDetails.CancellationPolicyList"
>
<template
<template
v-if=
"index1==0"
>
{{
getformatDateStr
(
itemCancella
.
FromDate
)
}}
之前免费取消
</
template
>
v-if=
"index1==0"
>
{{
getformatDateStr
(
itemCancella
.
FromDate
)
}}
之前免费取消
,
</
template
>
<
template
v-if=
"itemCancella.Amount==roomRateDetails.TotalPrice"
>
<
template
v-if=
"itemCancella.Amount==roomRateDetails.TotalPrice"
>
<template>
{{
getformatDateStr
(
itemCancella
.
FromDate
)
}}
起不可取消,取消将收取订单全额费用;
</
template
>
<template>
{{
getformatDateStr
(
itemCancella
.
FromDate
)
}}
起不可取消,取消将收取订单全额费用;
</
template
>
</template>
</template>
...
@@ -121,6 +122,15 @@
...
@@ -121,6 +122,15 @@
</text>
</text>
</view>
</view>
</view>
</view>
<view
class=
"ResInforText row-sb-n"
v-if=
"orderData&&orderData.model&&orderData.model.ThirdOrderStatus==3"
>
<view
class=
"ResInforL"
>
退款信息
</view>
<view
class=
"ResInforR"
>
<text
style=
"color: #ff3166;"
>
取消手续费{{orderData.model.CancelFee}}元,实际退款金额{{orderData.model.CancelPrice}}元.
</text>
</view>
</view>
</view>
</view>
<view
class=
"ReservationInforBox"
>
<view
class=
"ReservationInforBox"
>
<view
class=
"ReservationInforTitle"
>
订房信息
</view>
<view
class=
"ReservationInforTitle"
>
订房信息
</view>
...
@@ -355,7 +365,7 @@
...
@@ -355,7 +365,7 @@
ErpOrderId
:
this
.
orderData
.
model
.
OrderID
,
ErpOrderId
:
this
.
orderData
.
model
.
OrderID
,
OrderTypeStr
:
"Hotel"
,
//订单类型为酒店
OrderTypeStr
:
"Hotel"
,
//订单类型为酒店
ConfirmID
:
""
,
ConfirmID
:
""
,
Amount
:
0
,
Amount
:
0
,
};
};
wx
.
showModal
({
wx
.
showModal
({
title
:
'提示'
,
title
:
'提示'
,
...
@@ -377,7 +387,7 @@
...
@@ -377,7 +387,7 @@
var
tempData
=
res
.
data
;
var
tempData
=
res
.
data
;
if
(
tempData
)
{
if
(
tempData
)
{
cancelMsg
.
ConfirmID
=
tempData
.
ConfirmID
;
cancelMsg
.
ConfirmID
=
tempData
.
ConfirmID
;
cancelMsg
.
Amount
=
tempData
.
Amount
;
cancelMsg
.
Amount
=
tempData
.
Amount
;
//有取消费用
//有取消费用
if
(
tempData
.
Amount
&&
tempData
.
Amount
>
0
)
{
if
(
tempData
.
Amount
&&
tempData
.
Amount
>
0
)
{
var
tipmsg
=
"取消订单将收取【"
+
tempData
.
Amount
+
var
tipmsg
=
"取消订单将收取【"
+
tempData
.
Amount
+
...
@@ -433,22 +443,24 @@
...
@@ -433,22 +443,24 @@
}
}
);
);
},
},
formatStatus
(
status
)
{
formatStatus
(
directOrder
)
{
var
status
=
directOrder
.
OrderStatus
;
console
.
log
(
"formatStatus"
,
status
)
if
(
status
==
1
)
{
if
(
status
==
1
)
{
this
.
orderStatus
.
code
=
0
;
this
.
orderStatus
.
code
=
0
;
this
.
orderStatus
.
text
=
"待付款"
;
this
.
orderStatus
.
text
=
"待付款"
;
}
else
if
(
status
==
2
)
{
}
else
if
(
status
==
2
)
{
this
.
orderStatus
.
code
=
1
;
this
.
orderStatus
.
code
=
1
;
this
.
orderStatus
.
text
=
"已取消"
;
this
.
orderStatus
.
text
=
directOrder
.
ThirdOrderExtStatusStr
;
}
else
if
(
status
==
3
)
{
}
else
if
(
status
==
3
)
{
this
.
orderStatus
.
code
=
0
;
this
.
orderStatus
.
code
=
0
;
this
.
orderStatus
.
text
=
"
退款中
"
;
this
.
orderStatus
.
text
=
"
已完成
"
;
}
else
if
(
status
==
4
)
{
}
else
if
(
status
==
4
)
{
this
.
orderStatus
.
code
=
-
1
;
this
.
orderStatus
.
code
=
-
1
;
this
.
orderStatus
.
text
=
"已
退款
"
;
this
.
orderStatus
.
text
=
"已
取消
"
;
}
else
if
(
status
==
5
)
{
}
else
if
(
status
==
5
)
{
this
.
orderStatus
.
code
=
0
;
this
.
orderStatus
.
code
=
0
;
this
.
orderStatus
.
text
=
"
正常
"
;
this
.
orderStatus
.
text
=
"
售后
"
;
}
}
},
},
scroll
(
e
)
{
scroll
(
e
)
{
...
@@ -494,7 +506,7 @@
...
@@ -494,7 +506,7 @@
this
.
peopleNum
++
this
.
peopleNum
++
})
})
})
})
this
.
formatStatus
(
res
.
data
.
model
.
OrderStatus
);
this
.
formatStatus
(
res
.
data
.
directOrder
);
}
}
},
err
=>
{
},
err
=>
{
uni
.
hideLoading
();
uni
.
hideLoading
();
...
@@ -551,6 +563,7 @@
...
@@ -551,6 +563,7 @@
if
(
tempData
&&
tempData
.
PriceDetails
&&
tempData
.
PriceDetails
.
HotelList
&&
tempData
if
(
tempData
&&
tempData
.
PriceDetails
&&
tempData
.
PriceDetails
.
HotelList
&&
tempData
.
PriceDetails
.
HotelList
.
length
>
0
)
{
.
PriceDetails
.
HotelList
.
length
>
0
)
{
this
.
RatePlanList
=
tempData
.
PriceDetails
.
HotelList
[
0
].
RatePlanList
;
this
.
RatePlanList
=
tempData
.
PriceDetails
.
HotelList
[
0
].
RatePlanList
;
this
.
roomRateDetails
=
tempData
.
PriceDetails
.
HotelList
[
0
];
}
}
}
}
},
failed
=>
{
},
failed
=>
{
...
...
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