import React, { Component } from 'react'; import { connect } from "react-redux"; import './downloadCaigong2.css' const mapStateToProps = (state) => ({ }); const mapDispatchToProps = (dispatch) => ({ }); class LoginViews extends Component { /* * 构造函数 * * */ constructor() { super(); this.state = { }; } is_weixin() { var ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) === "micromessenger") { return true; } else { return false; } } openWxDownloadTip() { document.getElementById('tip').style.display = 'block' } /* * * 生命周期一 * * */ componentWillMount() { /* * * 如果是ios设备默认第一次不是播放状态,android没事 * * */ /* * * 请求数据 * * * */ } /* * * 生命周期二 * * */ componentDidMount() { if (this.is_weixin()) { document.querySelectorAll('#app a')[0].style.display = 'none' document.querySelectorAll('#app a')[1].style.display = 'none' } else { document.querySelectorAll('#app a')[2].style.display = 'none' document.querySelectorAll('#app a')[3].style.display = 'none' } } /* * 渲染 * */ render() { return (
一款为驾考学员打造的专业软件
点击下载1
点击下载(备用)
点击下载1
点击下载(备用)
) } componentWillUnmount() { } } export default connect(mapStateToProps, mapDispatchToProps)(LoginViews);