From 900e88d81d04e7ef2643eacd9017950cce7a887a Mon Sep 17 00:00:00 2001 From: Enzo <1284707383@qq.com> Date: Tue, 28 Sep 2021 11:39:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=B7=E6=A0=BC=E7=B2=BE=E7=A1=AE=E8=AE=A1?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goodsDetail/index.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pages/goodsDetail/index.vue b/pages/goodsDetail/index.vue index 88ba091..928a3d2 100644 --- a/pages/goodsDetail/index.vue +++ b/pages/goodsDetail/index.vue @@ -530,10 +530,11 @@ 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.total_hotel_price += parseFloat(item.price); + this.total_hotel_orginalprice += parseFloat(item.original_price); this.hotel_specid.push(item.id); - console.log(this.hotel_specid); + console.log('当前价格',this.total_hotel_price); + console.log('当前11',item.price); }, []); }, change(e) { @@ -698,7 +699,7 @@ let check_in_time = this.live_date; let check_out_time = this.leave_date; let totalLive = this.totalLive; - let form_type = encodeURIComponent(JSON.stringify(this.goods_detail.product.diy_form)); + let form_type = encodeURIComponent(JSON.stringify(this.goods_detail.product.diy_form)); 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_timedate + @@ -713,9 +714,10 @@ let departure_time = this.go_date; let spec_id = this.choose_date_specid; let type_text = this.goods_detail.spec[this.type_index].name; + let form_type = encodeURIComponent(JSON.stringify(this.goods_detail.product.diy_form)); 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); + '&goods_typetext=' + type_text+'&form_type='+form_type); } }, // 预览图片