|
|
|
@ -191,7 +191,8 @@ |
|
|
|
check_in_time: '', |
|
|
|
check_out_time: '', |
|
|
|
arrival_time: '', |
|
|
|
totalLive: '' |
|
|
|
totalLive: '', |
|
|
|
hotel_specid: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(e) { |
|
|
|
@ -200,7 +201,14 @@ |
|
|
|
this.goods_type = e.goods_type; |
|
|
|
this.btn_type = e.btn_type; |
|
|
|
this.order_id = e.order_id; |
|
|
|
if(this.goods_type == 1) { |
|
|
|
var arr = e.spec_id.split(",") |
|
|
|
console.log(arr) |
|
|
|
this.hotel_specid = arr |
|
|
|
console.log('数组id',this.hotel_specid) |
|
|
|
}else { |
|
|
|
this.spec_id = e.spec_id; |
|
|
|
} |
|
|
|
this.enter_type = e.enter_type; |
|
|
|
this.goods_typetext = e.goods_typetext; |
|
|
|
if(this.goods_id) { |
|
|
|
@ -280,7 +288,7 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
getGoodsData(type){ |
|
|
|
this.$http(this.API.API_CONFIRMDETAILS,{id: this.goods_id,num: 1,pay_type: type,spec_id: this.spec_id}).then(res => { |
|
|
|
this.$http(this.API.API_CONFIRMDETAILS,{id: this.goods_id,num: 1,pay_type: type,spec_id: this.goods_type==1?this.hotel_specid:this.spec_id}).then(res => { |
|
|
|
this.goods_details = res.data; |
|
|
|
console.log('数据',res) |
|
|
|
}) |
|
|
|
|