guhongwei 2 éve
szülő
commit
85197013ad

+ 1 - 2
app.json

@@ -1,6 +1,5 @@
 {
     "pages": [
-        "pages/superAdmin/school/add",
         "pages/index/index",
         "pages/register/index",
         "pages/other/agree",
@@ -14,7 +13,7 @@
         "pages/superAdmin/suser/list",
         "pages/superAdmin/suser/add",
         "pages/superAdmin/school/list",
-  
+        "pages/superAdmin/school/add",
         "pages/superAdmin/coach/list",
         "pages/superAdmin/coach/add",
         "pages/superAdmin/student/list",

+ 3 - 21
pages/superAdmin/school/add.less

@@ -6,8 +6,7 @@
             display: flex;
             flex-direction: row;
             padding: 2vw;
-            margin: 2vw 2vw 0 2vw;
-            background-color: #ff0000;
+            border-bottom: 1px dashed var(--f1Color);
 
             .label {
                 font-size: 16px;
@@ -17,30 +16,13 @@
                 font-size: 16px;
                 width: 70vw;
 
-                .textarea {
+                textarea {
                     width: 100%;
+                    height: 120px;
                 }
             }
         }
 
-        // .content {
-        //     display: flex;
-        //     flex-direction: row;
-        //     border-bottom: 1px dashed var(--f1Color);
-        //     padding: 2vw 0;
-        //     margin: 0 2vw 2vw 2vw;
-
-        //     .value {
-        //         flex-grow: 1;
-        //         color: var(--blackColor);
-
-        //         textarea {
-        //             position: static;
-        //             width: 73vw;
-        //         }
-        //     }
-        // }
-
         .btn {
             text-align: center;
             margin: 5vw 0 0 0;

+ 14 - 62
pages/superAdmin/school/add.wxml

@@ -3,99 +3,51 @@
         <view class="one">
             <form catchsubmit="onSubmit">
                 <view class="content">
-                    <view class="label">
-                        机构名称:
-                    </view>
-                    <view class="value">
-                        <input type="text" placeholder="请输入关键词" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">
-                        机构名称:
-                    </view>
+                    <view class="label">机构名称:</view>
                     <view class="value">
-                        <textarea class="textarea" type="text" maxlength="500" placeholder="请输入关键词" />
+                        <textarea maxlength="100" name="name" value="{{form.name}}" placeholder="请输入机构名称" style="height: 50px;" />
                     </view>
                 </view>
                 <view class="content">
-                    <view class="label">
-                        机构名称:
-                    </view>
+                    <view class="label">联系方式:</view>
                     <view class="value">
-                        <textarea class="textarea" type="text" maxlength="500" placeholder="请输入关键词" />
+                        <input name="phone" value="{{form.phone}}" placeholder="请输入联系方式" />
                     </view>
                 </view>
                 <view class="content">
-                    <view class="label">
-                        机构名称:
-                    </view>
+                    <view class="label">教练人数:</view>
                     <view class="value">
-                        <textarea class="textarea" type="text" maxlength="500" placeholder="请输入关键词" />
+                        <input type="number" name="coach_num" value="{{form.coach_num}}" placeholder="请输入教练人数" />
                     </view>
                 </view>
                 <view class="content">
-                    <view class="label">
-                        机构名称:
-                    </view>
+                    <view class="label">学员人数:</view>
                     <view class="value">
-                        <textarea class="textarea" type="text" maxlength="500" placeholder="请输入关键词" />
+                        <input type="number" name="student_num" value="{{form.student_num}}" placeholder="请输入学员人数" />
                     </view>
                 </view>
                 <view class="content">
-                    <view class="label">
-                        机构名称:
-                    </view>
-                    <view class="value">
-                        <textarea class="textarea" type="text" maxlength="500" placeholder="请输入关键词" />
-                    </view>
-                </view>
-                <!-- <view class="content">
-                    <view class="label">机构名称:</view>
+                    <view class="label">网址:</view>
                     <view class="value">
-                        <input name="name" value="{{form.name}}" auto-height placeholder="请输入机构名称" />
+                        <input name="url" value="{{form.url}}" placeholder="请输入网址(http://)" />
                     </view>
                 </view>
                 <view class="content">
                     <view class="label">机构简介:</view>
                     <view class="value">
-                        <input name="brief" value="{{form.brief}}" auto-height placeholder="请输入机构简介" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">联系方式:</view>
-                    <view class="value">
-                        <input name="phone" value="{{form.phone}}" placeholder="请输入联系方式" />
+                        <textarea maxlength="500" name="brief" value="{{form.brief}}" placeholder="请输入机构简介" />
                     </view>
                 </view>
                 <view class="content">
                     <view class="label">训练地址:</view>
                     <view class="value">
-                        <input name="address" value="{{form.address}}" placeholder="请输入训练地址" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">教练人数:</view>
-                    <view class="value">
-                        <input type="number" name="coach_num" value="{{form.coach_num}}" placeholder="请输入教练人数" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">学员人数:</view>
-                    <view class="value">
-                        <input type="number" name="student_num" value="{{form.student_num}}" placeholder="请输入学员人数" />
+                        <textarea maxlength="500" name="address" value="{{form.address}}" placeholder="请输入训练地址" />
                     </view>
                 </view>
                 <view class="content">
                     <view class="label">过往荣誉:</view>
                     <view class="value">
-                        <input name="honor" value="{{form.honor}}" auto-height placeholder="请输入过往荣誉" />
-                    </view>
-                </view>
-                <view class="content">
-                    <view class="label">网址:</view>
-                    <view class="value">
-                        <input name="url" value="{{form.url}}" placeholder="请输入网址(http://)" />
+                        <textarea maxlength="500" name="honor" value="{{form.honor}}" placeholder="请输入过往荣誉" />
                     </view>
                 </view>
                 <view class="content">
@@ -109,7 +61,7 @@
                     <view class="value">
                         <upload list="{{form.img_url}}" count="{{6}}" previewSize="{{25}}" bind:imgUpload="imgUpl" bind:imgDel="imgDel"></upload>
                     </view>
-                </view> -->
+                </view>
                 <view class="btn">
                     <button type="primary" size="mini" formType="submit">提交保存</button>
                 </view>

+ 3 - 3
pages/superAdmin/school/add.wxss

@@ -5,8 +5,7 @@
   display: flex;
   flex-direction: row;
   padding: 2vw;
-  margin: 2vw 2vw 0 2vw;
-  background-color: #ff0000;
+  border-bottom: 1px dashed var(--f1Color);
 }
 .main .one .content .label {
   font-size: 16px;
@@ -15,8 +14,9 @@
   font-size: 16px;
   width: 70vw;
 }
-.main .one .content .value .textarea {
+.main .one .content .value textarea {
   width: 100%;
+  height: 120px;
 }
 .main .one .btn {
   text-align: center;