{"size": 1074, "ext": "js", "max_stars_repo_path": "src/pages/KnowledgeBase/MedicationGuide.js", "max_stars_repo_name": "kisixing/FollowUp", "max_stars_repo_stars_event_min_datetime": "2019-07-12T09:20:34.000Z", "max_stars_repo_stars_event_max_datetime": "2019-07-12T09:20:34.000Z", "max_issues_repo_path": "src/pages/KnowledgeBase/MedicationGuide.js", "max_issues_repo_name": "kisixing/FollowUp", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/pages/KnowledgeBase/MedicationGuide.js", "max_forks_repo_name": "kisixing/FollowUp", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.5714285714, "max_line_length": 92, "alphanum_fraction": 0.5605214153}
/*
 * @Description: 用药指导
 * @Author: Zhong Jun
 * @Date: 2019-07-03 22:19:24
 */
import React, { PureComponent } from 'react';
import Iframe from '@/components/Iframe';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';

class MedicationGuide extends PureComponent {
  componentDidMount() {
    // const dom =
    //   document.getElementById('iframe').contentWindow.document.getElementById('sitenav');
    // console.log('styles', dom)
    // dom.style.display = "none";
  }

  render() {
    return (
      <PageHeaderWrapper>
        <div style={{ overflow: 'hidden' }}>
          <Iframe
            url="http://drugs.dxy.cn/"
            id="iframe"
            display="initial"
            security="restricted"
            sandbox="allow-scripts allow-same-origin allow-popups"
            styles={{
              width: '100%',
              height: 'calc(100vh - 82px)',
              marginTop: '-76px',
              border: 'none',
            }}
          />
        </div>
      </PageHeaderWrapper>
    );
  }
}

export default MedicationGuide;
