lisenzhou 2 lat temu
rodzic
commit
0fc16feba5

+ 1
- 1
config/dev.js Wyświetl plik

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

+ 1
- 0
src/constants/api.js Wyświetl plik

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

+ 1
- 1
src/subpackages/pages/broker/rankingList/components/list/index.jsx Wyświetl plik

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

+ 1
- 1
src/subpackages/pages/broker/rankingList/invitationList/index.jsx Wyświetl plik

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

+ 45
- 0
src/subpackages/pages/marketing/changeVisit/index.jsx Wyświetl plik

@@ -12,6 +12,7 @@ import {
12 12
   API_SURE_SIGN,
13 13
   API_SURE_BUY,
14 14
   API_CUSTOMER_DETAILINFO,
15
+  API_SURE_ALLPAYMENT,
15 16
 } from "@/constants/api";
16 17
 import "./index.scss";
17 18
 import { ROLE_CODE } from "@/constants/user";
@@ -325,6 +326,50 @@ export default withLayout((props) => {
325 326
           Taro.navigateBack({ delta: 1 });
326 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 Wyświetl plik

@@ -103,6 +103,13 @@ export default function ResidentListItem (props) {
103 103
             <Image mode='heightFix' src={require('@/assets/mine-icon31.png')}></Image>
104 104
             <text className='Type'>结佣</text>
105 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 114
         {/* <Image mode='heightFix' src={require('@/assets/mine-icon27.png')}></Image> */}
108 115
       </view>