guhongwei hace 2 años
padre
commit
b914c9719f

+ 1 - 0
app.json

@@ -14,6 +14,7 @@
         "pages/setting/contact",
         "pages/match/index",
         "pages/match/mess",
+        "pages/match/matchadd",
         "pages/test/index"
     ],
     "usingComponents": {

+ 69 - 0
pages/match/matchadd.js

@@ -0,0 +1,69 @@
+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/matchadd.json

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

+ 4 - 0
pages/match/matchadd.less

@@ -0,0 +1,4 @@
+.main {
+    height: 88.8vh;
+    background-color: #ff0000;
+}

+ 5 - 0
pages/match/matchadd.wxml

@@ -0,0 +1,5 @@
+<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
+    <view slot="info" class="container main">
+        赛事信息
+    </view>
+</mobile-main>

+ 4 - 0
pages/match/matchadd.wxss

@@ -0,0 +1,4 @@
+.main {
+  height: 88.8vh;
+  background-color: #ff0000;
+}

+ 3 - 55
pages/match/mess.js

@@ -16,67 +16,15 @@ Page({
                 end_time: '2021/10/12',
                 address: '吉林省长春市朝阳区前进大街1244号'
             },
-            {
-                status: '0',
-                icon: [{ url: "http://broadcast.waityou24.cn/files/court/elimg/20220728102205.jpg" }],
-                name: '2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛',
-                sign_end_time: '2021/10/12-2022/07/15',
-                start_time: '2021/10/12',
-                end_time: '2021/10/12',
-                address: '吉林省长春市朝阳区前进大街1244号'
-            },
-            {
-                status: '0',
-                icon: [{ url: "http://broadcast.waityou24.cn/files/court/elimg/20220728102205.jpg" }],
-                name: '2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛',
-                sign_end_time: '2021/10/12-2022/07/15',
-                start_time: '2021/10/12',
-                end_time: '2021/10/12',
-                address: '吉林省长春市朝阳区前进大街1244号'
-            },
-            {
-                status: '0',
-                icon: [{ url: "http://broadcast.waityou24.cn/files/court/elimg/20220728102205.jpg" }],
-                name: '2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛',
-                sign_end_time: '2021/10/12-2022/07/15',
-                start_time: '2021/10/12',
-                end_time: '2021/10/12',
-                address: '吉林省长春市朝阳区前进大街1244号'
-            },
-            {
-                status: '0',
-                icon: [{ url: "http://broadcast.waityou24.cn/files/court/elimg/20220728102205.jpg" }],
-                name: '2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛',
-                sign_end_time: '2021/10/12-2022/07/15',
-                start_time: '2021/10/12',
-                end_time: '2021/10/12',
-                address: '吉林省长春市朝阳区前进大街1244号'
-            },
-            {
-                status: '0',
-                icon: [{ url: "http://broadcast.waityou24.cn/files/court/elimg/20220728102205.jpg" }],
-                name: '2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛',
-                sign_end_time: '2021/10/12-2022/07/15',
-                start_time: '2021/10/12',
-                end_time: '2021/10/12',
-                address: '吉林省长春市朝阳区前进大街1244号'
-            },
-            {
-                status: '0',
-                icon: [{ url: "http://broadcast.waityou24.cn/files/court/elimg/20220728102205.jpg" }],
-                name: '2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛2021南宁·LYB李永波全球业余羽毛球锦标赛-南宁分站赛',
-                sign_end_time: '2021/10/12-2022/07/15',
-                start_time: '2021/10/12',
-                end_time: '2021/10/12',
-                address: '吉林省长春市朝阳区前进大街1244号吉林省长春市朝阳区前进大街1244号吉林省长春市朝阳区前进大街1244号'
-            },
-
         ]
     },
     // 跳转菜单
     back(e) {
         wx.navigateBack({ delta: 1 })
     },
+    toAdd: function () {
+        wx.navigateTo({ url: `/pages/match/matchadd` })
+    },
     /**
      * 生命周期函数--监听页面加载
      */

+ 2 - 0
pages/match/mess.less

@@ -30,6 +30,8 @@
         }
 
         .one_2 {
+            text-align: center;
+
             button {
                 font-size: 14px;
             }

+ 3 - 0
pages/match/mess.wxss

@@ -25,6 +25,9 @@
   padding: 1vw 2px;
   font-size: 14px;
 }
+.main .one .one_2 {
+  text-align: center;
+}
 .main .one .one_2 button {
   font-size: 14px;
 }

+ 1 - 3
pages/user/index.js

@@ -53,9 +53,7 @@ Page({
                 let info = {};
                 if (that.data.searchName) info.name = that.data.searchName;
                 const arr = await app.$get(`/newCourt/api/user/`, { ...info });
-                if (arr.errcode == '0') {
-                    that.setData({ list: arr.data })
-                }
+                if (arr.errcode == '0') { that.setData({ list: arr.data }) }
             },
             fail: res => {
                 wx.redirectTo({ url: '/pages/index/index', })

+ 10 - 7
pages/user/index.less

@@ -2,7 +2,9 @@
     height: 88vh;
 
     .one {
-        width: 100%;
+        width: 96vw;
+        margin: 0 0 2vw 0;
+        background-color: #fff;
     }
 
     .two {
@@ -27,22 +29,22 @@
                     display: flex;
                     flex-direction: column;
                     width: 96vw;
-                    padding: 10px;
+                    padding: 2vw;
                     background-color: #ffffff;
-                    margin: 2px 0 0 0;
+                    margin: 0 0 2vw 0;
 
                     .name {
                         font-size: 14px;
                         font-weight: bold;
-                        margin: 0 0 5px 0;
+                        margin: 0 0 1vw 0;
                     }
 
                     .other {
                         font-size: 12px;
-                        margin: 0 0 5px 0;
+                        margin: 0 0 1vw 0;
 
                         .other_1 {
-                            padding: 2px 0;
+                            padding: 0 0 1vw 0;
                         }
 
                         .other_1 text:nth-child(1) {
@@ -54,7 +56,8 @@
                         text-align: center;
 
                         button {
-                            color: #216EC7;
+                            color: #ffffff;
+                            font-size: 14px;
                         }
                     }
                 }

+ 4 - 4
pages/user/index.wxml

@@ -1,20 +1,20 @@
 <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
     <view slot="info" class="container main">
         <view class="one">
-            <van-search value="{{ searchName }}" input-align="center" bind:search="onSearch" placeholder="请输入用户姓名" />
+            <van-search value="{{ searchName }}" bind:search="onSearch" placeholder="请输入用户姓名" />
         </view>
         <view class="two">
             <scroll-view scroll-y="true" class="scroll-view">
                 <view class="list-scroll-view">
                     <view class="list" wx:for="{{list}}" wx:key="item">
-                        <view class="name textOver">{{item.name||'暂无昵称'}}</view>
+                        <view class="name textOver">{{item.name||'暂无'}}</view>
                         <view class="other">
-                            <view class="other_1"><text>用户类型:</text><text>{{item.type=='-1'?'管理员':item.type=='0'?'个人用户':item.type=='1'?'团队创建人':'暂无'}}</text></view>
+                            <view class="other_1"><text>用户类型:</text><text>{{item.type=='-1'?'管理员':item.type=='0'?'个人用户':item.type=='1'?'裁判用户':'暂无'}}</text></view>
                             <view class="other_1"><text>手机:</text><text>{{item.phone||'暂无'}}</text></view>
                             <view class="other_1"><text>邮箱:</text><text>{{item.email||'暂无'}}</text></view>
                         </view>
                         <view class="btn">
-                            <button size="mini" type="default" bindtap="toView" data-openid="{{item.openid}}">详情</button>
+                            <button size="mini" type="primary" bindtap="toView" data-openid="{{item.openid}}">详情</button>
                         </view>
                     </view>
                 </view>

+ 10 - 7
pages/user/index.wxss

@@ -2,7 +2,9 @@
   height: 88vh;
 }
 .main .one {
-  width: 100%;
+  width: 96vw;
+  margin: 0 0 2vw 0;
+  background-color: #fff;
 }
 .main .two {
   flex-grow: 1;
@@ -26,21 +28,21 @@
   display: flex;
   flex-direction: column;
   width: 96vw;
-  padding: 10px;
+  padding: 2vw;
   background-color: #ffffff;
-  margin: 2px 0 0 0;
+  margin: 0 0 2vw 0;
 }
 .main .two .scroll-view .list-scroll-view .list .name {
   font-size: 14px;
   font-weight: bold;
-  margin: 0 0 5px 0;
+  margin: 0 0 1vw 0;
 }
 .main .two .scroll-view .list-scroll-view .list .other {
   font-size: 12px;
-  margin: 0 0 5px 0;
+  margin: 0 0 1vw 0;
 }
 .main .two .scroll-view .list-scroll-view .list .other .other_1 {
-  padding: 2px 0;
+  padding: 0 0 1vw 0;
 }
 .main .two .scroll-view .list-scroll-view .list .other .other_1 text:nth-child(1) {
   color: #666;
@@ -49,7 +51,8 @@
   text-align: center;
 }
 .main .two .scroll-view .list-scroll-view .list .btn button {
-  color: #216EC7;
+  color: #ffffff;
+  font-size: 14px;
 }
 .dialog_one {
   margin: 10px 0 0 0;