YY 2 роки тому
батько
коміт
8fd293aa8b

+ 71 - 0
pages/match/raceteam.js

@@ -0,0 +1,71 @@
+const app = getApp()
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+        frameStyle: { useTop: true, name: '赛事组管理', leftArrow: true, useBar: false },
+    },
+    // 跳转菜单
+    back(e) {
+        wx.navigateBack({
+            delta: 1,
+        })
+    },
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad: function (options) {
+        const that = this;
+
+    },
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide: function () {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload: function () {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh: function () {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom: function () {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage: function () {
+
+    }
+})

+ 6 - 0
pages/match/raceteam.json

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

+ 38 - 0
pages/match/raceteam.less

@@ -0,0 +1,38 @@
+.main {
+    height: 88.8vh;
+
+    .zero {
+        width: 96vw;
+        margin: 0 0 2vw 0;
+    }
+
+    .zero {
+        margin: 0;
+    }
+
+    .one {
+        display: flex;
+        flex-direction: column;
+
+        .one_1 {
+            width: 92vw;
+            padding: 2vw;
+            margin: 0 0 1vw 0;
+            background-color: #ccc;
+
+        }
+
+        .one_2 {
+            text-align: center;
+            display: flex;
+            flex-direction: row;
+            justify-content: space-between;
+            width: 96vw;
+
+            button {
+                margin: 0 2vw;
+                font-size: 14px;
+            }
+        }
+    }
+}

+ 20 - 0
pages/match/raceteam.wxml

@@ -0,0 +1,20 @@
+<mobile-main frameStyle="{{frameStyle}}" bind:back="back" bind:tabPath="tabPath">
+    <view slot="info" class="container main">
+        <view class="zero one">
+            <view class="one_1">
+                <input type="text" value="{{searchInfo.name}}" placeholder="请输入组名称" />
+            </view>
+            <view class="one_2">
+                <view>
+                    <button type="primary">自动编排</button>
+                </view>
+                <view>
+                    <button type="primary">手动编排</button>
+                </view>
+            </view>
+        </view>
+        <view class="zero two">
+            列表
+        </view>
+    </view>
+</mobile-main>

+ 31 - 0
pages/match/raceteam.wxss

@@ -0,0 +1,31 @@
+.main {
+  height: 88.8vh;
+}
+.main .zero {
+  width: 96vw;
+  margin: 0 0 2vw 0;
+}
+.main .zero {
+  margin: 0;
+}
+.main .one {
+  display: flex;
+  flex-direction: column;
+}
+.main .one .one_1 {
+  width: 92vw;
+  padding: 2vw;
+  margin: 0 0 1vw 0;
+  background-color: #ccc;
+}
+.main .one .one_2 {
+  text-align: center;
+  display: flex;
+  flex-direction: row;
+  justify-content: space-between;
+  width: 96vw;
+}
+.main .one .one_2 button {
+  margin: 0 2vw;
+  font-size: 14px;
+}

+ 1 - 1
pages/matchInfo/index.less

@@ -116,7 +116,7 @@
                                 display: flex;
                                 flex-direction: row;
                                 justify-content: space-between;
-                                font-size: 15px;
+                                font-size: 14px;
                             }
 
                             .project {

+ 1 - 1
pages/matchInfo/index.wxss

@@ -95,7 +95,7 @@
   display: flex;
   flex-direction: row;
   justify-content: space-between;
-  font-size: 15px;
+  font-size: 14px;
 }
 .main .one .a .scroll-view .list-scroll-view .b_1 .groupList .project .projectList {
   margin: 0 0 2vw 0;

+ 1 - 1
pages/orderbook/teamAdd.js

@@ -117,7 +117,7 @@ Page({
         const that = this;
         //验证规则函数
         that.initValidate();
-        that.setData({ id: options.id || '62e8d31388ac202c70f059d9' });
+        that.setData({ id: options.id || '' });
         that.watchLogin()
     },
     // 监听用户是否登录

+ 4 - 1
utils/dict.js

@@ -38,7 +38,10 @@ export const myBtn = [
                     { title: '信息管理', route: 'match/mess' },
                     { title: '报名管理', route: 'match/sign' },
                     { title: '组队信息管理', route: 'match/shteam' },
-                    { title: '秩序册管理', route: 'match/orderbook' },
+                    { title: '赛事组管理', route: 'match/raceteam' },
+
+
+                    // { title: '秩序册管理', route: 'match/orderbook' },
 
                 ]
             },