|
@@ -2,11 +2,14 @@ import { useState } from '@tarojs/taro'
|
2
|
2
|
import { Block } from "@tarojs/components"
|
3
|
3
|
import AchievePhone from '@/components/achievePhone'
|
4
|
4
|
import AchieveAvatar from '@/components/achieveAvatar'
|
|
5
|
+import { isEmpty } from '@/utils/tools'
|
5
|
6
|
|
6
|
7
|
function noop(){}
|
7
|
8
|
|
8
|
9
|
export default function GrantProfile(props) {
|
9
|
|
- const { tel, phone, avatarurl } = props.person || {}
|
|
10
|
+ if (isEmpty(props.person)) return <Block />;
|
|
11
|
+
|
|
12
|
+ const { tel, phone, avatarurl } = props.person
|
10
|
13
|
|
11
|
14
|
const noPhone = !(tel || phone)
|
12
|
15
|
const noAvatar = !avatarurl || avatarurl.indexOf('wx.qlogo.cn') === -1
|