Commit 221f5f4d authored by 李尚科's avatar 李尚科

fix

parent b7575e93
Pipeline #13925 passed with stage
in 37 seconds
......@@ -21,6 +21,7 @@ class InstitutionService extends Service {
institution_detail = institution_detail[0];
institution_detail.address = current_area.address;
institution_detail.phone = current_area.phone;
institution_detail.photo_album = institution.image.split(';');
return { institution_detail, teachers: teachers.rows, classes: classes.rows, areas: areas.rows };
}
......@@ -69,6 +70,8 @@ class InstitutionService extends Service {
let ret = [];
for (let i in classes.rows) {
let classs = classes.rows[i];
const photo_album = institution.image.split(';');
classs.dataValues.image = photo_album[0];
classs.dataValues.price_text = classs.price ? classs.price : '现场咨询';
ret.push(classs);
}
......@@ -146,8 +149,8 @@ class InstitutionService extends Service {
max_age: institution.max_age,
price: institution.price,
tags,
area_id: 1,//校区id
travel_tips: 'XXXXX',
area_id: 1,//校区id TODO
travel_tips: 'XXXXX', //TODO
characteristic: institution.characteristic,
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment