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

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

@@ -98,7 +98,7 @@ export default withLayout((props) => {
98 98
 
99 99
     setLoading(true)
100 100
     let url = null
101
-    if (personType === ROLE_CODE.CONSULTANT || ROLE_CODE.CUSTOMER) {
101
+    if (personType === ROLE_CODE.CONSULTANT || personType === ROLE_CODE.CUSTOMER) {
102 102
       // url = API_REPORT_CUETOMER
103 103
       url = API_USER_ADD_CUSTOMER
104 104
     } else if (personType === ROLE_CODE.CHANNEL_AGENT) {

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

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