张延森 2 年 前
コミット
afd79b1390
共有3 個のファイルを変更した6 個の追加6 個の削除を含む
  1. 1
    0
      config/config.js
  2. 4
    4
      src/pages/broker/customer/index.jsx
  3. 1
    2
      src/utils/request.js

+ 1
- 0
config/config.js ファイルの表示

@@ -85,6 +85,7 @@ export default {
85 85
     'primary-color': defaultSettings.primaryColor,
86 86
   },
87 87
   define: {
88
+    API_BASE: REACT_APP_ENV == 'dev' ? '' : 'https://xlk.njyz.tech',
88 89
     REACT_APP_ENV: REACT_APP_ENV || false,
89 90
     ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION:
90 91
       ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION || '', // preview.pro.ant.design only do not use in your production ; preview.pro.ant.design 专用环境变量,请不要在你的项目中使用它。

+ 4
- 4
src/pages/broker/customer/index.jsx ファイルの表示

@@ -50,16 +50,16 @@ export default (props) => {
50 50
         } else if (row.status === 3) {
51 51
           return '驳回';
52 52
         } else {
53
-          if (!row.commission_date) {
53
+          if (row.commissionDate) {
54 54
             return '结佣';
55 55
           }
56
-          if (!row.signed_date) {
56
+          if (row.signedDate) {
57 57
             return '签约';
58 58
           }
59
-          if (!row.preparatory_date) {
59
+          if (row.preparatoryDate) {
60 60
             return '认筹';
61 61
           }
62
-          if (!row.visit_date) {
62
+          if (row.visitDate) {
63 63
             return '到访';
64 64
           }
65 65
         }

+ 1
- 2
src/utils/request.js ファイルの表示

@@ -46,8 +46,7 @@ request.interceptors.request.use((url, options) => {
46 46
 
47 47
   return (
48 48
     {
49
-      // url: 'https://xlk.njyz.tech' + apiURL,
50
-      url: apiURL,
49
+      url: API_BASE + apiURL,
51 50
       options: {
52 51
         ...opts,
53 52
         headers: {