Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
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
wangxuelai
biz.qingxiao.com
Commits
f65dfbc0
Commit
f65dfbc0
authored
Feb 17, 2020
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微官网优化
parent
301d4c04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
officialweb.js
src/models/officialweb.js
+4
-0
SchoolInfoEditor.js
src/pages/officialweb/pagecomponent/SchoolInfoEditor.js
+20
-0
No files found.
src/models/officialweb.js
View file @
f65dfbc0
...
...
@@ -461,6 +461,8 @@ export default {
longitude
:
schoolInfo
.
longitude
,
join_count
:
schoolInfo
.
join_count
,
tel_phone
:
schoolInfo
.
tel_phone
,
visitor_count
:
schoolInfo
.
visitor_count
,
recommend_count
:
schoolInfo
.
recommend_count
,
});
setTimeout
(
schoolinfopostload
);
if
(
data
.
code
==
200
)
{
...
...
@@ -480,6 +482,8 @@ export default {
longitude
:
schoolInfo
.
longitude
,
join_count
:
schoolInfo
.
join_count
,
tel_phone
:
schoolInfo
.
tel_phone
,
visitor_count
:
schoolInfo
.
visitor_count
,
recommend_count
:
schoolInfo
.
recommend_count
,
};
}
});
...
...
src/pages/officialweb/pagecomponent/SchoolInfoEditor.js
View file @
f65dfbc0
...
...
@@ -114,6 +114,26 @@ class SchoolInfoEditorForm extends React.Component {
})(
<
Input
className
=
{
PageStyle
.
FormItemInputClass
}
placeholder
=
"多少人想学"
onChange
=
{
e
=>
this
.
schoolInfoChange
(
e
,
'join_count'
)}
/>
)
}
<
/Form.Item
>
<
Form
.
Item
label
=
"虚拟学员数量"
className
=
{
PageStyle
.
FormItemClass
}
colon
=
{
false
}
{...
formItemLayout
}
>
{
getFieldDecorator
(
'visitor_count'
,
{
initialValue
:
schoolInfo
.
visitor_count
||
0
,
rules
:
[
{
pattern
:
/^
[
1-9
]\d
*$/
,
message
:
'请输入正整数!'
},
],
})(
<
Input
className
=
{
PageStyle
.
FormItemInputClass
}
placeholder
=
"多少人想学"
onChange
=
{
e
=>
this
.
schoolInfoChange
(
e
,
'visitor_count'
)}
/>
)
}
<
span
style
=
{{
display
:
'block'
}}
>
展示在微官网主页效果为:(例)
5999
位学员
<
/span
>
<
/Form.Item
>
<
Form
.
Item
label
=
"虚拟访问量"
className
=
{
PageStyle
.
FormItemClass
}
colon
=
{
false
}
{...
formItemLayout
}
>
{
getFieldDecorator
(
'recommend_count'
,
{
initialValue
:
schoolInfo
.
recommend_count
||
0
,
rules
:
[
{
pattern
:
/^
[
1-9
]\d
*$/
,
message
:
'请输入正整数!'
},
],
})(
<
Input
className
=
{
PageStyle
.
FormItemInputClass
}
placeholder
=
"多少人想学"
onChange
=
{
e
=>
this
.
schoolInfoChange
(
e
,
'recommend_count'
)}
/>
)
}
<
span
style
=
{{
display
:
'block'
}}
>
展示在微官网主页效果为:(例)
888
人访问过
<
/span
>
<
/Form.Item
>
<
Form
.
Item
label
=
"位置"
className
=
{
PageStyle
.
FormItemClass
}
colon
=
{
false
}
{...
formItemLayout
}
>
{
schoolInfo
.
location_address
==
''
&&
<
div
className
=
{
PageStyle
.
locationClass
}
onClick
=
{
this
.
selectaddress
}
>
输入机构地址
<
/div>
}
{
schoolInfo
.
location_address
!=
''
&&
<
div
className
=
{
PageStyle
.
locationClass
}
onClick
=
{
this
.
selectaddress
}
>
{
schoolInfo
.
location_address
||
''
}
<
/div>
}
...
...
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