1002884655 il y a 3 ans
Parent
révision
73f9b44ee2
2 fichiers modifiés avec 8 ajouts et 1 suppressions
  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 Voir le fichier

@@ -61,6 +61,13 @@ export default withLayout((props) => {
61 61
       } else {
62 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 71
       fetch({ url, method: 'post', payload: params }).then(() => {
65 72
         Taro.showToast({ title: '添加成功', icon: 'none', duration: 2000 })
66 73
         setTimeout(() => {

+ 1
- 1
src/pages/mine/tabData.js Voir le fichier

@@ -21,7 +21,7 @@ const MineMenuList = {
21 21
   ],
22 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 25
       { name: '合作渠道', icon: require('../../assets/mine-icon3.png'), router: '/pages/mine/partnerChannel/index' }
26 26
     ],
27 27
     [