ソースを参照

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/miniapp-v3 into dev

1007395918@qq.com 5 年 前
コミット
267ee0e129
共有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 <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

+ 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