Browse Source

静态页面

1002884655 3 years ago
parent
commit
73f9b44ee2
2 changed files with 8 additions and 1 deletions
  1. 7
    0
      src/pages/mine/addCustomer/index.jsx
  2. 1
    1
      src/pages/mine/tabData.js

+ 7
- 0
src/pages/mine/addCustomer/index.jsx View File

61
       } else {
61
       } else {
62
         params = { ...FormData, sex: SexId, intention: BuildingId, realtyConsultant: CardId }
62
         params = { ...FormData, sex: SexId, intention: BuildingId, realtyConsultant: CardId }
63
       }
63
       }
64
+      if(type === 'estateAgent') {
65
+        params.channelCustomerId = PersonId
66
+        params.channelId = user.userInfo.person.channelId
67
+        params.buildingId = BuildingId
68
+        params.orgId = `${user.userInfo.person.orgId}`
69
+        params.personId = PersonId
70
+      }
64
       fetch({ url, method: 'post', payload: params }).then(() => {
71
       fetch({ url, method: 'post', payload: params }).then(() => {
65
         Taro.showToast({ title: '添加成功', icon: 'none', duration: 2000 })
72
         Taro.showToast({ title: '添加成功', icon: 'none', duration: 2000 })
66
         setTimeout(() => {
73
         setTimeout(() => {

+ 1
- 1
src/pages/mine/tabData.js View File

21
   ],
21
   ],
22
   Broker: [ // 经纪人
22
   Broker: [ // 经纪人
23
     [
23
     [
24
-      { name: '报备客户', icon: require('../../assets/mine-icon1.png'), router: '/pages/mine/addCustomer/index' },
24
+      { name: '报备客户', icon: require('../../assets/mine-icon1.png'), router: '/pages/mine/addCustomer/index?type=estateAgent' },
25
       { name: '合作渠道', icon: require('../../assets/mine-icon3.png'), router: '/pages/mine/partnerChannel/index' }
25
       { name: '合作渠道', icon: require('../../assets/mine-icon3.png'), router: '/pages/mine/partnerChannel/index' }
26
     ],
26
     ],
27
     [
27
     [