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
a0453825
Commit
a0453825
authored
Oct 18, 2019
by
任国军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add option distance
parent
e72a7682
Pipeline
#15076
passed with stage
in 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
option.js
app/service/course/option.js
+10
-1
No files found.
app/service/course/option.js
View file @
a0453825
...
...
@@ -21,7 +21,15 @@ const AGE_CATS = [
const
INSTITUTION_TYPE
=
[
{
id
:
-
14
,
name
:
'全部'
,
value
:
''
},
{
id
:
-
15
,
name
:
'品牌'
,
value
:
'品牌'
},
{
id
:
-
16
,
name
:
'距离'
,
value
:
'距离'
},
];
const
DISTANCES
=
[
{
id
:
-
16
,
name
:
'全部'
,
value
:
0
},
{
id
:
-
17
,
name
:
'500米以内'
,
value
:
500
},
{
id
:
-
18
,
name
:
'1公里以内'
,
value
:
1000
},
{
id
:
-
19
,
name
:
'2公里以内'
,
value
:
2000
},
{
id
:
-
20
,
name
:
'3公里以内'
,
value
:
3000
},
{
id
:
-
21
,
name
:
'5公里以内'
,
value
:
5000
},
];
class
OptionService
extends
Service
{
...
...
@@ -40,6 +48,7 @@ class OptionService extends Service {
cats
:
tree_cats
,
ages
:
AGE_CATS
,
institutions
:
INSTITUTION_TYPE
,
distances
:
DISTANCES
,
};
return
options
;
}
...
...
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