From 1e172c6802f63fc315d94a9cdd9a8d6a81650ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=AE=BF=E6=98=95?= Date: Fri, 27 Nov 2020 02:36:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=94=B3=E8=AF=B7=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/service_shop/shop_car_apply.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/service_shop/shop_car_apply.vue b/src/pages/service_shop/shop_car_apply.vue index c0e0c34..c9f99ce 100644 --- a/src/pages/service_shop/shop_car_apply.vue +++ b/src/pages/service_shop/shop_car_apply.vue @@ -183,7 +183,7 @@ export default { //服务 this.post_arr = [data]; this.post_arr[0].service_id = parseInt(service_data.service_id); - this.post_arr[0].spec_id = parseInt(service_data.spcs_id); + this.post_arr[0].spec_id = parseInt(service_data.spec_id); this.post_arr[0].duration_method = parseInt( service_data.duration_unit ); @@ -203,7 +203,7 @@ export default { this.service_arr[0]["size"] = ""; this.service_arr[0]["count"] = ""; data.request_spcs_info.forEach((el) => { - if (service_data.spcs_id == el.id) { + if (service_data.spec_id == el.id) { let size = ""; let count = ""; if (el.spcs_type==1) { @@ -212,7 +212,7 @@ export default { count = el.money; } else { size = `${el.money}金币/${el.duration_unit == 1 ? "月" : "年"}`; - this.service_arr[0]["num"] = service_data.duration; + this.service_arr[0]["num"] = service_data.duration + (el.duration_unit == 1 ? "个月" : "年"); count = service_data.duration*el.money; } -- 2.26.0