xujing 5 years ago
parent
commit
de68ff90d8
2 changed files with 12 additions and 3 deletions
  1. 5
    2
      src/pages/person/index.js
  2. 7
    1
      src/pages/person/index.scss

+ 5
- 2
src/pages/person/index.js View File

@@ -194,7 +194,7 @@ export default class Person extends Component {
194 194
 
195 195
   renderDetail() {
196 196
     const { users, menus, roleName } = this.state
197
-    const { user: { userInfo: { miniApp: { name } } } } = this.props
197
+    const { user: { userInfo: { person: { org: { waterMark } }, miniApp: { name } } } } = this.props
198 198
     // const showQRCode = user.personType === ROLE_CODE['CONSULTANT'] || ROLE_CODE['ESTATE_AGENT'] || ROLE_CODE['CHANNEL_AGENT']
199 199
     // const isConsultant = user.personType == ROLE_CODE['CONSULTANT']
200 200
     // const isConsultant = user.personType
@@ -202,7 +202,10 @@ export default class Person extends Component {
202 202
       <View className="person">
203 203
         <Notice></Notice>
204 204
         <View className="info">
205
-          <Image className="bg" src={transferImage('https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/images/mine/background.png')} mode='aspectFill'></Image>
205
+          <Image className="bg" src={transferImage('https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/images/mine/background.png')} mode='widthFix'>
206
+            {waterMark && <Image className="logo" src={transferImage(waterMark)} mode='widthFix'></Image>}
207
+          </Image>
208
+
206 209
           <View className="content">
207 210
             <View className="info-block">
208 211
               <View className="avatar" onClick={this.goPersonDetail}>

+ 7
- 1
src/pages/person/index.scss View File

@@ -116,8 +116,14 @@
116 116
   }
117 117
   .bg {
118 118
     width: 100%;
119
+    position: relative;
120
+  }
121
+  .logo{
122
+    position: absolute;
123
+    width: 200px;
124
+    right: 40px;
125
+    bottom: 88px;
119 126
   }
120
-
121 127
   .content {
122 128
     padding: 30px 40px;
123 129
     position: absolute;