Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
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
华国豪
Athena
Commits
33b7fdd0
Commit
33b7fdd0
authored
Jul 21, 2019
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改酒店
parent
d28d6907
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
13 deletions
+18
-13
HotelDetail.vue
src/components/Hotel/HotelDetail.vue
+1
-2
HotelHome.vue
src/components/Hotel/HotelHome.vue
+1
-1
HotelPayBefore.vue
src/components/Hotel/HotelPayBefore.vue
+9
-4
HotelSure.vue
src/components/Hotel/HotelSure.vue
+7
-6
No files found.
src/components/Hotel/HotelDetail.vue
View file @
33b7fdd0
...
@@ -1156,7 +1156,6 @@ export default {
...
@@ -1156,7 +1156,6 @@ export default {
x
.
roomOptions
=
arr
;
x
.
roomOptions
=
arr
;
}
}
})
})
console
.
log
(
this
.
SimilarList
,
'SimilarList'
);
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
}
}
...
@@ -1212,7 +1211,7 @@ export default {
...
@@ -1212,7 +1211,7 @@ export default {
},
},
//点击预订传递参数
//点击预订传递参数
bookHotel
(
roomOptionCd
){
bookHotel
(
roomOptionCd
){
if
(
sessionStorage
.
getItem
(
"UserId"
)
==
''
&&
!
localStorage
.
userInfo
){
if
(
!
localStorage
.
OpenB2BCode
&&
!
localStorage
.
userInfo
){
return
this
.
Error
(
'请登录!'
)
return
this
.
Error
(
'请登录!'
)
}
}
...
...
src/components/Hotel/HotelHome.vue
View file @
33b7fdd0
...
@@ -338,7 +338,7 @@ export default {
...
@@ -338,7 +338,7 @@ export default {
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
if
(
url
.
indexOf
(
"?"
)
!=
-
1
)
{
let
str
=
url
.
split
(
"?"
)[
1
];
let
str
=
url
.
split
(
"?"
)[
1
];
let
uid
=
str
.
split
(
"uid="
)[
1
];
let
uid
=
str
.
split
(
"uid="
)[
1
];
sessionStorage
.
setItem
(
"UserId
"
,
decodeURIComponent
(
uid
));
localStorage
.
setItem
(
"OpenB2BCode
"
,
decodeURIComponent
(
uid
));
}
}
},
},
methods
:
{
methods
:
{
...
...
src/components/Hotel/HotelPayBefore.vue
View file @
33b7fdd0
...
@@ -147,7 +147,8 @@
...
@@ -147,7 +147,8 @@
</div>
</div>
</div>
</div>
<div>
<div>
<input
type=
"button"
class=
"HP_zhifu"
@
click=
"gotoPay"
value=
"立即支付"
/>
<input
v-if=
"isShowBtn"
type=
"button"
class=
"HP_zhifu"
@
click=
"gotoPay('HotelPay')"
value=
"立即支付"
/>
<input
v-if=
"!isShowBtn"
type=
"button"
class=
"HP_zhifu"
@
click=
"gotoPay('HotelHome')"
value=
"返回首页"
/>
</div>
</div>
</div>
</div>
<div
class=
"PayBefore_Right"
>
<div
class=
"PayBefore_Right"
>
...
@@ -166,7 +167,8 @@ export default {
...
@@ -166,7 +167,8 @@ export default {
TotalPrice
:
0
,
TotalPrice
:
0
,
//订单号
//订单号
bookingNumber
:
0
,
bookingNumber
:
0
,
msgList
:
''
msgList
:
''
,
isShowBtn
:
true
};
};
},
},
created
()
{
created
()
{
...
@@ -175,11 +177,14 @@ export default {
...
@@ -175,11 +177,14 @@ export default {
this
.
TotalPrice
=
this
.
msgList
.
bookMoney
;
this
.
TotalPrice
=
this
.
msgList
.
bookMoney
;
this
.
bookingNumber
=
this
.
msgList
.
orderId
;
this
.
bookingNumber
=
this
.
msgList
.
orderId
;
}
}
if
(
localStorage
.
OpenB2BCode
){
this
.
isShowBtn
=
false
;
}
},
},
methods
:
{
methods
:
{
gotoPay
(){
gotoPay
(
path
){
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/HotelPay"
path
:
path
})
})
}
}
}
}
...
...
src/components/Hotel/HotelSure.vue
View file @
33b7fdd0
...
@@ -763,7 +763,6 @@ export default {
...
@@ -763,7 +763,6 @@ export default {
}
}
this
.
sureMsg
.
totalChargeableRateInfo
=
0
;
this
.
sureMsg
.
totalChargeableRateInfo
=
0
;
this
.
sureMsg
.
totalPriceJapanese
=
0
;
this
.
sureMsg
.
totalPriceJapanese
=
0
;
console
.
log
(
this
.
dataList
,
'datalist'
);
this
.
dataList
.
roomGroup
.
forEach
(
x
=>
{
this
.
dataList
.
roomGroup
.
forEach
(
x
=>
{
if
(
Object
.
prototype
.
toString
.
call
(
x
.
rateGroup
)
==
'[object Object]'
){
if
(
Object
.
prototype
.
toString
.
call
(
x
.
rateGroup
)
==
'[object Object]'
){
let
arr
=
[];
let
arr
=
[];
...
@@ -876,18 +875,21 @@ export default {
...
@@ -876,18 +875,21 @@ export default {
}
}
});
});
},
},
//点击
支付
//点击
下单
BuyHoTel
(){
BuyHoTel
(){
if
(
!
localStorage
.
OpenB2BCode
&&
!
localStorage
.
userInfo
){
return
this
.
Error
(
'请登录!'
)
}
//判断是否为登录状态
//判断是否为登录状态
if
(
localStorage
.
userInfo
){
if
(
localStorage
.
userInfo
){
sessionStorage
.
removeItem
(
"UserId
"
);
localStorage
.
removeItem
(
"OpenB2BCode
"
);
this
.
sureMsg
.
EmployeeIdStr
=
''
;
this
.
sureMsg
.
EmployeeIdStr
=
''
;
let
userInfo
=
this
.
getLocalStorage
();
let
userInfo
=
this
.
getLocalStorage
();
this
.
sureMsg
.
CustomerId
=
userInfo
.
customerId
;
this
.
sureMsg
.
CustomerId
=
userInfo
.
customerId
;
}
}
//判断是否跳过来的
//判断是否跳过来的
if
(
sessionStorage
.
getItem
(
"UserId"
)
){
if
(
localStorage
.
OpenB2BCode
){
this
.
sureMsg
.
EmployeeIdStr
=
sessionStorage
.
getItem
(
"UserId"
);
this
.
sureMsg
.
EmployeeIdStr
=
localStorage
.
getItem
(
'OpenB2BCode'
);
}
}
this
.
sureMsg
.
hotelId
=
this
.
msg
.
hotelId
;
this
.
sureMsg
.
hotelId
=
this
.
msg
.
hotelId
;
...
@@ -911,7 +913,6 @@ export default {
...
@@ -911,7 +913,6 @@ export default {
if
(
this
.
sureMsg
.
CustomerId
==
null
||
this
.
sureMsg
.
CustomerId
==
""
){
if
(
this
.
sureMsg
.
CustomerId
==
null
||
this
.
sureMsg
.
CustomerId
==
""
){
this
.
sureMsg
.
CustomerId
=
0
this
.
sureMsg
.
CustomerId
=
0
}
}
this
.
apipost
(
"dmc_post_Get_GetJAPAN_HotelBooking"
,
this
.
sureMsg
,
res
=>
{
this
.
apipost
(
"dmc_post_Get_GetJAPAN_HotelBooking"
,
this
.
sureMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
'预订成功'
);
this
.
Success
(
'预订成功'
);
...
...
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