diff --git a/src/pages/service_shop/shop_car_apply.vue b/src/pages/service_shop/shop_car_apply.vue index c0e0c34ed73d9c20d2a30491af09447dee2ca7ba..c9f99cec1b2f0df2dd1aa412ad0a30951f7019b4 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; }