张延森 преди 4 години
родител
ревизия
54b3488535
променени са 2 файла, в които са добавени 8 реда и са изтрити 8 реда
  1. 1
    1
      src/pages/index/index.js
  2. 7
    7
      src/pages/person/index.js

+ 1
- 1
src/pages/index/index.js Целия файл

@@ -237,7 +237,7 @@ export default class Index extends Component {
237 237
     // console.log('Indexrouter--->', `/pages/project/index?from=share&recommender=${personId}&consultant=${consultant}&consultantId=${consultantId}&id=index`)
238 238
     return {
239 239
       title: this.state.imgDocument || ` 精准获客—上${this.props.userInfo.miniApp.name || '致云'},买好房`,//分享内容
240
-      path: `/pages/project/index?from=share&recommender=${personId}&consultant=${consultant}&consultantId=${consultantId}&id=index`,//分享地址
240
+      path: `/pages/index/index?from=share&recommender=${personId}&consultant=${consultant}&consultantId=${consultantId}&id=index`,//分享地址
241 241
       imageUrl: this.state.shareImg || 'https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1574145199853-97feda7895c65be33aa234a7b81b37f.jpg',
242 242
     }
243 243
   }

+ 7
- 7
src/pages/person/index.js Целия файл

@@ -50,7 +50,7 @@ export default class Person extends Component {
50 50
           url: ({ id }) => `/pages/card/index?id=${id}`,
51 51
           icon: require('@/assets/img/wodeicon1.png'),
52 52
           extends: undefined,
53
-          userTypes: [ESTATE_AGENT, CHANNEL_AGENT],
53
+          userTypes: [CONSULTANT],
54 54
         },
55 55
         {
56 56
           name: '我的分享',
@@ -87,21 +87,21 @@ export default class Person extends Component {
87 87
           url: null,
88 88
           icon: require('@/assets/img/wodeicon6.png'),
89 89
           extends: undefined,
90
-          userTypes: [DRIFT, CUSTOMER, CONSULTANT, ESTATE_AGENT, CHANNEL_AGENT],
90
+          userTypes: [CUSTOMER, CONSULTANT, ESTATE_AGENT, CHANNEL_AGENT],
91 91
         },
92 92
         {
93 93
           name: '我的集卡',
94 94
           url: null,
95 95
           icon: require('@/assets/img/wodeicon7.png'),
96 96
           extends: undefined,
97
-          userTypes: [DRIFT, CUSTOMER, CONSULTANT, ESTATE_AGENT, CHANNEL_AGENT],
97
+          userTypes: [CUSTOMER, CONSULTANT, ESTATE_AGENT, CHANNEL_AGENT],
98 98
         },
99 99
         {
100 100
           name: '我的秒杀',
101 101
           url: null,
102 102
           icon: require('@/assets/img/wodeicon8.png'),
103 103
           extends: undefined,
104
-          userTypes: [DRIFT, CUSTOMER, CONSULTANT, ESTATE_AGENT, CHANNEL_AGENT],
104
+          userTypes: [CUSTOMER, CONSULTANT, ESTATE_AGENT, CHANNEL_AGENT],
105 105
         }
106 106
       ],
107 107
       [
@@ -146,7 +146,7 @@ export default class Person extends Component {
146 146
         phone: users.phone,
147 147
         loading: false,
148 148
         pageVisible: !users.phone && !users.tel,
149
-        menus: menus.map(group => group.filter(x => x.userTypes.indexOf(users.personType) > -1)),
149
+        menus: this.state.UserMenus.map(group => group.filter(x => x.userTypes.indexOf(users.personType) > -1)),
150 150
         roleName,
151 151
         ...roleSetting,
152 152
       })
@@ -329,7 +329,7 @@ export default class Person extends Component {
329 329
   }
330 330
 
331 331
   renderDetail () {
332
-    const { users, menus, roleName, UserMenus, UserLevelIcon, Org } = this.state
332
+    const { users, menus, roleName, UserLevelIcon, Org } = this.state
333 333
     const { user: { userInfo: { person: { avatarurl, org: { waterMark } = {} }, miniApp: { name } } } } = this.props
334 334
 
335 335
     // const showQRCode = user.personType === ROLE_CODE['CONSULTANT'] || ROLE_CODE['ESTATE_AGENT'] || ROLE_CODE['CHANNEL_AGENT']
@@ -394,7 +394,7 @@ export default class Person extends Component {
394 394
         <View>
395 395
           <View className='line'></View>
396 396
           {
397
-            UserMenus.map((group, ginx) => (
397
+            menus.map((group, ginx) => (
398 398
               <Block key={`grp-${ginx}`}>
399 399
                 {
400 400
                   group.map((menu, inx) => (