Baozhangchao 3 年之前
父節點
當前提交
edcef7d15b
共有 3 個檔案被更改,包括 3 行新增6 行删除
  1. 2
    2
      config/prod.js
  2. 1
    1
      src/pages/mine/addCustomer/index.jsx
  3. 0
    3
      src/subpackages/pages/marketing/sureVisit/index.jsx

+ 2
- 2
config/prod.js 查看文件

3
     NODE_ENV: '"production"'
3
     NODE_ENV: '"production"'
4
   },
4
   },
5
   defineConstants: {
5
   defineConstants: {
6
-    // HOST: '"http://192.168.89.147:8081"', //正式
6
+    HOST: '"http://192.168.89.147:8081"', //正式
7
     // WSS_HOST: '"wss://www.newhousehold.cn"',
7
     // WSS_HOST: '"wss://www.newhousehold.cn"',
8
-    HOST: '"https://xlk.njyz.tech"',
8
+    // HOST: '"https://xlk.njyz.tech"',
9
     WSS_HOST: '"wss://xlk.njyz.tech"',
9
     WSS_HOST: '"wss://xlk.njyz.tech"',
10
     OSS_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
10
     OSS_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
11
     OSS_FAST_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',
11
     OSS_FAST_PATH: '"https://xlk-assets.oss-cn-shanghai.aliyuncs.com/"',

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

98
 
98
 
99
     setLoading(true)
99
     setLoading(true)
100
     let url = null
100
     let url = null
101
-    if (personType === ROLE_CODE.CONSULTANT || ROLE_CODE.CUSTOMER) {
101
+    if (personType === ROLE_CODE.CONSULTANT || personType === ROLE_CODE.CUSTOMER) {
102
       // url = API_REPORT_CUETOMER
102
       // url = API_REPORT_CUETOMER
103
       url = API_USER_ADD_CUSTOMER
103
       url = API_USER_ADD_CUSTOMER
104
     } else if (personType === ROLE_CODE.CHANNEL_AGENT) {
104
     } else if (personType === ROLE_CODE.CHANNEL_AGENT) {

+ 0
- 3
src/subpackages/pages/marketing/sureVisit/index.jsx 查看文件

49
   }
49
   }
50
 
50
 
51
   const handleSubmit = (e) => {
51
   const handleSubmit = (e) => {
52
-    console.log("🚀 ~ file: index.jsx ~ line 84 ~ handleSubmit ~ e", e)
53
 
52
 
54
     const payload = {
53
     const payload = {
55
       id,
54
       id,
69
       },
68
       },
70
 
69
 
71
     }
70
     }
72
-    console.log("🚀 ~ file: index.jsx ~ line 55 ~ handleSubmit ~ payload", payload)
73
 
71
 
74
     setLoading(true)
72
     setLoading(true)
75
     fetch({ url: API_MARKETING_VISIT, payload, method: 'PUT' }).then((res) => {
73
     fetch({ url: API_MARKETING_VISIT, payload, method: 'PUT' }).then((res) => {
76
-      console.log("🚀 ~ file: index.jsx ~ line 76 ~ fetch ~ res", res)
77
       setLoading(false)
74
       setLoading(false)
78
       Taro.showToast({
75
       Taro.showToast({
79
         title: '操作成功',
76
         title: '操作成功',