| | |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {adapters.includes('weixin') || adapters.includes('wxmini') ? <Col span={24}> |
| | | <Form.Item label="分享"> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="使用默认时请在子应用设置分享信息,使用url参数会使用上页参数替换相应字段(@field@)。注:使用自定义或url参数时会分享当前页面。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | 分享 |
| | | </Tooltip> |
| | | }> |
| | | {getFieldDecorator('share', { |
| | | initialValue: config.share || 'default' |
| | | })( |
| | | <Radio.Group onChange={(e) => {this.selectChange('share', e.target.value)}}> |
| | | <Radio.Group className="mini-radio" onChange={(e) => {this.selectChange('share', e.target.value)}}> |
| | | <Radio value="default">默认</Radio> |
| | | <Radio value="custom">自定义</Radio> |
| | | <Radio value="url">url参数</Radio> |
| | | </Radio.Group> |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {config.share === 'custom' && (adapters.includes('weixin') || adapters.includes('wxmini')) ? <Col span={24}> |
| | | {['custom', 'url'].includes(config.share) && (adapters.includes('weixin') || adapters.includes('wxmini')) ? <Col span={24}> |
| | | <Form.Item label="分享标题"> |
| | | {getFieldDecorator('share_title', { |
| | | initialValue: config.share_title || '', |
| | |
| | | })(<Input placeholder="" autoComplete="off" onChange={(e) => {this.selectChange('share_title', e.target.value)}}/>)} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {config.share === 'custom' && (adapters.includes('weixin') || adapters.includes('wxmini')) ? <Col span={24}> |
| | | {['custom', 'url'].includes(config.share) && (adapters.includes('weixin') || adapters.includes('wxmini')) ? <Col span={24}> |
| | | <Form.Item label="分享描述"> |
| | | {getFieldDecorator('share_des', { |
| | | initialValue: config.share_des || '' |
| | |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {config.share === 'url' && (adapters.includes('weixin') || adapters.includes('wxmini')) ? <Col span={24}> |
| | | <Form.Item label="分享图片"> |
| | | {getFieldDecorator('share_url', { |
| | | initialValue: config.share_url || '' |
| | | })( |
| | | <Input placeholder="" autoComplete="off" onChange={(e) => {this.selectChange('share_url', e.target.value)}}/> |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | <Col span={24}> |
| | | <Form.Item label="备注"> |
| | | {getFieldDecorator('Remark', { |