diff --git a/pages/goodsDetail/index.vue b/pages/goodsDetail/index.vue index b5141fb..ba1a85b 100644 --- a/pages/goodsDetail/index.vue +++ b/pages/goodsDetail/index.vue @@ -77,8 +77,8 @@ - - ¥{{ goods_detail.product.spec[type_index].original_price }} + + ¥{{ goods_detail.spec[type_index].original_price }} 开始时间:{{ choose_date }} @@ -86,7 +86,7 @@ 套餐类型 - {{item.name}} + {{item.product_spec.name}} @@ -166,8 +166,8 @@ - - ¥{{ goods_detail.product.spec[type_index].original_price }} + + ¥{{ goods_detail.spec[type_index].original_price }} 酒店住房日期:{{live_date}}~{{leave_date}} @@ -175,7 +175,7 @@ 套餐类型 - {{item.name}} + {{item.product_spec.name}} @@ -270,16 +270,92 @@ - - ¥{{ goods_detail.product.spec[type_index].original_price }} + + ¥{{ goods_detail.spec[type_index].original_price }} - 套餐类型:{{goods_detail.product.spec[type_index].name}} + 套餐类型:{{goods_detail.spec[type_index].product_spec.name}} 套餐类型 - {{item.name}} + {{item.product_spec.name}} + + + + + 出行日期 + + + + 开始时间 + + + + + {{ go_date }} + + + + + + + + + + + + + + + + ¥{{ goods_detail.spec[type_index].original_price }} + + + 套餐类型:{{goods_detail.spec[type_index].product_spec.name}} + + + 套餐类型 + + {{item.name}} + + + + + 出行日期 + + + + 开始时间 + + + + + {{ go_date }} + + + + + + + + + + + + + + + + ¥{{ goods_detail.spec[type_index].original_price }} + + + 套餐类型:{{goods_detail.spec[type_index].product_spec.name}} + + + 套餐类型 + + {{item.product_spec.name}} @@ -375,7 +451,9 @@ go_date: '请选择开始时间', back_date: '请选择回程日期', //餐厅 - canteen: false + canteen: false, + car: false, + single:false, } }, components: {zwyCalendar}, @@ -403,8 +481,18 @@ } }, pickerChange(e) { - this.choose_date = e.detail.value; - console.log(e) + var nowTime = new Date(new Date().toLocaleDateString()).getTime(); + let oldTime = new Date(new Date(e.detail.value).toLocaleDateString()).getTime(); + if(oldTime - + 套餐类型 {{goods_typetext}} @@ -207,7 +207,7 @@ this.getGoodsData(this.pay_type); if(this.goods_type == 2) { this.enter_time = e.enter_time; - }else if(this.goods_type == 0) { + }else if(this.goods_type == 0 || this.goods_type == 4 || this.goods_type == 5) { this.departure_time = e.departure_time; }else if(this.goods_type == 1) { this.check_in_time = e.check_in_time; @@ -252,6 +252,10 @@ }else { this.sex = '女'; } + if(this.vertify_code == '') { + this.sex = '请输入身份证号码获取'; + this.age = '请输入身份证号码获取'; + } }, getPhoneNumber(event){ if(event.detail.errMsg == 'getPhoneNumber:ok'){ @@ -276,7 +280,7 @@ } }, getGoodsData(type){ - this.$http(this.API.API_CONFIRMDETAILS,{id: this.goods_id,num: 1,pay_type: type}).then(res => { + this.$http(this.API.API_CONFIRMDETAILS,{id: this.goods_id,num: 1,pay_type: type,spec_id: this.spec_id}).then(res => { this.goods_details = res.data; console.log('数据',res) })