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
dcb9b670
Commit
dcb9b670
authored
May 28, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
9ed4df20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
44 deletions
+49
-44
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+12
-12
jz_Reserve.vue
pages/jiuzhai/jz_Reserve.vue
+37
-32
No files found.
pages/jiuzhai/jz_LineDetail.vue
View file @
dcb9b670
...
...
@@ -320,7 +320,7 @@
<div
class=
"jz_LineDetail"
>
<view
class=
"jz_TopImg"
>
<swiper
indicator-dots
:autoplay=
"false"
:interval=
"1000"
style=
"height:100%;"
>
<block
v-for=
"(item,cindex) in getCoverImg(dataList.imgCover)"
wx
:key=
"cindex"
>
<block
v-for=
"(item,cindex) in getCoverImg(dataList.imgCover)"
:key=
"cindex"
>
<swiper-item>
<!--
<video
@
click=
"startPlay(item)"
style=
"width:100%;height:100%"
id=
"myVideo"
v-if=
"item.type==1"
:src=
"item.pic_url"
:autoplay=
"false"
loop
muted
show-play-btn
:enable-progress-gesture=
"true"
...
...
@@ -370,7 +370,7 @@
</span>
</view>
<view
style=
"display:flex;overflow-x: auto;"
>
<view
class=
"jz_StartList"
v-for=
"
item in dataList.priceList"
@
click=
"getDayInfo(item)
"
>
<view
class=
"jz_StartList"
v-for=
"
(item,pindex) in dataList.priceList"
@
click=
"getDayInfo(item)"
:key=
"pindex
"
>
<view
class=
"jz_StartTop"
>
{{
getMonth
(
item
.
startDate
)
}}
余
{{
item
.
remainNum
}}
</view>
<view
class=
"jz_StartHoubu"
>
{{
item
.
isSubstitution
==
1
?
'可候补'
:
'不可候补'
}}
...
...
@@ -419,20 +419,20 @@
</span>
<view
class=
"jz_TripMain"
>
<view
class=
"jz_TripLine"
></view>
<view
v-for=
"(item,index) in dataList.dayList"
wx
:key=
"index"
>
<view
v-for=
"(item,index) in dataList.dayList"
:key=
"index"
>
<view
class=
"jz_TripTitle"
>
<view
class=
"jz_TripLeft"
>
第{{getDays(index+1)}}天
</view>
<view
class=
"jz_TripRight"
></view>
</view>
<view
class=
"jz_RightInner"
>
<view
v-for=
"(subItem,SubIndex) in item.dayArray"
v-if=
"subItem.type==7"
wx
:key=
"SubIndex"
>
<view
v-for=
"(subItem,SubIndex) in item.dayArray"
v-if=
"subItem.type==7"
:key=
"SubIndex"
>
<view
class=
"jz_Place"
>
<view
class=
"jz_ComDian"
></view>
<text>
{{subItem.childItem.title}}
</text>
</view>
</view>
<
template
v-for=
"(subItem,index2) in item.dayArray"
v-if=
"subItem.type==2"
wx:key=
"index2"
>
<view
class=
"jz_ImgDiv"
>
<
template
v-for=
"(subItem,index2) in item.dayArray"
v-if=
"subItem.type==2"
>
<view
class=
"jz_ImgDiv"
:key=
"index2"
>
<img
mode=
"aspectFill"
:src=
"subItem.childItem.imaArray[0].url"
alt=
""
>
</view>
<view
class=
"jz_Place"
style=
"align-items: center;"
>
...
...
@@ -453,16 +453,16 @@
</template>
<view
class=
"jz_Place"
>
温馨提示
</view>
<view
class=
"jz_Rermark"
>
<
template
v-for=
"(subItem,sIndex) in item.dayArray"
v-if=
"subItem.type==6"
wx:key=
"sIndex"
>
{{
subItem
.
childItem
.
descriptionText
}}
<
template
v-for=
"(subItem,sIndex) in item.dayArray"
v-if=
"subItem.type==6"
>
<text
:key=
"sIndex"
>
{{
subItem
.
childItem
.
descriptionText
}}
</text>
</
template
>
</view>
<view
class=
"jz_Place"
>
<view
class=
"jz_ComDian"
></view>
<text
class=
"jz_Canyin"
>
餐饮
</text>
<text
class=
"jz_CanInner"
>
<
template
v-for=
"(subItem,sIndex2) in item.dayArray"
v-if=
"subItem.type==4"
wx:key=
"sIndex2"
>
<text
style=
"margin-right:20px;"
v-if=
"subItem.childItem.useDinnerType=='1'"
>
{{
subItem
.
childItem
.
dinnerName
}}
</text>
<
template
v-for=
"(subItem,sIndex2) in item.dayArray"
v-if=
"subItem.type==4"
>
<text
style=
"margin-right:20px;"
:key=
"sIndex2"
v-if=
"subItem.childItem.useDinnerType=='1'"
>
{{
subItem
.
childItem
.
dinnerName
}}
</text>
<text
style=
"margin-right:20px;"
v-if=
"subItem.childItem.useDinnerType=='2'"
>
{{
subItem
.
childItem
.
dinnerName
}}
</text>
<text
v-if=
"subItem.childItem.useDinnerType=='3'"
>
{{
subItem
.
childItem
.
dinnerName
}}
</text>
</
template
>
...
...
@@ -472,8 +472,8 @@
<view
class=
"jz_ComDian"
></view>
<text
class=
"jz_Canyin"
>
酒店
</text>
<text
class=
"jz_CanInner"
>
<
template
v-for=
"(subItem,sIndex3) in item.dayArray"
v-if=
"subItem.type==3"
wx:key=
"sIndex3"
>
<text>
{{
subItem
.
childItem
.
hotelName
}}
<text
v-if=
"index!=dataList.dayList.length-1"
style=
"margin:0 5px;"
>
/
</text></text>
<
template
v-for=
"(subItem,sIndex3) in item.dayArray"
v-if=
"subItem.type==3"
>
<text
:key=
"sIndex3"
>
{{
subItem
.
childItem
.
hotelName
}}
<text
v-if=
"index!=dataList.dayList.length-1"
style=
"margin:0 5px;"
>
/
</text></text>
</
template
>
<text
v-if=
"index!=dataList.dayList.length-1"
>
或同级
</text>
</text>
...
...
pages/jiuzhai/jz_Reserve.vue
View file @
dcb9b670
...
...
@@ -68,8 +68,8 @@
z-index
:
999
;
}
.jz_OrderNow
{
width
:
1
9
0
rpx
;
.jz_Order
Re
Now
{
width
:
1
5
0
rpx
;
height
:
80
rpx
;
background-color
:
#111111
;
text-align
:
center
;
...
...
@@ -96,19 +96,19 @@
<view
class=
"jz_ReseOrder"
>
<view
class=
"jz_ReDix"
>
<view
class=
"jz_RedixTitle"
>
成人:
</view>
<u-number-box
v-model=
"orderMsg.crCount"
:input-width=
"300"
:input-height=
"60"
></u-number-box>
<u-number-box
v-model=
"orderMsg.crCount"
:input-width=
"300"
:input-height=
"60"
@
change=
"calccrCount()"
></u-number-box>
</view>
<view
class=
"jz_ReDix"
>
<view
class=
"jz_RedixTitle"
>
儿童不占床:
</view>
<u-number-box
v-model=
"orderMsg.etbzcCount"
:input-width=
"300"
:input-height=
"60"
></u-number-box>
<u-number-box
v-model=
"orderMsg.etbzcCount"
:input-width=
"300"
:input-height=
"60"
@
change=
"etbzcChange()"
></u-number-box>
</view>
<view
class=
"jz_ReDix"
>
<view
class=
"jz_RedixTitle"
>
儿童占床:
</view>
<u-number-box
v-model=
"orderMsg.etzc"
:input-width=
"300"
:input-height=
"60"
></u-number-box>
<u-number-box
v-model=
"orderMsg.etzc"
:input-width=
"300"
:input-height=
"60"
@
change=
"etzcChange()"
></u-number-box>
</view>
<view
class=
"jz_ReDix"
>
<view
class=
"jz_RedixTitle"
>
婴儿:
</view>
<u-number-box
v-model=
"orderMsg.yeCount"
:input-width=
"300"
:input-height=
"60"
></u-number-box>
<u-number-box
v-model=
"orderMsg.yeCount"
:input-width=
"300"
:input-height=
"60"
@
change=
"yeChange()"
></u-number-box>
</view>
</view>
<view
class=
"jz_OrderDiv"
>
...
...
@@ -118,7 +118,7 @@
<text
style=
"color:#6E6E6E;font-size:24rpx;"
>
共计2人
</text>
</view>
<view
style=
"display:flex;margin-top:-2px;"
>
<view
class=
"jz_Order
Now"
@
click=
"goPay()"
>
去支付
</view>
<view
class=
"jz_Order
ReNow"
@
click=
"goPay()"
>
下单
</view>
</view>
</view>
</view>
...
...
@@ -140,49 +140,54 @@
etCount
:
0
},
zaoniao
:
0
,
price
:
0
,
currentPriceInfo
:
{}
};
},
created
()
{
},
onLoad
(
option
)
{
if
(
option
.
currentPriceInfo
)
{
this
.
currentPriceInfo
=
JSON
.
parse
(
option
.
currentPriceInfo
)
this
.
currentPriceInfo
=
JSON
.
parse
(
option
.
currentPriceInfo
);
this
.
calcMoney
();
}
},
watch
:
{
orderMsg
:
{
handler
(
n
,
o
)
{
this
.
calcMoney
()
},
deep
:
true
,
price
:
0
},
},
methods
:
{
changeChenRen
()
{
//改变成人
calccrCount
(
e
){
console
.
log
(
e
);
this
.
orderMsg
.
crCount
=
e
.
value
;
this
.
calcMoney
();
},
//改变儿童不占床
etbzcChange
(
e
){
this
.
orderMsg
.
etbzcCount
=
e
.
value
;
this
.
calcMoney
();
},
//改变儿童占床
etzcChange
(
e
){
this
.
orderMsg
.
etzc
=
e
.
value
;
this
.
calcMoney
();
},
//改变婴儿
yeChange
(
e
){
this
.
orderMsg
.
yeCount
=
e
.
value
;
this
.
calcMoney
();
},
//计算价格
calcMoney
()
{
console
.
log
(
'进入'
);
this
.
orderMsg
.
etCount
=
this
.
orderMsg
.
etbzcCount
+
this
.
orderMsg
.
etzc
;
this
.
orderMsg
.
etCount
=
parseInt
(
this
.
orderMsg
.
etbzcCount
)
+
parseInt
(
this
.
orderMsg
.
etzc
);
let
money
=
this
.
currentPriceInfo
.
b2BMemberPrice
*
this
.
orderMsg
.
crCount
money
+=
this
.
currentPriceInfo
.
b2BMemberPrice
*
this
.
orderMsg
.
etCount
money
+=
this
.
currentPriceInfo
.
babyChargePrice
*
this
.
orderMsg
.
etCount
money
+=
this
.
currentPriceInfo
.
childNeedPrice
*
this
.
chosenObj
.
etzc
if
(
this
.
chosenObj
.
etbzcCount
>
0
)
money
-=
this
.
currentPriceInfo
.
childNoNeedPrice
*
this
.
chosenObj
.
etbzcCount
money
+=
this
.
currentPriceInfo
.
babyPrice
*
this
.
chosenObj
.
yeCount
let
sumCount
=
this
.
chosenObj
.
crCount
+
this
.
chosenObj
.
etCount
money
+=
this
.
currentPriceInfo
.
childNeedPrice
*
this
.
orderMsg
.
etzc
if
(
this
.
orderMsg
.
etbzcCount
>
0
)
money
-=
this
.
currentPriceInfo
.
childNoNeedPrice
*
this
.
orderMsg
.
etbzcCount
money
+=
this
.
currentPriceInfo
.
babyPrice
*
this
.
orderMsg
.
yeCount
let
sumCount
=
parseInt
(
this
.
orderMsg
.
crCount
)
+
parseInt
(
this
.
orderMsg
.
etCount
)
money
+=
this
.
currentPriceInfo
.
visaPrice
*
sumCount
money
+=
this
.
currentPriceInfo
.
otherPrice
*
sumCount
if
(
this
.
currentPriceInfo
.
discountPric
&&
this
.
currentPriceInfo
.
discountPric
>
0
)
{
this
.
zaoniao
=
this
.
currentPriceInfo
.
discountPrice
*
sumCount
}
...
...
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