ycm 2 years ago
parent
commit
71ba58ebb8
3 changed files with 22 additions and 34 deletions
  1. 2 2
      app.js
  2. 2 2
      pages/login/login.js
  3. 18 30
      project.config.json

+ 2 - 2
app.js

@@ -1,5 +1,5 @@
 // app.js
 // app.js
-var projectMode = 0;//0代表开发模式(本地环境),1代表测试模式(线上测试环境),2代表线上模式(正式运行环境)
+var projectMode = 1;//0代表开发模式(本地环境),1代表测试模式(线上测试环境),2代表线上模式(正式运行环境)
 var info = wx.getSystemInfoSync();
 var info = wx.getSystemInfoSync();
 console.log(info);
 console.log(info);
 if (info.platform != "devtools" && projectMode == 0) { projectMode = 1 }
 if (info.platform != "devtools" && projectMode == 0) { projectMode = 1 }
@@ -23,7 +23,7 @@ App({
     userInfo: null,
     userInfo: null,
     btnInfo: null,
     btnInfo: null,
     status: ['可下单', '服务中', '已满柜', '暂停服务'],
     status: ['可下单', '服务中', '已满柜', '暂停服务'],
-    baseAppUrl: projectMode == 2 ? 'https://hx.xishuashua.art/' : (projectMode == 1 ? 'https://hx.xishuashua.art/' : 'https://wash.nanodreamtech.com/'),
+    baseAppUrl: projectMode == 2 ? 'https://hx.xishuashua.art/' : (projectMode == 1 ? 'https://wash.nanodreamtech.com/' : 'https://wash.nanodreamtech.com/'),
     location: "",
     location: "",
     islocation: true
     islocation: true
   },
   },

+ 2 - 2
pages/login/login.js

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

+ 18 - 30
project.config.json

@@ -3,8 +3,8 @@
     "packOptions": {
     "packOptions": {
         "ignore": [
         "ignore": [
             {
             {
-                "value": ".eslintrc.js",
-                "type": "file"
+                "type": "file",
+                "value": ".eslintrc.js"
             }
             }
         ]
         ]
     },
     },
@@ -52,48 +52,36 @@
         "useCompilerPlugins": false
         "useCompilerPlugins": false
     },
     },
     "compileType": "miniprogram",
     "compileType": "miniprogram",
-    "libVersion": "2.21.4",
-    "appid": "wx96efd334b6da6e38",
-    "projectname": "%E6%B5%B7%E6%98%9F%E7%94%A8%E6%88%B7%E7%AB%AF",
-    "cloudfunctionTemplateRoot": "",
-    "watchOptions": {
-        "ignore": []
-    },
+    "libVersion": "2.22.0",
+    "appid": "wx0b37183822da9c21",
+    "projectname": "%E6%B5%B7%E6%98%9F%E5%88%86%E6%8B%A3%E7%AB%AF",
     "debugOptions": {
     "debugOptions": {
         "hidedInDevtools": []
         "hidedInDevtools": []
     },
     },
     "scripts": {},
     "scripts": {},
+    "staticServerOptions": {
+        "baseURL": "",
+        "servePath": ""
+    },
+    "isGameTourist": false,
     "condition": {
     "condition": {
-        "plugin": {
+        "search": {
+            "list": []
+        },
+        "conversation": {
             "list": []
             "list": []
         },
         },
         "game": {
         "game": {
             "list": []
             "list": []
         },
         },
+        "plugin": {
+            "list": []
+        },
         "gamePlugin": {
         "gamePlugin": {
             "list": []
             "list": []
         },
         },
         "miniprogram": {
         "miniprogram": {
-            "list": [
-                {
-                    "name": "",
-                    "pathName": "pages/tabber/order/index",
-                    "query": "",
-                    "scene": null
-                },
-                {
-                    "name": "",
-                    "pathName": "pages/control/result/result",
-                    "query": "",
-                    "scene": null
-                },
-                {
-                    "name": "",
-                    "pathName": "pages/sorting/enter/enter",
-                    "query": "",
-                    "scene": null
-                }
-            ]
+            "list": []
         }
         }
     }
     }
 }
 }