luck 2 tahun lalu
induk
melakukan
d6d899c289
3 mengubah file dengan 9 tambahan dan 9 penghapusan
  1. 1 1
      app.js
  2. 2 2
      pages/login/login.js
  3. 6 6
      project.config.json

+ 1 - 1
app.js

@@ -1,5 +1,5 @@
 // app.js
-var projectMode = 0;//0代表开发模式(本地环境),1代表测试模式(线上测试环境),2代表线上模式(正式运行环境)
+var projectMode = 1;//0代表开发模式(本地环境),1代表测试模式(线上测试环境),2代表线上模式(正式运行环境)
 var info = wx.getSystemInfoSync();
 console.log(info);
 if (info.platform != "devtools" && projectMode == 0) { projectMode = 1 }

+ 2 - 2
pages/login/login.js

@@ -90,13 +90,13 @@ Page({
             appid: wx.getAccountInfoSync().miniProgram.appId
           }, "post").then(function (res) {
             wx.showLoading({
-              title: '登录中',
+              title: '登录中....',
             })
             console.log(res);
             if (res.code != 200) {
            
                 wx.showLoading({
-                    title: '登录失败',
+                    title: res.message.msg,
                   })
                   setTimeout(function () {
                     wx.hideLoading();

+ 6 - 6
project.config.json

@@ -9,7 +9,7 @@
     ]
   },
   "setting": {
-    "urlCheck": false,
+    "urlCheck": true,
     "es6": true,
     "enhance": true,
     "postcss": true,
@@ -27,15 +27,14 @@
     "uploadWithSourceMap": true,
     "compileHotReLoad": false,
     "lazyloadPlaceholderEnable": false,
-    "useMultiFrameRuntime": true,
-    "useApiHook": true,
-    "useApiHostProcess": true,
+    "useMultiFrameRuntime": false,
+    "useApiHook": false,
+    "useApiHostProcess": false,
     "babelSetting": {
       "ignore": [],
       "disablePlugins": [],
       "outputPath": ""
     },
-    "enableEngineNative": false,
     "useIsolateContext": false,
     "userConfirmedBundleSwitch": false,
     "packNpmManually": false,
@@ -49,7 +48,8 @@
     "disableUseStrict": false,
     "minifyWXML": true,
     "showES6CompileOption": false,
-    "useCompilerPlugins": false
+    "useCompilerPlugins": false,
+    "ignoreUploadUnusedFiles": true
   },
   "compileType": "miniprogram",
   "libVersion": "2.21.4",