瀏覽代碼

账号管理

guhongwei 2 年之前
父節點
當前提交
c6b8640420

+ 7 - 4
pagesMatch/matchAdmin/address/list.less

@@ -4,15 +4,16 @@
     height: var(--twoHeight);
     background-color: var(--mainColor);
 
-   
+
     .one {
         display: flex;
-        flex-direction: row;
+        flex-direction: column;
+        width: 96vw;
         padding: 2vw;
         border-bottom: 1px solid var(--f1Color);
 
         .one_1 {
-            flex-grow: 1;
+            margin: 0 0 2vw 0;
 
             input {
                 padding: 1vw 0 2vw 2vw;
@@ -22,7 +23,9 @@
         }
 
         .one_2 {
-            width: 20vw;
+            display: flex;
+            flex-direction: row;
+            justify-content: space-around;
 
             button {
                 width: 100%;

+ 3 - 1
pagesMatch/matchAdmin/address/list.wxml

@@ -5,7 +5,9 @@
                 <input type="text" placeholder="请输入关键词" />
             </view>
             <view class="one_2">
-                <button type="primary" bindtap="toCommon" data-route="matchAdmin/address/add">添加</button>
+                <view class="one_2_1">
+                    <button type="primary" bindtap="toCommon" data-route="matchAdmin/address/add">添加场地</button>
+                </view>
             </view>
         </view>
         <view class="two">

+ 6 - 3
pagesMatch/matchAdmin/address/list.wxss

@@ -5,12 +5,13 @@
 }
 .main .one {
   display: flex;
-  flex-direction: row;
+  flex-direction: column;
+  width: 96vw;
   padding: 2vw;
   border-bottom: 1px solid var(--f1Color);
 }
 .main .one .one_1 {
-  flex-grow: 1;
+  margin: 0 0 2vw 0;
 }
 .main .one .one_1 input {
   padding: 1vw 0 2vw 2vw;
@@ -18,7 +19,9 @@
   border-radius: 5px;
 }
 .main .one .one_2 {
-  width: 20vw;
+  display: flex;
+  flex-direction: row;
+  justify-content: space-around;
 }
 .main .one .one_2 button {
   width: 100%;

+ 5 - 4
pagesMatch/matchAdmin/match/add.js

@@ -4,16 +4,17 @@ import WxValidate from '../../../utils/wxValidate'
 Page({
     data: {
         frameStyle: { useTop: true, name: '比赛信息', leftArrow: true, useBar: false },
-        id: '',
         // 所属id
         belong_id: '',
-        form: { logo: [] },
         // 状态列表
         statusList: [],
         // 类别列表
         typeList: [],
         // 赛制列表
-        formatList: []
+        formatList: [],
+        id: '',
+        form: { logo: [] },
+
     },
     initValidate() {
         const rules = {
@@ -97,7 +98,7 @@ Page({
      */
     onLoad: async function (options) {
         const that = this;
-        that.setData({ id: options.id || '' })
+        that.setData({ id: options && options.id || '' })
         //验证规则函数
         that.initValidate();
         // 查询其他信息

+ 6 - 6
pagesMatch/matchAdmin/match/list.js

@@ -3,30 +3,30 @@ const app = getApp();
 Page({
     data: {
         frameStyle: { useTop: true, name: '比赛信息', leftArrow: true, useBar: false },
+        // 状态列表
+        statusList: [],
+        // 类别列表
+        typeList: [],
         list: [],
         total: 0,
         page: 0,
         skip: 0,
         limit: 5,
-        // 状态列表
-        statusList: [],
-        // 类别列表
-        typeList: []
     },
     // 返回
     back: function () { wx.navigateBack({ delta: 1 }) },
     // 添加
     toCommon: function (e) {
         const that = this;
-        that.setData({ skip: 0, page: 0, list: [] })
         const { route } = e.currentTarget.dataset;
+        that.setData({ skip: 0, page: 0, list: [] })
         if (route) wx.navigateTo({ url: `/pagesMatch/matchAdmin/${route}` });
     },
     // 修改
     toEdit: function (e) {
         const that = this;
-        that.setData({ skip: 0, page: 0, list: [] })
         let { item } = e.currentTarget.dataset;
+        that.setData({ skip: 0, page: 0, list: [] })
         wx.navigateTo({ url: `/pagesMatch/matchAdmin/match/add?id=${item._id}` })
     },
     // 删除

+ 7 - 6
pagesMatch/matchAdmin/profit/list.less

@@ -6,12 +6,13 @@
 
     .one {
         display: flex;
-        flex-direction: row;
+        flex-direction: column;
+        width: 96vw;
         padding: 2vw;
         border-bottom: 1px solid var(--f1Color);
 
         .one_1 {
-            flex-grow: 1;
+            margin: 0 0 2vw 0;
 
             input {
                 padding: 1vw 0 2vw 2vw;
@@ -21,14 +22,14 @@
         }
 
         .one_2 {
-            width: 25vw;
             display: flex;
+            flex-direction: row;
+            justify-content: space-around;
 
             button {
-                width: 25vw;
-                padding: 1vw;
+                width: 100%;
+                padding: 2vw;
                 font-size: var(--font14Size);
-                margin: 0 1vw;
             }
         }
     }

+ 5 - 3
pagesMatch/matchAdmin/profit/list.wxml

@@ -5,9 +5,11 @@
                 <input type="text" placeholder="请输入关键词" />
             </view>
             <view class="one_2">
-                <picker mode="selector" bindchange="matchChange" name="id" value="{{match.id}}" range="{{matchList}}" range-key="name">
-                    <button type="primary" size="mini" class="textOver">{{match.name||'选择赛事'}}</button>
-                </picker>
+                <view class="one_2_1">
+                    <picker mode="selector" bindchange="matchChange" name="id" value="{{match.id}}" range="{{matchList}}" range-key="name">
+                        <button type="primary" class="textOver">{{match.name||'选择赛事'}}</button>
+                    </picker>
+                </view>
             </view>
         </view>
         <view class="two">

+ 7 - 6
pagesMatch/matchAdmin/profit/list.wxss

@@ -5,12 +5,13 @@
 }
 .main .one {
   display: flex;
-  flex-direction: row;
+  flex-direction: column;
+  width: 96vw;
   padding: 2vw;
   border-bottom: 1px solid var(--f1Color);
 }
 .main .one .one_1 {
-  flex-grow: 1;
+  margin: 0 0 2vw 0;
 }
 .main .one .one_1 input {
   padding: 1vw 0 2vw 2vw;
@@ -18,14 +19,14 @@
   border-radius: 5px;
 }
 .main .one .one_2 {
-  width: 25vw;
   display: flex;
+  flex-direction: row;
+  justify-content: space-around;
 }
 .main .one .one_2 button {
-  width: 25vw;
-  padding: 1vw;
+  width: 100%;
+  padding: 2vw;
   font-size: var(--font14Size);
-  margin: 0 1vw;
 }
 .main .two {
   position: relative;