zhaoxiaohai 2 years ago
parent
commit
135bd76b75
4 changed files with 24 additions and 10 deletions
  1. 21 1
      app.js
  2. 2 1
      app.json
  3. 1 1
      project.config.json
  4. 0 7
      project.private.config.json

+ 21 - 1
app.js

@@ -3,7 +3,27 @@ import {
 } from './utils/api';
 App({
     onLaunch() {
-
+        /* wx.getUserInfo({
+            success(res){
+                console.log(res)
+            }
+        })
+        wx.login({
+            success(res) {
+                console.log(res)
+                if (res.code) {
+                    //发起网络请求
+                    wx.request({
+                        url: 'https://example.com/onLogin',
+                        data: {
+                            code: res.code
+                        }
+                    }) 
+                } else {
+                    console.log('登录失败!' + res.errMsg)
+                }
+            }
+        }) */
     },
     globalData: {
         http: new ApiModel(), //接口文件

+ 2 - 1
app.json

@@ -43,7 +43,8 @@
         "van-dropdown-item": "@vant/weapp/dropdown-item/index",
         "van-tree-select": "@vant/weapp/tree-select/index",
         "van-toast": "@vant/weapp/toast/index",
-        "van-cell": "@vant/weapp/cell/index"
+        "van-cell": "@vant/weapp/cell/index",
+        "van-action-sheet": "@vant/weapp/action-sheet/index"
     },
     "tabBar": {
         "custom": true,

+ 1 - 1
project.config.json

@@ -52,7 +52,7 @@
     },
     "compileType": "miniprogram",
     "libVersion": "2.19.4",
-    "appid": "wx5dc7fd18b6335214",
+    "appid": "wx210f6f5080f20d0c",
     "projectname": "miniprogram-92",
     "condition": {},
     "editorSetting": {

+ 0 - 7
project.private.config.json

@@ -8,13 +8,6 @@
     "condition": {
         "miniprogram": {
             "list": [
-                {
-                    "name": "通告列表",
-                    "pathName": "pages/annunciate/index",
-                    "query": "",
-                    "launchMode": "default",
-                    "scene": null
-                },
                 {
                     "name": "通告详情",
                     "pathName": "pages/annunciate/details",