guhongwei 2 years ago
parent
commit
77ba5435ed
4 changed files with 90 additions and 18 deletions
  1. 2 1
      app.json
  2. 29 8
      pages/superAdmin/school/add.less
  3. 49 1
      pages/superAdmin/school/add.wxml
  4. 10 8
      pages/superAdmin/school/add.wxss

+ 2 - 1
app.json

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

+ 29 - 8
pages/superAdmin/school/add.less

@@ -5,21 +5,42 @@
         .content {
         .content {
             display: flex;
             display: flex;
             flex-direction: row;
             flex-direction: row;
-            border-bottom: 1px dashed var(--f1Color);
-            padding: 2vw 0;
-            margin: 0 2vw 2vw 2vw;
+            padding: 2vw;
+            margin: 2vw 2vw 0 2vw;
+            background-color: #ff0000;
+
+            .label {
+                font-size: 16px;
+            }
 
 
             .value {
             .value {
-                flex-grow: 1;
-                color: var(--blackColor);
+                font-size: 16px;
+                width: 70vw;
 
 
-                textarea {
-                    position: static;
-                    width: 73vw;
+                .textarea {
+                    width: 100%;
                 }
                 }
             }
             }
         }
         }
 
 
+        // .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 {
         .btn {
             text-align: center;
             text-align: center;
             margin: 5vw 0 0 0;
             margin: 5vw 0 0 0;

+ 49 - 1
pages/superAdmin/school/add.wxml

@@ -3,6 +3,54 @@
         <view class="one">
         <view class="one">
             <form catchsubmit="onSubmit">
             <form catchsubmit="onSubmit">
                 <view class="content">
                 <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="value">
+                        <textarea class="textarea" type="text" maxlength="500" 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="value">
+                        <textarea class="textarea" type="text" maxlength="500" 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="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">
                     <view class="value">
                         <input name="name" value="{{form.name}}" auto-height placeholder="请输入机构名称" />
                         <input name="name" value="{{form.name}}" auto-height placeholder="请输入机构名称" />
@@ -61,7 +109,7 @@
                     <view class="value">
                     <view class="value">
                         <upload list="{{form.img_url}}" count="{{6}}" previewSize="{{25}}" bind:imgUpload="imgUpl" bind:imgDel="imgDel"></upload>
                         <upload list="{{form.img_url}}" count="{{6}}" previewSize="{{25}}" bind:imgUpload="imgUpl" bind:imgDel="imgDel"></upload>
                     </view>
                     </view>
-                </view>
+                </view> -->
                 <view class="btn">
                 <view class="btn">
                     <button type="primary" size="mini" formType="submit">提交保存</button>
                     <button type="primary" size="mini" formType="submit">提交保存</button>
                 </view>
                 </view>

+ 10 - 8
pages/superAdmin/school/add.wxss

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