张延森 5 лет назад
Родитель
Сommit
7a6f8d049d

+ 2
- 2
src/pages/activity/activity.js Просмотреть файл

@@ -34,9 +34,9 @@ export default class active extends Component {
34 34
   }
35 35
 
36 36
   render() {
37
-    const { person: { phone } } = this.props.user.userInfo
37
+    const { person: { phone, tel } } = this.props.user.userInfo
38 38
 
39
-    return !phone ? this.renderLogin() : (
39
+    return !phone && !tel ? this.renderLogin() : (
40 40
       <View style="height:100vh">
41 41
         <AtTabs className="tab-box" scroll current={this.state.current} tabList={[{ title: '热门活动' }, { title: '最新资讯' }]} onClick={this.handleClick.bind(this)}>
42 42
           <AtTabsPane current={this.state.current} index={0} >

+ 2
- 2
src/pages/activity/detail/assemble.js Просмотреть файл

@@ -106,8 +106,8 @@ export default class Detail extends Component {
106 106
 
107 107
   // 调起授权电话
108 108
   toggleGrantPhone = () => {
109
-    const { userInfo: { person: { phone } } } = this.props
110
-    if (!phone) {
109
+    const { userInfo: { person: { phone, tel } } } = this.props
110
+    if (!phone && !tel) {
111 111
       this.setState({ grantPhoneVisible: true })
112 112
       return false
113 113
     }

+ 2
- 2
src/pages/activity/detail/assistance.js Просмотреть файл

@@ -105,8 +105,8 @@ export default class Detail extends Component {
105 105
 
106 106
   // 调起授权电话
107 107
   toggleGrantPhone = () => {
108
-    const { userInfo: { person: { phone } } } = this.props
109
-    if (!phone) {
108
+    const { userInfo: { person: { phone, tel } } } = this.props
109
+    if (!phone && !tel) {
110 110
       this.setState({ grantPhoneVisible: true })
111 111
       return false
112 112
     }

+ 3
- 3
src/pages/person/index.js Просмотреть файл

@@ -206,11 +206,11 @@ export default class Person extends Component {
206 206
   }
207 207
 
208 208
   render() {
209
-    const { phone } = this.state.user
209
+    const { phone, tel } = this.state.user
210 210
     return (
211 211
       <View className='wrap'>
212
-        {phone && this.renderDetail()}
213
-        {!phone && this.renderLogin()}
212
+        {(phone || tel) && this.renderDetail()}
213
+        {!phone && !tel  && this.renderLogin()}
214 214
       </View>
215 215
     )
216 216
   }

+ 3
- 2
src/pages/person/menus.js Просмотреть файл

@@ -1,6 +1,6 @@
1 1
 import { ROLE_CODE } from '@constants/user'
2 2
 
3
-export const icons = {
3
+const icons = {
4 4
   homepage: require('@assets/mine/homepage.png'),
5 5
   recommend: require('@assets/mine/recommend.png'),
6 6
   development: require('@assets/mine/development.png'),
@@ -21,7 +21,7 @@ const CONSULTANT = ROLE_CODE['CONSULTANT']
21 21
 const ESTATE_AGENT = ROLE_CODE['ESTATE_AGENT']
22 22
 const CHANNEL_AGENT = ROLE_CODE['CHANNEL_AGENT']
23 23
 
24
-export const menus = [
24
+const menus = [
25 25
   [
26 26
     {
27 27
       name: '我的主页',
@@ -121,3 +121,4 @@ export const menus = [
121 121
   ],
122 122
 ]
123 123
 
124
+export { icons, menus }

+ 2
- 2
src/pages/shop/index.js Просмотреть файл

@@ -295,11 +295,11 @@ export default class Shop extends Component {
295 295
   }
296 296
 
297 297
   render() {
298
-    const { person: { phone } } = this.props.userInfo
298
+    const { person: { phone, tel } } = this.props.userInfo
299 299
 
300 300
     return (
301 301
       <View className='wrap'>
302
-        {!phone ? this.renderLogin() : this.renderDetail()}
302
+        {!phone && !tel ? this.renderLogin() : this.renderDetail()}
303 303
       </View>
304 304
     )
305 305
   }