| | |
| | | state = {} |
| | | |
| | | componentDidMount() { |
| | | const { config, adapters } = this.props |
| | | const { config } = this.props |
| | | |
| | | if (adapters.includes('wxmini') && config.getLocation === 'true') { |
| | | if (config.getLocation === 'true') { |
| | | window.GLOB.getLocation = true |
| | | } |
| | | } |
| | |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {adapters.includes('wxmini') ? <Col span={24}> |
| | | <Col span={24}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="开启时,在小程序中可获取用户所在经纬度。"> |
| | | <Tooltip placement="topLeft" title="开启后数据源中将替换 @mk_longitude@、@mk_latitude@,在小程序中将获取用户所在经纬度。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | 定位 |
| | | </Tooltip> |
| | |
| | | </Radio.Group> |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | </Col> |
| | | {adapters.includes('weixin') || adapters.includes('wxmini') ? <Col span={24}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="使用默认时请在子应用设置分享信息,使用url参数会使用上页参数替换相应字段(@field@)。注:使用自定义或url参数时会分享当前页面。"> |