guhongwei 2 år sedan
förälder
incheckning
3e9fb0678f
2 ändrade filer med 2 tillägg och 22 borttagningar
  1. 1 16
      app.json
  2. 1 6
      pages/school/index.js

+ 1 - 16
app.json

@@ -80,22 +80,7 @@
         "pages/test/index",
         "pages/logs/logs"
     ],
-    "usingComponents": {
-        "van-sidebar": "@vant/weapp/sidebar/index",
-        "van-sidebar-item": "@vant/weapp/sidebar-item/index",
-        "van-search": "@vant/weapp/search/index",
-        "van-button": "@vant/weapp/button/index",
-        "van-row": "@vant/weapp/row/index",
-        "van-col": "@vant/weapp/col/index",
-        "van-dialog": "@vant/weapp/dialog/index",
-        "van-tab": "@vant/weapp/tab/index",
-        "van-tabs": "@vant/weapp/tabs/index",
-        "van-icon": "@vant/weapp/icon/index",
-        "van-nav-bar": "@vant/weapp/nav-bar/index",
-        "van-tabbar": "@vant/weapp/tabbar/index",
-        "van-tabbar-item": "@vant/weapp/tabbar-item/index",
-        "van-uploader": "@vant/weapp/uploader/index"
-    },
+    "usingComponents": {},
     "window": {
         "backgroundTextStyle": "light",
         "navigationBarBackgroundColor": "#fff",

+ 1 - 6
pages/school/index.js

@@ -46,12 +46,7 @@ Page({
     /**
      * 生命周期函数--监听页面加载
      */
-    onLoad: function (options) {
-        let two = '2022-08-23 15:00';
-        let isBefore = moment().isBefore(two)
-        console.log(isBefore);
-
-    },
+    onLoad: function (options) { },
     /**
      * 生命周期函数--监听页面初次渲染完成
      */