UNPKG

react-app-shell

Version:

react打包脚本和example, 这里的版本请忽略

38 lines (30 loc) 916 B
import React, {PureComponent} from 'react'; import {withRouter} from 'react-router-dom'; import {WechatConfig} from '../../components'; const shareOptions = { title: '分享测试页', // 分享标题 desc: '史上最低价!每节课只花3元!', // 分享描述 imgUrl: `http://staging.mmears.com/user/static/img/logo.png`, // 分享图标, 必填 type: 'link', // 分享类型, music、video或link,不填默认为link dataUrl: '', }; /** * 测试用户主动授权 */ class Auth extends PureComponent { constructor(props) { super(props); this.state = { loading: false, }; } render() { return ( <div style={{fontSize: 20, padding: 30}}> 分享页 <WechatConfig showShare={true} shareOptions={shareOptions}/> </div> ); } } export default withRouter(Auth);