浏览代码

Merge branch 'main' of http://git.ycjcjy.com/marketing/miniapp into main

1002884655 3 年前
父节点
当前提交
173efaa5eb
共有 4 个文件被更改,包括 5 次插入4 次删除
  1. 2
    1
      src/constants/user.js
  2. 1
    1
      src/pages/mine/addCustomer/index.jsx
  3. 1
    1
      src/pages/video/liveDetail/index.jsx
  4. 1
    1
      src/services/activity.js

+ 2
- 1
src/constants/user.js 查看文件

@@ -14,5 +14,6 @@ export const ROLE_CODE = {
14 14
   ESTATE_AGENT: 'estate agent', // 独立经纪人
15 15
   CHANNEL_AGENT: 'channel agent', // 渠道经纪人
16 16
   DRIFT: 'drift', // 游客
17
-  CUSTOMER: 'customer' // 客户
17
+  CUSTOMER: 'customer', // 客户
18
+  MARKETING: 'marketing', //
18 19
 }

+ 1
- 1
src/pages/mine/addCustomer/index.jsx 查看文件

@@ -60,7 +60,7 @@ export default withLayout((props) => {
60 60
       if (type === ROLE_CODE.CONSULTANT) {
61 61
         params = { name: FormData.name, phone: FormData.phone, sex: SexId }
62 62
       } else {
63
-        params = { ...FormData, sex: SexId, intention: BuildingId, realtyConsultant: CardId }
63
+        params = { ...FormData, sex: SexId, buildingId: BuildingId, realtyConsultant: CardId }
64 64
       }
65 65
       if (type === ROLE_CODE.CHANNEL_AGENT) {
66 66
         params.channelCustomerId = PersonId

+ 1
- 1
src/pages/video/liveDetail/index.jsx 查看文件

@@ -60,7 +60,7 @@ export default withLayout((props) => {
60 60
     Taro.navigateToMiniProgram({
61 61
       // 固定跳转到微信企业直播
62 62
       appId: 'wx7424030d69bde86e',
63
-      path: `pages/watch/index?living_code=${livingCodeRef.current}`,
63
+      path: `pages/watch/index?living_code=${encodeURIComponent(livingCodeRef.current)}`,
64 64
     })
65 65
   }
66 66
 

+ 1
- 1
src/services/activity.js 查看文件

@@ -112,4 +112,4 @@ export const getGroupDetail = (id, recordId, payload, header) => fetch({ url: `$
112 112
 export const createGroupActivity = payload => fetch({ url: API_GROUP_CREATE, method: 'POST', payload })
113 113
 export const joinGroupBuy = payload => fetch({ url: API_GROUP_JOIN, method: 'POST', payload })
114 114
 
115
-export const getLivingCode = livingid => fetch({ url: `${API_LIVING_CODE}?livingid=${livingid}` })
115
+export const getLivingCode = livingid => fetch({ url: `${API_LIVING_CODE}?livingid=${encodeURIComponent(livingid)}` })