李志伟 il y a 2 ans
Parent
révision
414c166961
5 fichiers modifiés avec 65 ajouts et 62 suppressions
  1. 2
    1
      config/dev.js
  2. 2
    1
      config/prod.js
  3. 54
    43
      project.config.json
  4. 6
    16
      project.private.config.json
  5. 1
    1
      src/pages/feedback/index.jsx

+ 2
- 1
config/dev.js Voir le fichier

@@ -3,7 +3,8 @@ module.exports = {
3 3
     NODE_ENV: '"development"',
4 4
   },
5 5
   defineConstants: {
6
-    HOST: '"http://192.168.89.147:7080"',
6
+    HOST: '"http://192.168.89.25:7080"',
7
+    // HOST: '"http://192.168.89.147:7080"',
7 8
     // HOST: '"https://machine.njyunzhi.com"',
8 9
     // OSS: '"yz-shigongli.oss-accelerate.aliyuncs.com"',
9 10
     // VERSION: '"3.0.3_2021-12-23"',

+ 2
- 1
config/prod.js Voir le fichier

@@ -3,7 +3,8 @@ module.exports = {
3 3
     NODE_ENV: '"production"',
4 4
   },
5 5
   defineConstants: {
6
-    HOST: '"http://192.168.89.147:7080"',
6
+    // HOST: '"http://192.168.89.147:7080"',
7
+    HOST: '"http://192.168.89.25:7080"',
7 8
     // HOST: '"https://machine.njyunzhi.com"',
8 9
     // OSS: '"yz-shigongli.oss-accelerate.aliyuncs.com"',
9 10
     // VERSION: '"3.0.3_2021-12-23"',

+ 54
- 43
project.config.json Voir le fichier

@@ -1,46 +1,57 @@
1 1
 {
2
-  "miniprogramRoot": "dist/",
3
-  "projectname": "machinery-worker",
4
-  "description": "农机手小程序",
5
-  "appid": "wx6d749c13e3f8b39a",
6
-  "setting": {
7
-    "urlCheck": false,
8
-    "es6": false,
9
-    "enhance": true,
10
-    "postcss": false,
11
-    "preloadBackgroundData": false,
12
-    "minified": false,
13
-    "newFeature": false,
14
-    "coverView": true,
15
-    "nodeModules": false,
16
-    "autoAudits": false,
17
-    "showShadowRootInWxmlPanel": true,
18
-    "scopeDataCheck": false,
19
-    "uglifyFileName": false,
20
-    "checkInvalidKey": true,
21
-    "checkSiteMap": true,
22
-    "uploadWithSourceMap": true,
23
-    "compileHotReLoad": false,
24
-    "lazyloadPlaceholderEnable": false,
25
-    "useMultiFrameRuntime": true,
26
-    "useApiHook": true,
27
-    "useApiHostProcess": true,
28
-    "babelSetting": {
29
-      "ignore": [],
30
-      "disablePlugins": [],
31
-      "outputPath": ""
2
+    "miniprogramRoot": "dist/",
3
+    "projectname": "machinery-worker",
4
+    "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
5
+    "appid": "wx6d749c13e3f8b39a",
6
+    "setting": {
7
+        "urlCheck": false,
8
+        "es6": false,
9
+        "enhance": true,
10
+        "postcss": false,
11
+        "preloadBackgroundData": false,
12
+        "minified": false,
13
+        "newFeature": false,
14
+        "coverView": true,
15
+        "nodeModules": false,
16
+        "autoAudits": false,
17
+        "showShadowRootInWxmlPanel": true,
18
+        "scopeDataCheck": false,
19
+        "uglifyFileName": false,
20
+        "checkInvalidKey": true,
21
+        "checkSiteMap": true,
22
+        "uploadWithSourceMap": true,
23
+        "compileHotReLoad": false,
24
+        "lazyloadPlaceholderEnable": false,
25
+        "useMultiFrameRuntime": true,
26
+        "useApiHook": true,
27
+        "useApiHostProcess": true,
28
+        "babelSetting": {
29
+            "ignore": [],
30
+            "disablePlugins": [],
31
+            "outputPath": ""
32
+        },
33
+        "useIsolateContext": false,
34
+        "userConfirmedBundleSwitch": false,
35
+        "packNpmManually": false,
36
+        "packNpmRelationList": [],
37
+        "minifyWXSS": true,
38
+        "disableUseStrict": false,
39
+        "minifyWXML": true,
40
+        "showES6CompileOption": false,
41
+        "useCompilerPlugins": false,
42
+        "ignoreUploadUnusedFiles": true,
43
+        "useStaticServer": true
32 44
     },
33
-    "useIsolateContext": false,
34
-    "userConfirmedBundleSwitch": false,
35
-    "packNpmManually": false,
36
-    "packNpmRelationList": [],
37
-    "minifyWXSS": true,
38
-    "disableUseStrict": false,
39
-    "minifyWXML": true,
40
-    "showES6CompileOption": false,
41
-    "useCompilerPlugins": false,
42
-    "ignoreUploadUnusedFiles": true
43
-  },
44
-  "compileType": "miniprogram",
45
-  "condition": {}
45
+    "compileType": "miniprogram",
46
+    "condition": {},
47
+    "libVersion": "2.24.6",
48
+    "srcMiniprogramRoot": "dist/",
49
+    "packOptions": {
50
+        "ignore": [],
51
+        "include": []
52
+    },
53
+    "editorSetting": {
54
+        "tabIndent": "insertSpaces",
55
+        "tabSize": 4
56
+    }
46 57
 }

+ 6
- 16
project.private.config.json Voir le fichier

@@ -1,19 +1,9 @@
1 1
 {
2
-  "projectname": "machinery-worker",
3
-  "appid": "wx6d749c13e3f8b39a",
4
-  "setting": {},
5
-  "condition": {
6
-    "plugin": {
7
-      "list": []
2
+    "projectname": "machinery-miniapp-worker",
3
+    "appid": "wx6d749c13e3f8b39a",
4
+    "setting": {
5
+        "compileHotReLoad": true
8 6
     },
9
-    "game": {
10
-      "list": []
11
-    },
12
-    "gamePlugin": {
13
-      "list": []
14
-    },
15
-    "miniprogram": {
16
-      "list": []
17
-    }
18
-  }
7
+    "condition": {},
8
+    "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html"
19 9
 }

+ 1
- 1
src/pages/feedback/index.jsx Voir le fichier

@@ -30,7 +30,7 @@ export default withLayout((props) => {
30 30
       })
31 31
     } else {
32 32
       setLoading(true)
33
-      addFeedback({ ...person, content: value }).then((res) => {
33
+      addFeedback({ content: value }).then((res) => {
34 34
         Taro.showToast({
35 35
           title: '反馈已收到!',
36 36
           icon: 'success'