@ -77,26 +77,26 @@
< u -popup v-model ="scenic_spot" mode="bottom" :closeable="true" border-radius="20" >
< view class = "lf-p-32" >
< view class = "price lf-flex" >
< lf -price :price ="goods_detai .spec[type_index].price"> < / l f - p r i c e >
< view class = "pop-price lf-m-l-20 lf-font-24" > ¥ { { goods_detail . spec [ type_index ] . original_price } } < / view >
< lf -price : price = "choose_date_price || goods_detail .spec[type_index].price"> < / l f - p r i c e >
< view class = "pop-price lf-m-l-20 lf-font-24" > ¥ { { choose_date_orangilprice || goods_detail . spec [ type_index ] . original_price } } < / view >
< / view >
< view class = "lf-font-24 lf-m-t-20 lf-color-555" >
开始 时间: { { choose_date } }
使用 时间: { { choose_date } }
< / view >
< view style = "margin-top: 60rpx;" >
< text class = "lf-font-32 lf-font-bold" style = "color: #131315;" > 套餐类型 < / text >
< view class = "lf-m-t-30 choose-father" >
< view class = "choose-span" :class ="type_index==index?'choose-active':''" v-for ="(item,index) of goods_detail.spec" :key="index" @click="chooseType(index)" > {{ item.product_spec. name }} < / view >
< view class = "choose-span" :class ="type_index==index?'choose-active':''" v-for ="(item,index) of goods_detail.spec" :key="index" @click="chooseType(index)" > {{ item.name }} < / view >
< / view >
< / view >
< view class = "lf-m-t-30" >
< text class = "lf-font-32 lf-font-bold" style = "color: #131315;" > 开始 时间< / text >
< text class = "lf-font-32 lf-font-bold" style = "color: #131315;" > 使用 时间< / text >
< view class = "lf-row-between list-item lf-m-t-20" style = "padding: 0!important;" >
< view class = "lf-row-center" >
< text class = "lf-font-28 lf-color-gray" > 开始 时间< / text >
< text class = "lf-font-28 lf-color-gray" > 使用 时间< / text >
< / view >
< view class = "lf-flex" >
< picker mode = "date" :value ="choose_date" @change ="pickerChange" >
< picker mode = "date" :end ="goods_detail.spec[type_index].date_end" :start ="goods_detail.spec[type_index].date_start" : value ="choose_date" @change ="pickerChange" start = "2021-09-26" end = "2021-09-30" >
<!-- < view class = "lf-color-555 lf-text-right" style = "width: 400rpx;" > { { '请选择收货时间...' } } < / view > -- >
< view class = "lf-color-333 lf-text-right lf-font-28" style = "width: 400rpx;" > { { choose_date } } < / view >
< / picker >
@ -166,8 +166,8 @@
< u -popup v-model ="hotel" mode="bottom" :closeable="true" border-radius="20" >
< view class = "lf-p-32" >
< view class = "price lf-flex" >
< lf -price :price ="goods_detai .spec[type_index].price"> < / l f - p r i c e >
< view class = "pop-price lf-m-l-20 lf-font-24" > ¥ { { goods_detail . spec [ type_index ] . original_price } } < / view >
< lf -price : price = "total_hotel_price || goods_detail .spec[type_index].price"> < / l f - p r i c e >
< view class = "pop-price lf-m-l-20 lf-font-24" > ¥ { { total_hotel_orginalprice || goods_detail . spec [ type_index ] . original_price } } < / view >
< / view >
< view class = "lf-font-24 lf-m-t-20 lf-color-555" >
酒店住房日期 : { { live_date } } ~ { { leave_date } }
@ -175,20 +175,16 @@
< view style = "margin-top: 60rpx;" >
< text class = "lf-font-32 lf-font-bold" style = "color: #131315;" > 套餐类型 < / text >
< view class = "lf-m-t-30 choose-father" >
< view class = "choose-span" :class ="type_index==index?'choose-active':''" v-for ="(item,index) of goods_detail.spec" :key="index" @click="chooseType(index)" > {{ item.product_spec .name }} < / view >
< view class = "choose-span" :class ="type_index==index?'choose-active':''" v-for ="(item,index) of goods_detail.spec" :key="index" @click="chooseTypehotel (index)" > {{ item.name }} < / view >
< / view >
< / view >
< view class = "lf-m-t-30" >
< view class = "lf-row-between" >
< text class = "lf-font-32 lf-font-bold" style = "color: #131315;" > 酒店住房日期 < / text >
< text class = "lf-font-24 lf-color-gray" v-if ="totalLive" > 共 {{ totalLive }} 晚 < / text >
< / view >
< view class = "lf-row-between list-item lf-m-t-20" style = "padding: 0!important;" >
< view class = "lf-row-center" >
< text class = "lf-font-28 lf-color-gray" > 入住时间 < / text >
< / view >
< view class = "lf-flex" >
< picker mode = "date" :value ="live_date" @change ="liveChange" >
< picker mode = "date" :end ="goods_detail.spec[type_index].date_end" :start ="goods_detail.spec[type_index].date_start" : value ="live_date" @change ="liveChange" >
<!-- < view class = "lf-color-555 lf-text-right" style = "width: 400rpx;" > { { '请选择收货时间...' } } < / view > -- >
< view class = "lf-color-333 lf-text-right lf-font-28" style = "width: 400rpx;" > { { live_date } } < / view >
< / picker >
@ -200,7 +196,7 @@
< text class = "lf-font-28 lf-color-gray" > 离店时间 < / text >
< / view >
< view class = "lf-flex" >
< picker mode = "date" :value ="leave_date" @change ="leaveChange" >
< picker mode = "date" :end ="goods_detail.spec[type_index].date_end" :start ="goods_detail.spec[type_index].date_start" : value ="leave_date" @change ="leaveChange" >
<!-- < view class = "lf-color-555 lf-text-right" style = "width: 400rpx;" > { { '请选择收货时间...' } } < / view > -- >
< view class = "lf-color-333 lf-text-right lf-font-28" style = "width: 400rpx;" > { { leave_date } } < / view >
< / picker >
@ -212,7 +208,7 @@
< text class = "lf-font-28 lf-color-gray" > 到店日期 < / text >
< / view >
< view class = "lf-flex" >
< picker mode = "date" :value ="arrive_date" @change ="arriveChange" >
< picker mode = "date" :end ="goods_detail.spec[type_index].date_end" :start ="goods_detail.spec[type_index].date_start" : value ="arrive_date" @change ="arriveChange" >
<!-- < view class = "lf-color-555 lf-text-right" style = "width: 400rpx;" > { { '请选择收货时间...' } } < / view > -- >
< view class = "lf-color-333 lf-text-right lf-font-28" style = "width: 400rpx;" > { { arrive_date } } < / view >
< / picker >
@ -270,28 +266,25 @@
< u -popup v-model ="travel_route" mode="bottom" :closeable="true" border-radius="20" >
< view class = "lf-p-32" >
< view class = "price lf-flex" >
< lf -price :price =" goods_detail.spec[type_index].price"> < / l f - p r i c e >
< view class = "pop-price lf-m-l-20 lf-font-24" > ¥ { { goods_detail . spec [ type_index ] . original_price } } < / view >
< lf -price : price = "choose_date_price || goods_detail.spec[type_index].price"> < / l f - p r i c e >
< view class = "pop-price lf-m-l-20 lf-font-24" > ¥ { { choose_date_orangilprice || goods_detail . spec [ type_index ] . original_price } } < / view >
< / view >
< view class = "lf-font-24 lf-m-t-20 lf-color-555" >
套餐类型 : { { goods_detail . spec [ type_index ] . product_spec . name } }
套餐类型 : { { goods_detail . spec [ type_index ] . name } }
< / view >
< view style = "margin-top: 60rpx;" >
< text class = "lf-font-32 lf-font-bold" style = "color: #131315;" > 套餐类型 < / text >
< view class = "lf-m-t-30 choose-father" >
< view class = "choose-span" :class ="type_index==index?'choose-active':''" v-for ="(item,index) of goods_detail.spec" @click="chooseType(index)" :key ="index" > {{ item.product_spec. name }} < / view >
< view class = "choose-span" :class ="type_index==index?'choose-active':''" v-for ="(item,index) of goods_detail.spec" @click="chooseType(index)" :key ="index" > {{ item.name }} < / view >
< / view >
< / view >
< view class = "lf-m-t-30" >
< view class = "lf-row-between" >
< text class = "lf-font-32 lf-font-bold" style = "color: #131315;" > 出行日期 < / text >
< / view >
< view class = "lf-row-between list-item lf-m-t-20" style = "padding: 0!important;" >
< view class = "lf-row-center" >
< text class = "lf-font-28 lf-color-gray" > 开始 时间< / text >
< text class = "lf-font-28 lf-color-gray" > 使用时间 < / text >
< / view >
< view class = "lf-flex" >
< picker mode = "date" :value ="go_date" @change ="goChange" >
< picker mode = "date" :end ="goods_detail.spec[type_index].date_end" :start ="goods_detail.spec[type_index].date_start" : value ="go_date" @change ="goChange" >
<!-- < view class = "lf-color-555 lf-text-right" style = "width: 400rpx;" > { { '请选择收货时间...' } } < / view > -- >
< view class = "lf-color-333 lf-text-right lf-font-28" style = "width: 400rpx;" > { { go_date } } < / view >
< / picker >
@ -308,11 +301,11 @@
< u -popup v-model ="car" mode="bottom" :closeable="true" border-radius="20" >
< view class = "lf-p-32" >
< view class = "price lf-flex" >
< lf -price :price =" goods_detail.spec[type_index].price"> < / l f - p r i c e >
< view class = "pop-price lf-m-l-20 lf-font-24" > ¥ { { goods_detail . spec [ type_index ] . original_price } } < / view >
< lf -price : price = "choose_date_price || goods_detail.spec[type_index].price"> < / l f - p r i c e >
< view class = "pop-price lf-m-l-20 lf-font-24" > ¥ { { choose_date_orangilprice || goods_detail . spec [ type_index ] . original_price } } < / view >
< / view >
< view class = "lf-font-24 lf-m-t-20 lf-color-555" >
套餐类型 : { { goods_detail . spec [ type_index ] . product_spec . name } }
套餐类型 : { { goods_detail . spec [ type_index ] . name } }
< / view >
< view style = "margin-top: 60rpx;" >
< text class = "lf-font-32 lf-font-bold" style = "color: #131315;" > 套餐类型 < / text >
@ -321,15 +314,12 @@
< / view >
< / view >
< view class = "lf-m-t-30" >
< view class = "lf-row-between" >
< text class = "lf-font-32 lf-font-bold" style = "color: #131315;" > 出行日期 < / text >
< / view >
< view class = "lf-row-between list-item lf-m-t-20" style = "padding: 0!important;" >
< view class = "lf-row-center" >
< text class = "lf-font-28 lf-color-gray" > 开始 时间< / text >
< text class = "lf-font-28 lf-color-gray" > 使用时间 < / text >
< / view >
< view class = "lf-flex" >
< picker mode = "date" :value ="go_date" @change ="goChange" >
< picker mode = "date" :end ="goods_detail.spec[type_index].date_end" :start ="goods_detail.spec[type_index].date_start" : value ="go_date" @change ="goChange" >
<!-- < view class = "lf-color-555 lf-text-right" style = "width: 400rpx;" > { { '请选择收货时间...' } } < / view > -- >
< view class = "lf-color-333 lf-text-right lf-font-28" style = "width: 400rpx;" > { { go_date } } < / view >
< / picker >
@ -346,16 +336,16 @@
< u -popup v-model ="single" mode="bottom" :closeable="true" border-radius="20" >
< view class = "lf-p-32" >
< view class = "price lf-flex" >
< lf -price :price =" goods_detail.spec[type_index].price"> < / l f - p r i c e >
< view class = "pop-price lf-m-l-20 lf-font-24" > ¥ { { goods_detail . spec [ type_index ] . original_price } } < / view >
< lf -price : price = "choose_date_price || goods_detail.spec[type_index].price"> < / l f - p r i c e >
< view class = "pop-price lf-m-l-20 lf-font-24" > ¥ { { choose_date_orangilprice || goods_detail . spec [ type_index ] . original_price } } < / view >
< / view >
< view class = "lf-font-24 lf-m-t-20 lf-color-555" >
套餐类型 : { { goods_detail . spec [ type_index ] . product_spec . name } }
套餐类型 : { { goods_detail . spec [ type_index ] . name } }
< / view >
< view style = "margin-top: 60rpx;" >
< text class = "lf-font-32 lf-font-bold" style = "color: #131315;" > 套餐类型 < / text >
< view class = "lf-m-t-30 choose-father" >
< view class = "choose-span" :class ="type_index==index?'choose-active':''" v-for ="(item,index) of goods_detail.spec" @click="chooseType(index)" :key ="index" > {{ item.product_spec. name }} < / view >
< view class = "choose-span" :class ="type_index==index?'choose-active':''" v-for ="(item,index) of goods_detail.spec" @click="chooseType(index)" :key ="index" > {{ item.name }} < / view >
< / view >
< / view >
< view class = "lf-m-t-30" >
@ -364,10 +354,10 @@
< / view >
< view class = "lf-row-between list-item lf-m-t-20" style = "padding: 0!important;" >
< view class = "lf-row-center" >
< text class = "lf-font-28 lf-color-gray" > 开始 时间< / text >
< text class = "lf-font-28 lf-color-gray" > 使用 时间< / text >
< / view >
< view class = "lf-flex" >
< picker mode = "date" :value ="go_date" @change ="goChange" >
< picker mode = "date" :end ="goods_detail.spec[type_index].date_end" :start ="goods_detail.spec[type_index].date_start" : value ="go_date" @change ="goChange" >
<!-- < view class = "lf-color-555 lf-text-right" style = "width: 400rpx;" > { { '请选择收货时间...' } } < / view > -- >
< view class = "lf-color-333 lf-text-right lf-font-28" style = "width: 400rpx;" > { { go_date } } < / view >
< / picker >
@ -438,7 +428,7 @@
/ / 景 区 类 型 相 关
scenic_spot : false ,
type_index : 0 ,
choose_date : '请选择开始 时间' ,
choose_date : '请选择使用 时间' ,
/ / 酒 店 相 关
hotel : false ,
live_date : '请选择入住日期' ,
@ -448,12 +438,21 @@
totalLive : '' , / / 住 宿 时 间
/ / 旅 游 路 线 相 关
travel_route : false ,
go_date : '请选择开始 时间' ,
go_date : '请选择使用 时间' ,
back_date : '请选择回程日期' ,
/ / 餐 厅
canteen : false ,
car : false ,
single : false ,
choose_date_price : '' ,
choose_date_orangilprice : '' ,
choose_date_specid : '' ,
/ / 酒 店
total_hotel_price : 0 ,
total_hotel_orginalprice : 0 ,
live_index : 0 ,
leave_index : 0 ,
hotel_specid : [ ]
}
} ,
components : { zwyCalendar } ,
@ -484,14 +483,32 @@
var nowTime = new Date ( new Date ( ) . toLocaleDateString ( ) ) . getTime ( ) ;
let oldTime = new Date ( new Date ( e . detail . value ) . toLocaleDateString ( ) ) . getTime ( ) ;
if ( oldTime < nowTime ) {
this . $msg ( '请选择正确的开始 时间!' ) ;
this . $msg ( '请选择正确的使用 时间!' ) ;
var date1 = new Date ( ) ;
var date2 = new Date ( date1 ) ;
date2 . setDate ( date1 . getDate ( ) ) ;
this . choose_date = this . $shared . recordTime ( date2 , '-' , 'date' )
let differrentList = this . goods_detail . spec [ this . type_index ] . list ;
console . log ( differrentList )
differrentList . forEach ( ( item , index ) => {
if ( item . date == this . choose_date ) {
this . choose_date_price = this . goods_detail . spec [ this . type_index ] . list [ index ] . price ;
this . choose_date_orangilprice = this . goods_detail . spec [ this . type_index ] . list [ index ] . original_price ;
this . choose_date_specid = this . goods_detail . spec [ this . type_index ] . list [ index ] . id ;
}
} )
return
} else {
this . choose_date = e . detail . value ;
let differrentList = this . goods_detail . spec [ this . type_index ] . list ;
console . log ( differrentList )
differrentList . forEach ( ( item , index ) => {
if ( item . date == this . choose_date ) {
this . choose_date_price = this . goods_detail . spec [ this . type_index ] . list [ index ] . price ;
this . choose_date_orangilprice = this . goods_detail . spec [ this . type_index ] . list [ index ] . original_price ;
this . choose_date_specid = this . goods_detail . spec [ this . type_index ] . list [ index ] . id ;
}
} )
}
} ,
arriveChange ( e ) {
@ -510,24 +527,43 @@
this . arrive_time = e . detail . value ;
} ,
goChange ( e ) {
this . go_date = e . detail . value ;
/ / v a r n o w T i m e = n e w D a t e ( n e w D a t e ( ) . t o L o c a l e D a t e S t r i n g ( ) ) . g e t T i m e ( ) ;
/ / l e t o l d T i m e = n e w D a t e ( n e w D a t e ( e . d e t a i l . v a l u e ) . t o L o c a l e D a t e S t r i n g ( ) ) . g e t T i m e ( ) ;
/ / i f ( o l d T i m e < n o w T i m e ) {
/ / t h i s . $ m s g ( ' 请 选 择 正 确 的 开 始 时 间 ! ' ) ;
/ / v a r d a t e 1 = n e w D a t e ( ) ;
/ / v a r d a t e 2 = n e w D a t e ( d a t e 1 ) ;
/ / d a t e 2 . s e t D a t e ( d a t e 1 . g e t D a t e ( ) ) ;
/ / t h i s . g o _ d a t e = t h i s . $ s h a r e d . r e c o r d T i m e ( d a t e 2 , ' - ' , ' d a t e ' )
/ / r e t u r n
/ / } e l s e {
/ / t h i s . g o _ d a t e = e . d e t a i l . v a l u e ;
/ / }
var nowTime = new Date ( new Date ( ) . toLocaleDateString ( ) ) . getTime ( ) ;
let oldTime = new Date ( new Date ( e . detail . value ) . toLocaleDateString ( ) ) . getTime ( ) ;
if ( oldTime < nowTime ) {
this . $msg ( '请选择正确的使用时间!' ) ;
var date1 = new Date ( ) ;
var date2 = new Date ( date1 ) ;
date2 . setDate ( date1 . getDate ( ) ) ;
this . go_date = this . $shared . recordTime ( date2 , '-' , 'date' )
let differrentList = this . goods_detail . spec [ this . type_index ] . list ;
console . log ( differrentList )
differrentList . forEach ( ( item , index ) => {
if ( item . date == this . go_date ) {
this . choose_date_price = this . goods_detail . spec [ this . type_index ] . list [ index ] . price ;
this . choose_date_orangilprice = this . goods_detail . spec [ this . type_index ] . list [ index ] . original_price ;
this . choose_date_specid = this . goods_detail . spec [ this . type_index ] . list [ index ] . id ;
}
} )
return
} else {
this . go_date = e . detail . value ;
let differrentList = this . goods_detail . spec [ this . type_index ] . list ;
console . log ( differrentList )
differrentList . forEach ( ( item , index ) => {
if ( item . date == this . go_date ) {
this . choose_date_price = this . goods_detail . spec [ this . type_index ] . list [ index ] . price ;
this . choose_date_orangilprice = this . goods_detail . spec [ this . type_index ] . list [ index ] . original_price ;
this . choose_date_specid = this . goods_detail . spec [ this . type_index ] . list [ index ] . id ;
}
} )
}
} ,
backChange ( e ) {
this . back_date = e . detail . value ;
} ,
liveChange ( e ) {
this . total_hotel_price = 0 ;
this . total_hotel_orginalprice = 0 ;
let compateDate = this . compareDate ( e . detail . value ) ;
if ( compateDate ) {
this . live_date = e . detail . value ;
@ -537,9 +573,28 @@
} else {
this . $msg ( '入住时间要大于当前时间!' ) ;
}
let differrentList = this . goods_detail . spec [ this . type_index ] . list ;
differrentList . forEach ( ( item , index ) => {
if ( item . date == e . detail . value ) {
this . live_index = index ;
} else if ( item . date == this . leave_date ) {
this . leave_index = index ;
}
} )
let total_date = differrentList . slice ( this . live_index , this . leave_index ) ;
this . hotel_specid = [ ] ;
total_date . reduce ( ( list , item ) => {
this . total_hotel_price += parseInt ( item . price ) ;
this . total_hotel_orginalprice += parseInt ( item . original_price ) ;
this . hotel_specid . push ( item . id ) ;
console . log ( this . hotel_specid ) ;
} , [ ] ) ;
} ,
leaveChange ( e ) {
this . total_hotel_price = 0 ;
this . total_hotel_orginalprice = 0 ;
let live_date = new Date ( new Date ( this . live_date ) . toLocaleDateString ( ) ) . getTime ( ) ;
let leave_date = new Date ( new Date ( e . detail . value ) . toLocaleDateString ( ) ) . getTime ( ) ;
if ( leave_date > live_date || leave_date == live_date ) {
@ -552,12 +607,39 @@
this . leave_date = this . $shared . recordTime ( date2 , '-' , 'date' )
return
}
this . totalLive = parseInt ( Math . abs ( leave_date - live_date ) / 1000 / 60 / 60 / 24 ) ;
let differrentList = this . goods_detail . spec [ this . type_index ] . list ;
console . log ( differrentList )
differrentList . forEach ( ( item , index ) => {
if ( item . date == this . live_date ) {
this . live_index = index ;
} else if ( item . date == e . detail . value ) {
this . leave_index = index ;
}
} )
let total_date = differrentList . slice ( this . live_index , this . leave_index ) ;
this . hotel_specid = [ ] ;
total_date . reduce ( ( list , item ) => {
this . total_hotel_price += parseInt ( item . price ) ;
this . total_hotel_orginalprice += parseInt ( item . original_price ) ;
this . hotel_specid . push ( item . id ) ;
console . log ( this . hotel_specid ) ;
} , [ ] ) ;
} ,
chooseType ( index ) {
this . type_index = index ;
let differrentList = this . goods_detail . spec [ this . type_index ] . list ;
differrentList . forEach ( ( item , index ) => {
if ( item . date == this . choose_date ) {
this . choose_date_price = this . goods_detail . spec [ this . type_index ] . list [ index ] . price ;
this . choose_date_orangilprice = this . goods_detail . spec [ this . type_index ] . list [ index ] . original_price ;
this . choose_date_specid = this . goods_detail . spec [ this . type_index ] . list [ index ] . id ;
}
} )
} ,
chooseTypehotel ( index ) {
this . type_index = index ;
} ,
changePop ( type ) {
if ( type == 2 ) {
@ -636,21 +718,21 @@
/ / 0 旅 游 路 线 1 酒 店 2 景 区 3 餐 厅
if ( this . goods_detail . product . type == 2 ) {
/ / 景 区
if ( this . choose_date != '请选择开始 时间' ) {
if ( this . choose_date != '请选择使用 时间' ) {
let date_compare = this . compareDate ( this . choose_date ) ;
console . log ( date_compare )
if ( date_compare ) {
let goods_id = this . goods_detail . id ;
let godds_type = this . goods_detail . product . type ;
let enter_time = this . choose_date ;
let spec_id = this . goods_detail . spec [ this . type_index ] . id ;
let type_text = this . goods_detail . spec [ this . type_index ] . product_spec . name ;
let spec_id = this . choose_date_spec id;
let type_text = this . goods_detail . spec [ this . type_index ] . name ;
this . $url ( '/pages/order/confirm_order?goods_id=' + goods_id + '&spec_id=' + spec_id + '&goods_type=' + godds_type + '&enter_time=' + enter_time + '&goods_typetext=' + type_text ) ;
} else {
this . $msg ( '请选择正确的开始 时间!' ) ;
this . $msg ( '请选择正确的使用 时间!' ) ;
}
} else {
this . $msg ( '请选择开始 时间!' ) ;
this . $msg ( '请选择使用 时间!' ) ;
}
} else if ( this . goods_detail . product . type == 1 ) {
let date1 = false ;
@ -701,8 +783,8 @@
console . log ( arrival_time )
let goods_id = this . goods_detail . id ;
let godds_type = this . goods_detail . product . type ;
let spec_id = this . goods_detail . spec [ this . type_index ] . id ;
let type_text = this . goods_detail . spec [ this . type_index ] . product_spec . name ;
let spec_id = this . hotel_spec id;
let type_text = this . goods_detail . spec [ this . type_index ] . name ;
/ / 酒 店
let check_in_time = this . live_date ;
let check_out_time = this . leave_date ;
@ -711,21 +793,21 @@
this . $url ( '/pages/order/confirm_order?goods_id=' + goods_id + '&spec_id=' + spec_id + '&goods_type=' + godds_type + '&check_in_time=' + check_in_time + '&goods_typetext=' + type_text + '&check_out_time=' + check_out_time + '&arrival_time=' + arrival_time + '&totalLive=' + totalLive ) ;
}
} else if ( this . goods_detail . product . type == 0 || this . goods_detail . product . type == 4 || this . goods_detail . product . type == 5 ) {
if ( this . go_date != '请选择开始 时间' ) {
if ( this . go_date != '请选择使用 时间' ) {
let date_compare = this . compareDate ( this . go_date ) ;
console . log ( date_compare )
if ( date_compare ) {
let goods_id = this . goods_detail . id ;
let godds_type = this . goods_detail . product . type ;
let departure_time = this . go_date ;
let spec_id = this . goods_detail . spec [ this . type_index ] . id ;
let type_text = this . goods_detail . spec [ this . type_index ] . product_spec . name ;
let spec_id = this . choose_date_spec id;
let type_text = this . goods_detail . spec [ this . type_index ] . name ;
this . $url ( '/pages/order/confirm_order?goods_id=' + goods_id + '&spec_id=' + spec_id + '&goods_type=' + godds_type + '&departure_time=' + departure_time + '&goods_typetext=' + type_text ) ;
} else {
this . $msg ( '请选择正确的开始 时间!' ) ;
this . $msg ( '请选择正确的使用 时间!' ) ;
}
} else {
this . $msg ( '请选择开始 时间!' ) ;
this . $msg ( '请选择使用 时间!' ) ;
}
}