张延森 5 年前
父节点
当前提交
31706e1c0f
共有 3 个文件被更改,包括 5 次插入4 次删除
  1. 4
    1
      src/onlineSelling/components/GrantProfile/index.js
  2. 1
    1
      src/pages/project/map/index.js
  3. 0
    2
      src/utils/tools.js

+ 4
- 1
src/onlineSelling/components/GrantProfile/index.js 查看文件

@@ -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 null;
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

+ 1
- 1
src/pages/project/map/index.js 查看文件

@@ -87,7 +87,7 @@ export default class Index extends Component {
87 87
     const that = this;
88 88
     const { curCity } = this.props
89 89
     const { filterOpt } = this.state
90
-    const payload = Object.assign({ pageSize: 10, pageNumber }, filterOpt)
90
+    const payload = Object.assign({ pageSize: 999, pageNumber }, filterOpt)
91 91
     if (curCity.id) {
92 92
       payload.cityId = curCity.id
93 93
       that.setState({

+ 0
- 2
src/utils/tools.js 查看文件

@@ -1,8 +1,6 @@
1 1
 import Taro from '@tarojs/taro';
2 2
 import store from '../store'
3 3
 
4
-console.log('----------store', store.getState())
5
-
6 4
 /**
7 5
  * 是否为空
8 6
  * @param {*} o