Commit b530ce06 authored by 任国军's avatar 任国军

add active_image

parent b347912e
Pipeline #16533 passed with stage
in 8 seconds
......@@ -15,6 +15,7 @@ module.exports = app => {
parent_id: INTEGER,
name: STRING,
image: STRING,
active_image: STRING,
color: STRING,
tips: STRING,
status: ENUM('offline', 'online'),
......
......@@ -18,7 +18,7 @@ class InstitutionSubService extends Service {
for (const v of AllCats) {
if (v.parent_id === 0) {
rootCats[v.id] = v.dataValues;
rootCats[v.id].child = [{ id: 0, value: v.id, name: '全部', parent_id: 0, image: '', color: '', tips: '', status: 'online', is_deleted: 0 }];
rootCats[v.id].child = [{ id: 0, value: v.id, name: '全部', parent_id: 0, image: 'http://r.51gjj.com/webpublic/images/20191118/s6yRUsc5kclyu.png', active_image:'http://r.51gjj.com/webpublic/images/20191118/zYHkYp85vxk5m.png' color: '', tips: '', status: 'online', is_deleted: 0 }];
}
}
......@@ -194,7 +194,7 @@ class InstitutionSubService extends Service {
// 保存定位记录
if (address && lat && lng) {
ctx.classModel.CourseLogUserGps.created({ user_uuid: userUuid, address, lat, lng, created_time: moment().format('YYYY-MM-DD HH:mm:ss') });
ctx.classModel.CourseLogUserGps.create({ user_uuid: userUuid, address, lat, lng, created_time: moment().format('YYYY-MM-DD HH:mm:ss') });
}
let institutionList = [];
......
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