Commit f65dfbc0 authored by baixian's avatar baixian

微官网优化

parent 301d4c04
......@@ -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,
};
}
});
......
......@@ -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>}
......
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