content: /**
   * Created by Administrator on 2016/11/24 0024.
   */
  import React from 'react';
  import {render} from 'react-dom';
  import { browserHistory  } from 'react-router';
  import {Nav,NavTitle,NavLeft} from '../../assets/components/nav/nav.js';
  import LinkRight from '../../assets/components/linkRight/linkRight.js';
  import Btn from '../../assets/components/btn/btn.js';
  import Storage from 'react-cmos-storage';
  //css 依赖
  import "../../assets/css/normoalize.css";
  import "../../assets/css/common.css";
  import "../../assets/css/user.css";
  
  var User = React.createClass({
      //默认state配置
      //getInitialState: function () {
      //    //let state=getStateByType(this.props.type,this.props.param,this.props.children);
      //    return state?state:config
      //},
      click:function(){
          this.props.router.push({
              pathname: '/uploader',
              query: { modal: true },
              state: { fromDashboard: true }
          });
      },
      render: function () {
          return (
              <div className='user'>
                  <Nav>
                      <NavTitle>个人中心</NavTitle>
                      <NavLeft></NavLeft>
                  </Nav>
                  <div className='body'>
                      <div style={{paddingBottom:'20px'}}>
                          <LinkRight link="#/order">我的订单</LinkRight>
                      </div>
                      <div>
                          <LinkRight link="#/uploader">头像</LinkRight>
                          <LinkRight value="小名" click={this.click}>用户名</LinkRight>
                          <LinkRight  value="小移" noArrow>昵称</LinkRight>
                          <LinkRight value="男">性别</LinkRight>
                          <LinkRight  value={Storage.getLocalStorage('address')?Storage.getLocalStorage('address'):"无"} link='#/address'>收货地址</LinkRight>
                          <LinkRight  link='#/pwd'>修改密码</LinkRight>
                      </div>
                      <div className="btn-box">
                          <Btn  block btnName='primary'>退出登录</Btn>
                      </div>
                  </div>
              </div>
          )
      }
  });
  
  export default User