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 => { ...@@ -15,6 +15,7 @@ module.exports = app => {
parent_id: INTEGER, parent_id: INTEGER,
name: STRING, name: STRING,
image: STRING, image: STRING,
active_image: STRING,
color: STRING, color: STRING,
tips: STRING, tips: STRING,
status: ENUM('offline', 'online'), status: ENUM('offline', 'online'),
......
...@@ -18,7 +18,7 @@ class InstitutionSubService extends Service { ...@@ -18,7 +18,7 @@ class InstitutionSubService extends Service {
for (const v of AllCats) { for (const v of AllCats) {
if (v.parent_id === 0) { if (v.parent_id === 0) {
rootCats[v.id] = v.dataValues; 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 { ...@@ -194,7 +194,7 @@ class InstitutionSubService extends Service {
// 保存定位记录 // 保存定位记录
if (address && lat && lng) { 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 = []; 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