xcx 4 anni fa
parent
commit
301776874b
1 ha cambiato i file con 9 aggiunte e 6 eliminazioni
  1. 9
    6
      src/pages/WoDe/GeRenXinXi/index.jsx

+ 9
- 6
src/pages/WoDe/GeRenXinXi/index.jsx Vedi File

@@ -1,11 +1,14 @@
1 1
 import React, { useState } from 'react'
2 2
 import Page from '@/layouts'
3
+import { useModel } from '@/store'
3 4
 import '@/assets/css/reset.less'
4 5
 import '@/assets/css/iconfont.less'
5 6
 import './index.less'
6 7
 
7 8
 export default function GeRenXinXi (props) {
8 9
 
10
+  const { user } = useModel('user')
11
+
9 12
   return (
10 13
     <Page>
11 14
       <view className='GeRenXinXi'>
@@ -13,23 +16,23 @@ export default function GeRenXinXi (props) {
13 16
           <view className='flex-h'>
14 17
             <text className='flex-item'>头像</text>
15 18
             <view className='UserIcon'>
16
-              <image mode='aspectFill' src={null}></image>
19
+              <image mode='aspectFill' src={user !== null ? user.avatarurl : null}></image>
17 20
             </view>
18 21
           </view>
19 22
           <view className='flex-h'>
20 23
             <text className='flex-item'>姓名</text>
21
-            <text>三十而已</text>
24
+            <text>{user !== null ? user.nickname : null}</text>
22 25
           </view>
23 26
           <view className='flex-h'>
24 27
             <text className='flex-item'>性别</text>
25
-            <text>女</text>
28
+            <text>{user !== null ? user.sex - 0 === 1 ? '男' : user.sex - 0 === 2 ? '' : null : null}</text>
26 29
           </view>
27 30
           <view className='flex-h'>
28 31
             <text className='flex-item'>联系电话</text>
29
-            <text>13648041829</text>
32
+            <text>{user !== null ? user.phone : null}</text>
30 33
           </view>
31 34
         </view>
32
-        <view className='Form'>
35
+        {/* <view className='Form'>
33 36
           <view className='flex-h'>
34 37
             <text className='flex-item'>身份</text>
35 38
             <text>业主</text>
@@ -42,7 +45,7 @@ export default function GeRenXinXi (props) {
42 45
             <text>房产</text>
43 46
             <text className='flex-item'>南京市雨花台区安德门大姐56号凤翔山庄3区1栋3单元3楼309</text>
44 47
           </view>
45
-        </view>
48
+        </view> */}
46 49
       </view>
47 50
     </Page>
48 51
   )