张延森 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
     // console.log('Indexrouter--->', `/pages/project/index?from=share&recommender=${personId}&consultant=${consultant}&consultantId=${consultantId}&id=index`)
237
     // console.log('Indexrouter--->', `/pages/project/index?from=share&recommender=${personId}&consultant=${consultant}&consultantId=${consultantId}&id=index`)
238
     return {
238
     return {
239
       title: this.state.imgDocument || ` 精准获客—上${this.props.userInfo.miniApp.name || '致云'},买好房`,//分享内容
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
       imageUrl: this.state.shareImg || 'https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1574145199853-97feda7895c65be33aa234a7b81b37f.jpg',
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
           url: ({ id }) => `/pages/card/index?id=${id}`,
50
           url: ({ id }) => `/pages/card/index?id=${id}`,
51
           icon: require('@/assets/img/wodeicon1.png'),
51
           icon: require('@/assets/img/wodeicon1.png'),
52
           extends: undefined,
52
           extends: undefined,
53
-          userTypes: [ESTATE_AGENT, CHANNEL_AGENT],
53
+          userTypes: [CONSULTANT],
54
         },
54
         },
55
         {
55
         {
56
           name: '我的分享',
56
           name: '我的分享',
87
           url: null,
87
           url: null,
88
           icon: require('@/assets/img/wodeicon6.png'),
88
           icon: require('@/assets/img/wodeicon6.png'),
89
           extends: undefined,
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
           name: '我的集卡',
93
           name: '我的集卡',
94
           url: null,
94
           url: null,
95
           icon: require('@/assets/img/wodeicon7.png'),
95
           icon: require('@/assets/img/wodeicon7.png'),
96
           extends: undefined,
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
           name: '我的秒杀',
100
           name: '我的秒杀',
101
           url: null,
101
           url: null,
102
           icon: require('@/assets/img/wodeicon8.png'),
102
           icon: require('@/assets/img/wodeicon8.png'),
103
           extends: undefined,
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
         phone: users.phone,
146
         phone: users.phone,
147
         loading: false,
147
         loading: false,
148
         pageVisible: !users.phone && !users.tel,
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
         roleName,
150
         roleName,
151
         ...roleSetting,
151
         ...roleSetting,
152
       })
152
       })
329
   }
329
   }
330
 
330
 
331
   renderDetail () {
331
   renderDetail () {
332
-    const { users, menus, roleName, UserMenus, UserLevelIcon, Org } = this.state
332
+    const { users, menus, roleName, UserLevelIcon, Org } = this.state
333
     const { user: { userInfo: { person: { avatarurl, org: { waterMark } = {} }, miniApp: { name } } } } = this.props
333
     const { user: { userInfo: { person: { avatarurl, org: { waterMark } = {} }, miniApp: { name } } } } = this.props
334
 
334
 
335
     // const showQRCode = user.personType === ROLE_CODE['CONSULTANT'] || ROLE_CODE['ESTATE_AGENT'] || ROLE_CODE['CHANNEL_AGENT']
335
     // const showQRCode = user.personType === ROLE_CODE['CONSULTANT'] || ROLE_CODE['ESTATE_AGENT'] || ROLE_CODE['CHANNEL_AGENT']
394
         <View>
394
         <View>
395
           <View className='line'></View>
395
           <View className='line'></View>
396
           {
396
           {
397
-            UserMenus.map((group, ginx) => (
397
+            menus.map((group, ginx) => (
398
               <Block key={`grp-${ginx}`}>
398
               <Block key={`grp-${ginx}`}>
399
                 {
399
                 {
400
                   group.map((menu, inx) => (
400
                   group.map((menu, inx) => (