소스 검색

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
   ESTATE_AGENT: 'estate agent', // 独立经纪人
14
   ESTATE_AGENT: 'estate agent', // 独立经纪人
15
   CHANNEL_AGENT: 'channel agent', // 渠道经纪人
15
   CHANNEL_AGENT: 'channel agent', // 渠道经纪人
16
   DRIFT: 'drift', // 游客
16
   DRIFT: 'drift', // 游客
17
-  CUSTOMER: 'customer' // 客户
17
+  CUSTOMER: 'customer', // 客户
18
+  MARKETING: 'marketing', //
18
 }
19
 }

+ 1
- 1
src/pages/mine/addCustomer/index.jsx 파일 보기

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

+ 1
- 1
src/pages/video/liveDetail/index.jsx 파일 보기

60
     Taro.navigateToMiniProgram({
60
     Taro.navigateToMiniProgram({
61
       // 固定跳转到微信企业直播
61
       // 固定跳转到微信企业直播
62
       appId: 'wx7424030d69bde86e',
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
 export const createGroupActivity = payload => fetch({ url: API_GROUP_CREATE, method: 'POST', payload })
112
 export const createGroupActivity = payload => fetch({ url: API_GROUP_CREATE, method: 'POST', payload })
113
 export const joinGroupBuy = payload => fetch({ url: API_GROUP_JOIN, method: 'POST', payload })
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)}` })