king
2021-11-08 0225695d43c773d16f4d0743ad205590eed58cec
src/views/mobdesign/menuform/index.jsx
@@ -6,6 +6,7 @@
import './index.scss'
const { TextArea } = Input
const ColorSketch = asyncComponent(() => import('@/mob/colorsketch'))
const SourceComponent = asyncComponent(() => import('@/menu/components/share/sourcecomponent'))
class CustomMenuForm extends Component {
@@ -30,6 +31,10 @@
      this.props.updateConfig({...config, advertUrl: value})
    } else if (key === 'advertTime') {
      this.props.updateConfig({...config, advertTime: value})
    } else if (key === 'pullRefresh') {
      this.props.updateConfig({...config, pullRefresh: value})
    } else if (key === 'statusBarbgColor') {
      this.props.updateConfig({...config, statusBarbgColor: value})
    }
  }
@@ -189,6 +194,28 @@
              )}
            </Form.Item>
          </Col>
          <Col span={24}>
            <Form.Item label="下拉刷新">
              {getFieldDecorator('pullRefresh', {
                initialValue: config.pullRefresh || 'false'
              })(
                <Radio.Group onChange={(e) => {this.selectChange('pullRefresh', e.target.value)}}>
                  <Radio value="false">关闭</Radio>
                  <Radio value="true">开启</Radio>
                </Radio.Group>
              )}
            </Form.Item>
          </Col>
          <Col span={24}>
            <Form.Item className="status-bar" label={
              <Tooltip placement="topLeft" title="在明科云APP中,状态栏的背景色。">
                <Icon type="question-circle" />
                状态栏
              </Tooltip>
            }>
              <ColorSketch value={config.statusBarbgColor || '#ffffff'} onChange={(val) => {this.selectChange('statusBarbgColor', val)}} />
            </Form.Item>
          </Col>
          {config.advertUrl ? <Col span={24}>
            <Form.Item label="停留(s)">
              {getFieldDecorator('advertTime', {