Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
b530ce06
Commit
b530ce06
authored
Nov 18, 2019
by
任国军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add active_image
parent
b347912e
Pipeline
#16533
passed with stage
in 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
course_cat.js
app/model/class/course_cat.js
+1
-0
institutionSub.js
app/service/course/institutionSub.js
+2
-2
No files found.
app/model/class/course_cat.js
View file @
b530ce06
...
@@ -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'
),
...
...
app/service/course/institutionSub.js
View file @
b530ce06
...
@@ -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
.
create
d
({
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
=
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment