From 871472478aec152b67a6ec142a9627ba63c05e76 Mon Sep 17 00:00:00 2001 From: Enzo <1284707383@qq.com> Date: Mon, 27 Sep 2021 11:35:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A8=E8=8D=90=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goodsDetail/index.vue | 16 +++++++++------- pages/recommList/index.vue | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pages/goodsDetail/index.vue b/pages/goodsDetail/index.vue index 805e9ac..1ee782e 100644 --- a/pages/goodsDetail/index.vue +++ b/pages/goodsDetail/index.vue @@ -81,7 +81,7 @@ ¥{{ choose_date_orangilprice || goods_detail.spec[type_index].original_price }} - 使用时间:{{ choose_date }} + 使用时间:{{ go_date }} 套餐类型 @@ -96,9 +96,9 @@ 使用时间 - + - {{ choose_date }} + {{ go_date }} @@ -629,9 +629,11 @@ }, chooseType(index) { this.type_index = index; + this.choose_date_price = 0; + this.choose_date_orangilprice = 0; let differrentList = this.goods_detail.spec[this.type_index].list; differrentList.forEach((item,index) => { - if(item.date == this.choose_date) { + 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; @@ -737,13 +739,13 @@ //0旅游路线1酒店2景区3餐厅 if(this.goods_detail.product.type == 2) { //景区 - if(this.choose_date != '请选择使用时间') { - let date_compare = this.compareDate(this.choose_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 enter_time = this.choose_date; + let enter_time = this.go_date; let spec_id = this.choose_date_specid; 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='+enter_time+'&goods_typetext='+type_text); diff --git a/pages/recommList/index.vue b/pages/recommList/index.vue index 60656e7..d36e89e 100644 --- a/pages/recommList/index.vue +++ b/pages/recommList/index.vue @@ -4,7 +4,7 @@ - +