lisenzhou 2 лет назад
Родитель
Сommit
0fc16feba5

+ 1
- 1
config/dev.js Просмотреть файл

6
     HOST: '"https://xlk.njyz.tech"',
6
     HOST: '"https://xlk.njyz.tech"',
7
     // HOST: '"https://www.newhousehold.cn"',
7
     // HOST: '"https://www.newhousehold.cn"',
8
     // HOST: '"http://192.168.89.147:8081"',
8
     // HOST: '"http://192.168.89.147:8081"',
9
-
9
+// HOST: '"http://localhost:8081"',
10
     // WSS_HOST: '"wss://www.newhousehold.cn"',
10
     // WSS_HOST: '"wss://www.newhousehold.cn"',
11
     WSS_HOST: '"wss://xlk.njyz.tech"',
11
     WSS_HOST: '"wss://xlk.njyz.tech"',
12
     OSS_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
12
     OSS_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',

+ 1
- 0
src/constants/api.js Просмотреть файл

25
 export const API_SURE_BUY = resolvePath('marking/commission') // 确认结佣
25
 export const API_SURE_BUY = resolvePath('marking/commission') // 确认结佣
26
 export const API_SURE_SIGN = resolvePath('marking/signatory') // 确认签约
26
 export const API_SURE_SIGN = resolvePath('marking/signatory') // 确认签约
27
 export const API_INVALID = resolvePath('marking/invalidCustomer') // 无效
27
 export const API_INVALID = resolvePath('marking/invalidCustomer') // 无效
28
+export const API_SURE_ALLPAYMENT = resolvePath('marking/all-payment') // 全款到账(bk)
28
 
29
 
29
 // 获取经纪人绑定楼盘列表
30
 // 获取经纪人绑定楼盘列表
30
 export const API_GET_AGENT_BUILDINGS = resolvePath('buildingChannel/buildings')
31
 export const API_GET_AGENT_BUILDINGS = resolvePath('buildingChannel/buildings')

+ 1
- 1
src/subpackages/pages/broker/rankingList/components/list/index.jsx Просмотреть файл

75
           {list?.map((item, index) => {
75
           {list?.map((item, index) => {
76
             return (
76
             return (
77
               <view className="list-tbody-row" key={index}>
77
               <view className="list-tbody-row" key={index}>
78
-                {columns?.map((x, index) => (
78
+                {columns?.map((x, xindex) => (
79
                   <view
79
                   <view
80
                     key={x.key}
80
                     key={x.key}
81
                     style={{ width: x.width, textAlign: "center" }}
81
                     style={{ width: x.width, textAlign: "center" }}

+ 1
- 1
src/subpackages/pages/broker/rankingList/invitationList/index.jsx Просмотреть файл

25
       render: (x, index) => {
25
       render: (x, index) => {
26
         return (
26
         return (
27
           <view>
27
           <view>
28
-            {index <= 3 ? (
28
+            {index < 3 ? (
29
               <image
29
               <image
30
                 className="rank-image"
30
                 className="rank-image"
31
                 src={`${OSS_FAST_PATH}/miniapp/broker/${index + 1}.png`}
31
                 src={`${OSS_FAST_PATH}/miniapp/broker/${index + 1}.png`}

+ 45
- 0
src/subpackages/pages/marketing/changeVisit/index.jsx Просмотреть файл

12
   API_SURE_SIGN,
12
   API_SURE_SIGN,
13
   API_SURE_BUY,
13
   API_SURE_BUY,
14
   API_CUSTOMER_DETAILINFO,
14
   API_CUSTOMER_DETAILINFO,
15
+  API_SURE_ALLPAYMENT,
15
 } from "@/constants/api";
16
 } from "@/constants/api";
16
 import "./index.scss";
17
 import "./index.scss";
17
 import { ROLE_CODE } from "@/constants/user";
18
 import { ROLE_CODE } from "@/constants/user";
325
           Taro.navigateBack({ delta: 1 });
326
           Taro.navigateBack({ delta: 1 });
326
         }, 2000);
327
         }, 2000);
327
       });
328
       });
329
+    } else if (CurrentStatusId === 6) {
330
+      let params = {};
331
+      for (let key in FormData) {
332
+        if (key !== "dividendsName" && key !== "dividendsPer") {
333
+          params[key] = { ...FormData }[key];
334
+          console.log(
335
+            "🚀 ~ file: index.jsx ~ line 202 ~ ToSubmit ~ FormData",
336
+            FormData
337
+          );
338
+        }
339
+      }
340
+      params.dividendsName = `${FormData.dividendsName}|${FormData.dividendsPer}%`;
341
+
342
+      console.log({
343
+        customerId: id,
344
+        customerSignatory: {
345
+          ...params,
346
+          channelId:
347
+            channelId === "null" || channelId === null ? "" : channelId,
348
+          channelCustomerId,
349
+        },
350
+        totalCommission:Number(params.totalCommission) * 100,
351
+        currentCommission:Number(params.currentCommission) * 100
352
+      },']]]]');
353
+      fetch({
354
+        url: API_SURE_ALLPAYMENT,
355
+        method: "put",
356
+        payload: {
357
+          customerId: id,
358
+          customerSignatory: {
359
+            ...params,
360
+            channelId:
361
+              channelId === "null" || channelId === null ? "" : channelId,
362
+            channelCustomerId,
363
+          },
364
+          totalCommission:Number(params.totalCommission) * 100,
365
+          currentCommission:Number(params.currentCommission) * 100
366
+        },
367
+      }).then(() => {
368
+        Taro.showToast({ title: "修改成功", icon: "none", duration: 2000 });
369
+        setTimeout(() => {
370
+          Taro.navigateBack({ delta: 1 });
371
+        }, 2000);
372
+      });
328
     }
373
     }
329
   };
374
   };
330
 
375
 

+ 7
- 0
src/subpackages/pages/marketing/components/ResidentListItem/index.jsx Просмотреть файл

103
             <Image mode='heightFix' src={require('@/assets/mine-icon31.png')}></Image>
103
             <Image mode='heightFix' src={require('@/assets/mine-icon31.png')}></Image>
104
             <text className='Type'>结佣</text>
104
             <text className='Type'>结佣</text>
105
           </Block>
105
           </Block>
106
+        }
107
+         {
108
+          data.customerStatus - 0 === 6 && Status - 0 !== 3 &&
109
+          <Block>
110
+            <Image mode='heightFix' src={require('@/assets/mine-icon31.png')}></Image>
111
+            <text className='Type'>全款到账</text>
112
+          </Block>
106
         }
113
         }
107
         {/* <Image mode='heightFix' src={require('@/assets/mine-icon27.png')}></Image> */}
114
         {/* <Image mode='heightFix' src={require('@/assets/mine-icon27.png')}></Image> */}
108
       </view>
115
       </view>