guhongwei 2 年之前
父节点
当前提交
382aa9e5b8

+ 1 - 0
app.json

@@ -101,6 +101,7 @@
                 "matchAdmin/match/list",
                 "matchAdmin/group/list",
                 "matchAdmin/project/list",
+                "matchAdmin/referee/list",
                 "test/index"
             ]
         }

+ 66 - 0
pagesMatch/matchAdmin/referee/list.js

@@ -0,0 +1,66 @@
+const app = getApp();
+Page({
+    data: {
+        frameStyle: { useTop: true, name: '裁判信息', leftArrow: true, useBar: false },
+    },
+    // 返回
+    back: function () { wx.navigateBack({ delta: 1 }) },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) { },
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () { },
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+        const that = this;
+        // 监听用户是否登录
+        that.watchLogin();
+    },
+    // 监听用户是否登录
+    watchLogin: async function () {
+        const that = this;
+        wx.getStorage({
+            key: 'user',
+            success: async res => { },
+            fail: async res => {
+                wx.redirectTo({ url: '/pages/index/index' })
+            }
+        })
+    },
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 6 - 0
pagesMatch/matchAdmin/referee/list.json

@@ -0,0 +1,6 @@
+{
+    "component": true,
+    "usingComponents": {
+      "mobile-main": "/commpents/mobile-frame/index"
+    }
+  }

+ 23 - 0
pagesMatch/matchAdmin/referee/list.less

@@ -0,0 +1,23 @@
+@import (css) "/app.wxss";
+
+.main {
+    height: var(--twoHeight);
+    background-color: var(--mainColor);
+
+    .one {
+        width: 100vw;
+    }
+}
+
+.scroll-view {
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
+
+    .list-scroll-view {
+        display: flex;
+        flex-direction: column;
+    }
+}

+ 7 - 0
pagesMatch/matchAdmin/referee/list.wxml

@@ -0,0 +1,7 @@
+<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
+    <view slot="info" class="container main">
+        <view class="one">
+            裁判信息
+        </view>
+    </view>
+</mobile-main>

+ 19 - 0
pagesMatch/matchAdmin/referee/list.wxss

@@ -0,0 +1,19 @@
+@import "/app.wxss";
+.main {
+  height: var(--twoHeight);
+  background-color: var(--mainColor);
+}
+.main .one {
+  width: 100vw;
+}
+.scroll-view {
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+}
+.scroll-view .list-scroll-view {
+  display: flex;
+  flex-direction: column;
+}

+ 7 - 1
utils/dict.js

@@ -157,6 +157,13 @@ export const match_menu = [
     {
         type: '1',
         menu: [
+            {
+                title: '账号管理',
+                icon: 'icon-yonghu',
+                btn: [
+                    { title: '裁判信息', route: 'matchAdmin/referee/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
+                ]
+            },
             {
                 title: '赛事管理',
                 icon: 'icon-yonghu',
@@ -164,7 +171,6 @@ export const match_menu = [
                     { title: '比赛信息', route: 'matchAdmin/match/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
                     { title: '赛事分组', route: 'matchAdmin/group/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
                     { title: '组内项目', route: 'matchAdmin/project/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
-
                 ]
             },
         ]