Browse Source

profiley组件移动到private

samhoo 5 years ago
parent
commit
9b526ff281

+ 0 - 58
uas-office-web/uas-mobile/src/components/common/profile/ProfileCard.jsx

@@ -1,58 +0,0 @@
-/**
- * Created by hujs on 2020/11/9
- * Desc: 我的信息
- */
-
-import React, { Component } from 'react'
-import { isObjEmpty } from '../../../utils/common.util'
-import './ProfileCard.less'
-import { Icon, List } from 'antd-mobile'
-const Item = List.Item;
-
-
-export default class ProfileCard extends Component {
-
-    constructor() {
-        super()
-
-        this.state = {}
-    }
-
-    componentDidMount() {
-
-    }
-
-    componentWillUnmount() {
-
-    }
-
-    render() {
-        let mineInfo = {
-            companyName: '深圳市英唐智能控制股份有限公司',
-            userName: '胡俊森',
-            post: '管理员',
-            imgUrl: ''
-        }
-        let { companyName, userName, post, imgUrl } = mineInfo;
-
-        return (
-            <div style={{ padding: '15px 10px 0px' }}>
-                <div className="profile-layout">
-                    <div className="profile-info">
-                        <div className="company">{companyName}</div>
-                        <div className="name func-font-family">{userName}</div>
-                        <div className="post">{post}</div>
-                    </div>
-                    <div className="profile-img">
-                        {
-                            imgUrl ? <img src={imgUrl} /> : <img />
-                        }
-                    </div>
-                </div>
-                <div className="profile-set">
-                    <Item disabled={true} arrow="horizontal">设置</Item>
-                </div>
-            </div>
-        )
-    }
-}

+ 0 - 39
uas-office-web/uas-mobile/src/components/common/profile/ProfileList.jsx

@@ -1,39 +0,0 @@
-/**
- * Created by hujs on 2020/11/9
- * Desc: 我的信息设置列
- */
-
-import React, { Component } from 'react'
-import './ProfileCard.less'
-import { Icon, List } from 'antd-mobile'
-const Item = List.Item;
-
-
-export default class ProfileList extends Component {
-
-    constructor() {
-        super()
-
-        this.state = {}
-    }
-
-    componentDidMount() {
-
-    }
-
-    componentWillUnmount() {
-
-    }
-
-    render() {
-
-        return (
-            <div>
-                <Item arrow="horizontal">切换账套</Item>
-                <Item arrow="horizontal">清除缓存</Item>
-                <Item arrow="horizontal">用户反馈</Item>
-                <Item arrow="horizontal">联系我们</Item>
-            </div>
-        )
-    }
-}

+ 58 - 0
uas-office-web/uas-mobile/src/components/private/profile/ProfileCard.jsx

@@ -0,0 +1,58 @@
+/**
+ * Created by hujs on 2020/11/9
+ * Desc: 我的信息
+ */
+
+import React, { Component } from 'react'
+import { isObjEmpty } from '../../../utils/common.util'
+import './ProfileCard.less'
+import { Icon, List } from 'antd-mobile'
+
+const Item = List.Item
+
+export default class ProfileCard extends Component {
+
+  constructor () {
+    super()
+
+    this.state = {}
+  }
+
+  componentDidMount () {
+
+  }
+
+  componentWillUnmount () {
+
+  }
+
+  render () {
+    let mineInfo = {
+      companyName: '深圳市英唐智能控制股份有限公司',
+      userName: '胡俊森',
+      post: '管理员',
+      imgUrl: '',
+    }
+    let { companyName, userName, post, imgUrl } = mineInfo
+
+    return (
+      <div style={{ padding: '15px 10px 0px' }}>
+        <div className="profile-layout">
+          <div className="profile-info">
+            <div className="company">{companyName}</div>
+            <div className="name func-font-family">{userName}</div>
+            <div className="post">{post}</div>
+          </div>
+          <div className="profile-img">
+            {
+              imgUrl ? <img src={imgUrl}/> : <img/>
+            }
+          </div>
+        </div>
+        <div className="profile-set">
+          <Item disabled={true} arrow="horizontal">设置</Item>
+        </div>
+      </div>
+    )
+  }
+}

+ 0 - 0
uas-office-web/uas-mobile/src/components/common/profile/ProfileCard.less → uas-office-web/uas-mobile/src/components/private/profile/ProfileCard.less


+ 39 - 0
uas-office-web/uas-mobile/src/components/private/profile/ProfileList.jsx

@@ -0,0 +1,39 @@
+/**
+ * Created by hujs on 2020/11/9
+ * Desc: 我的信息设置列
+ */
+
+import React, { Component } from 'react'
+import './ProfileCard.less'
+import { Icon, List } from 'antd-mobile'
+
+const Item = List.Item
+
+export default class ProfileList extends Component {
+
+  constructor () {
+    super()
+
+    this.state = {}
+  }
+
+  componentDidMount () {
+
+  }
+
+  componentWillUnmount () {
+
+  }
+
+  render () {
+
+    return (
+      <div>
+        <Item arrow="horizontal">切换账套</Item>
+        <Item arrow="horizontal">清除缓存</Item>
+        <Item arrow="horizontal">用户反馈</Item>
+        <Item arrow="horizontal">联系我们</Item>
+      </div>
+    )
+  }
+}

+ 8 - 8
uas-office-web/uas-mobile/src/pages/private/homePage/MineRoot.jsx

@@ -5,33 +5,33 @@
 
 import React, { Component } from 'react'
 import { connect } from 'react-redux'
-import ProfileCard from '../../../components/common/profile/ProfileCard'
-import ProfileList from '../../../components/common/profile/ProfileList'
+import ProfileCard from '../../../components/private/profile/ProfileCard'
+import ProfileList from '../../../components/private/profile/ProfileList'
 
 class MineRoot extends Component {
 
-  constructor() {
+  constructor () {
     super()
 
     this.state = {}
   }
 
-  componentDidMount() {
+  componentDidMount () {
 
   }
 
-  componentWillUnmount() {
+  componentWillUnmount () {
 
   }
 
-  render() {
+  render () {
     return (
       <div style={{ padding: '0px 5px' }}>
         <div className="mine-info">
-          <ProfileCard />
+          <ProfileCard/>
         </div>
         <div className="mine-setting">
-          <ProfileList />
+          <ProfileList/>
         </div>
       </div>
     )