guhongwei 2 лет назад
Родитель
Сommit
8e0a5aaccd

+ 3 - 1
app.json

@@ -98,10 +98,12 @@
             "root": "pagesMatch",
             "pages": [
                 "system/index",
+                "matchAdmin/referee/list",
+                "matchAdmin/profit/list",
                 "matchAdmin/match/list",
                 "matchAdmin/group/list",
                 "matchAdmin/project/list",
-                "matchAdmin/referee/list",
+                "matchAdmin/teamapply/list",
                 "test/index"
             ]
         }

+ 66 - 0
pagesMatch/matchAdmin/profit/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/profit/list.json

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

+ 23 - 0
pagesMatch/matchAdmin/profit/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/profit/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/profit/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;
+}

+ 66 - 0
pagesMatch/matchAdmin/teamapply/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/teamapply/list.json

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

+ 23 - 0
pagesMatch/matchAdmin/teamapply/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/teamapply/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/teamapply/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;
+}

+ 23 - 2
utils/dict.js

@@ -154,6 +154,10 @@ export const match_menu = [
         type: '-1',
         menu: []
     },
+    {
+        type: '0',
+        menu: []
+    },
     {
         type: '1',
         menu: [
@@ -162,6 +166,7 @@ export const match_menu = [
                 icon: 'icon-yonghu',
                 btn: [
                     { title: '裁判信息', route: 'matchAdmin/referee/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
+                    { title: '收益信息', route: 'matchAdmin/profit/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
                 ]
             },
             {
@@ -169,10 +174,26 @@ export const match_menu = [
                 icon: 'icon-yonghu',
                 btn: [
                     { 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' },
+                    { title: '赛事组别', route: 'matchAdmin/group/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
+                    { title: '组别项目', route: 'matchAdmin/project/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
+                    { title: '组队申请', route: 'matchAdmin/teamapply/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
+                    // { title: '赛制分组', route: 'matchAdmin/branchgroup/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
+                    // { title: '小组赛管理', route: 'matchAdmin/groupmatch/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
+                    // { title: '淘汰赛管理', route: 'matchAdmin/elimmatch/list', icon: 'icon-xuexiao_xuexiaoxinxi' },
                 ]
             },
         ]
     },
+    {
+        type: '2',
+        menu: []
+    },
+    {
+        type: '3',
+        menu: []
+    },
+    {
+        type: '10',
+        menu: []
+    },
 ]