张延森 5 年前
父节点
当前提交
05cea072e9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/pages/project/detail/index.js

+ 2
- 2
src/pages/project/detail/index.js 查看文件

@@ -1171,7 +1171,7 @@ export default class Index extends Component {
1171 1171
 
1172 1172
   render() {
1173 1173
     const { posterStatus, posterData, loaded, btnstate, grantPhoneVisible, consultData, consultShow } = this.state
1174
-    const { projectDetail, userInfo } = this.props
1174
+    const { projectDetail, userInfo = { person: {} } } = this.props
1175 1175
     const { uvList = {} } = projectDetail
1176 1176
     const { total = 0, records = [] } = uvList
1177 1177
     const openDate = projectDetail.openingDate ? dayjs(projectDetail.openingDate).locale('zh-cn').format('YYYY年M月D日') : '暂无'
@@ -1179,7 +1179,7 @@ export default class Index extends Component {
1179 1179
       <Block>
1180 1180
         {
1181 1181
           (grantPhoneVisible && userInfo.person.personId && !userInfo.person.phone) &&
1182
-          <AchievePhone user={person} onSuccess={this.handleAuthPhoneSuccess}></AchievePhone>
1182
+          <AchievePhone user={userInfo.person} onSuccess={this.handleAuthPhoneSuccess}></AchievePhone>
1183 1183
         }
1184 1184
         {
1185 1185
           loaded && (