xjc %!s(int64=4) %!d(string=hai) anos
pai
achega
ec86eeaaf8
Modificáronse 3 ficheiros con 11 adicións e 11 borrados
  1. 1 1
      pages/index/index.js
  2. 7 7
      pages/upload/upload.js
  3. 3 3
      project.config.json

+ 1 - 1
pages/index/index.js

@@ -63,7 +63,7 @@ Page({
         if(res.data.code != 0){
           wx.showToast({
             icon: 'none',
-            title: '服务器开小差啦',
+            title: res.data.message,
           })
            return
         }

+ 7 - 7
pages/upload/upload.js

@@ -200,13 +200,13 @@ Page({
     }else{
       parm.today_stock = []
     }
-    if (parm.today_stock_img.length<=0) {
-      wx.showToast({
-        icon: 'none',
-        title: '请上传截图'
-      })
-      return
-    }
+    // if (parm.today_stock_img.length<=0) {
+    //   wx.showToast({
+    //     icon: 'none',
+    //     title: '请上传截图'
+    //   })
+    //   return
+    // }
     wx.showLoading({
       title: '正在提交',
     })

+ 3 - 3
project.config.json

@@ -5,6 +5,7 @@
 		"es6": true,
 		"enhance": false,
 		"postcss": false,
+		"preloadBackgroundData": false,
 		"minified": false,
 		"newFeature": true,
 		"coverView": true,
@@ -22,15 +23,14 @@
 			"outputPath": ""
 		},
 		"bundle": false,
-		"preloadBackgroundData": false,
+		"useCompilerModule": false,
+		"userConfirmedUseCompilerModuleSwitch": false,
 		"compileHotReLoad": false,
 		"useMultiFrameRuntime": true,
 		"useApiHook": true,
 		"useApiHostProcess": false,
 		"enableEngineNative": false,
 		"useIsolateContext": true,
-		"useCompilerModule": true,
-		"userConfirmedUseCompilerModuleSwitch": false,
 		"userConfirmedBundleSwitch": false,
 		"packNpmManually": false,
 		"packNpmRelationList": [],