Browse Source

产品中心样式优化

gzb
guozhongbo 1 year ago
parent
commit
82b6128580
4 changed files with 15 additions and 124 deletions
  1. 3
    8
      css/about.css
  2. 4
    4
      css/product.css
  3. 3
    94
      js/trial.js
  4. 5
    18
      sections/about.html

+ 3
- 8
css/about.css View File

130
 }
130
 }
131
 .area_fs {
131
 .area_fs {
132
   width: 2.8rem;
132
   width: 2.8rem;
133
-  height: 3rem;
134
   background-color: white;
133
   background-color: white;
135
   color: #333333;
134
   color: #333333;
136
   text-align: center;
135
   text-align: center;
151
 .area_fs div {
150
 .area_fs div {
152
   font-size: 0.18rem;
151
   font-size: 0.18rem;
153
   line-height: 0.5rem;
152
   line-height: 0.5rem;
154
-}
155
-.area_fs p {
156
-  font-size: 0.14rem;
157
-  line-height: 0.24rem;
158
-  margin-top: 0;
153
+  margin-bottom: 0.4rem;
159
 }
154
 }
160
 .develop_container {
155
 .develop_container {
161
   height: 1.6rem;
156
   height: 1.6rem;
194
 .rounds {
189
 .rounds {
195
   width: 100%;
190
   width: 100%;
196
   position: absolute;
191
   position: absolute;
197
-  top: 30%;
192
+  top: 50%;
198
   left: 0;
193
   left: 0;
199
-  transform: translate(0, -50%);
194
+  transform: translate(0,-82%);
200
   white-space: nowrap;
195
   white-space: nowrap;
201
 }
196
 }
202
 .round_q {
197
 .round_q {

+ 4
- 4
css/product.css View File

60
   justify-content: space-between;
60
   justify-content: space-between;
61
 }
61
 }
62
 .area_item{
62
 .area_item{
63
-  height: 3rem;
64
   border-radius: 0.1rem;
63
   border-radius: 0.1rem;
65
   background: #fefeffff;
64
   background: #fefeffff;
66
   border: 1px solid #f1f4fc;
65
   border: 1px solid #f1f4fc;
68
   box-sizing: border-box;
67
   box-sizing: border-box;
69
   background-color: #fefeff;
68
   background-color: #fefeff;
70
   text-align: center;
69
   text-align: center;
70
+  cursor: pointer;
71
 }
71
 }
72
 .area_item img{
72
 .area_item img{
73
   width: 0.56rem;
73
   width: 0.56rem;
157
 }
157
 }
158
 .s2{
158
 .s2{
159
   top:2.4rem;
159
   top:2.4rem;
160
-  right: 1rem;
160
+  right: 0.8rem;
161
 }
161
 }
162
 .s3 {
162
 .s3 {
163
   top: 4rem;
163
   top: 4rem;
168
 
168
 
169
 .s5 {
169
 .s5 {
170
   top: 2.4rem;
170
   top: 2.4rem;
171
-  left: 1rem;
171
+  left: 0.8rem;
172
 }
172
 }
173
 
173
 
174
 .s6 {
174
 .s6 {
291
   margin-left: 0.1rem;
291
   margin-left: 0.1rem;
292
 }
292
 }
293
 .area_top img {
293
 .area_top img {
294
-  width: 5rem;
294
+  width: 6rem;
295
   height: 5rem;
295
   height: 5rem;
296
   margin: 0 0.6rem;
296
   margin: 0 0.6rem;
297
 }
297
 }

+ 3
- 94
js/trial.js View File

31
     var filter =
31
     var filter =
32
       /^[\w\-\.]+@[a-z0-9]+(\-[a-z0-9]+)?(\.[a-z0-9]+(\-[a-z0-9]+)?)*\.[a-z]{2,4}$/i;
32
       /^[\w\-\.]+@[a-z0-9]+(\-[a-z0-9]+)?(\.[a-z0-9]+(\-[a-z0-9]+)?)*\.[a-z]{2,4}$/i;
33
     let blnTest = filter.test(mailbox);
33
     let blnTest = filter.test(mailbox);
34
-    if (!blnTest) {
34
+    console.log(mailbox)
35
+    if (mailbox && !blnTest) {
35
       $(".err_mailbox").show();
36
       $(".err_mailbox").show();
36
     }
37
     }
37
   });
38
   });
43
     var filter =
44
     var filter =
44
       /^[\w\-\.]+@[a-z0-9]+(\-[a-z0-9]+)?(\.[a-z0-9]+(\-[a-z0-9]+)?)*\.[a-z]{2,4}$/i;
45
       /^[\w\-\.]+@[a-z0-9]+(\-[a-z0-9]+)?(\.[a-z0-9]+(\-[a-z0-9]+)?)*\.[a-z]{2,4}$/i;
45
     let blnTest = filter.test(mailbox);
46
     let blnTest = filter.test(mailbox);
46
-    if (!blnTest) {
47
-      $(".err_mailbox").show();
48
-    } else {
49
-      $(".err_mailbox").hide();
50
-    }
51
-  });
52
-  //提交
53
-  var Loading = false;
54
-
55
-  $(".btn").click(() => {
56
-    if (Loading) {
57
-      return;
58
-    }
59
-    let name = $("#account").val();
60
-    if (!name) {
61
-      $(".err_account").show();
62
-      return;
63
-    }
64
-    let phone = $("#phone").val();
65
-    if (!phone) {
66
-      $(".err_phone").show();
67
-      return;
68
-    }
69
-    var data = {
70
-      account: $("#account").val(),
71
-      phone: $("#phone").val(),
72
-      mailbox: $("#mailbox").val(),
73
-      commcomm: $("#comm").val()
74
-    };
75
-    Loading = true;
76
-    //7.1.2 申请试用--添加
77
-    $.ajax({
78
-      type: "POST",
79
-      url: $.baseUrl + "fc/add",
80
-      dataType: "json",
81
-      async: false,
82
-      data: JSON.stringify(data),
83
-      contentType: "application/json; charset=utf-8",
84
-      success: function (data) {
85
-        Loading = false;
86
-        if (data.code === 0) {
87
-          alert("申请成功");
88
-        } else {
89
-          alert(data.msg);
90
-        }
91
-      }
92
-    });
93
-  });
94
-  $(".header_root").load("./comm/header.html");
95
-  $(".footer_root").load("./comm/footer.html");
96
-  $(".err_account").hide();
97
-  $(".err_phone").hide();
98
-  $(".err_mailbox").hide();
99
-  //姓名
100
-  $("#account").blur(() => {
101
-    let name = $("#account").val();
102
-    if (!name) {
103
-      $(".err_account").show();
104
-    }
105
-  });
106
-  $("#account").focus(() => {
107
-    $(".err_account").hide();
108
-  });
109
-  //联系电话
110
-  $("#phone").blur(() => {
111
-    let phone = $("#phone").val();
112
-    if (!phone) {
113
-      $(".err_phone").show();
114
-    }
115
-  });
116
-  $("#phone").focus(() => {
117
-    $(".err_phone").hide();
118
-  });
119
-
120
-  //邮箱
121
-  $("#mailbox").blur(() => {
122
-    let mailbox = $("#mailbox").val();
123
-    var filter =
124
-      /^[\w\-\.]+@[a-z0-9]+(\-[a-z0-9]+)?(\.[a-z0-9]+(\-[a-z0-9]+)?)*\.[a-z]{2,4}$/i;
125
-    let blnTest = filter.test(mailbox);
126
-    if (!blnTest) {
127
-      $(".err_mailbox").show();
128
-    }
129
-  });
130
-  $("#mailbox").focus(() => {
131
-    $(".err_mailbox").hide();
132
-  });
133
-  $("#mailbox").bind("input propertychange change", function (event) {
134
-    let mailbox = $("#mailbox").val();
135
-    var filter =
136
-      /^[\w\-\.]+@[a-z0-9]+(\-[a-z0-9]+)?(\.[a-z0-9]+(\-[a-z0-9]+)?)*\.[a-z]{2,4}$/i;
137
-    let blnTest = filter.test(mailbox);
138
-    if (!blnTest) {
47
+    if (mailbox && !blnTest) {
139
       $(".err_mailbox").show();
48
       $(".err_mailbox").show();
140
     } else {
49
     } else {
141
       $(".err_mailbox").hide();
50
       $(".err_mailbox").hide();

+ 5
- 18
sections/about.html View File

110
             <div class="area_fs">
110
             <div class="area_fs">
111
               <img src="../img/about/icon1.png" />
111
               <img src="../img/about/icon1.png" />
112
               <div>为教育服务</div>
112
               <div>为教育服务</div>
113
-              <p>技术为教育服务,教育为发展服务</p>
114
             </div>
113
             </div>
115
             <div class="area_fs">
114
             <div class="area_fs">
116
               <img src="../img/about/icon2.png" />
115
               <img src="../img/about/icon2.png" />
117
               <div>为师生服务</div>
116
               <div>为师生服务</div>
118
-              <p>
119
-                通过大学习、深调研、抓落实,聚焦
120
-                痛点、前移服务、提质增效,将一件 件服务师生的具体事项落到实处
121
-              </p>
122
             </div>
117
             </div>
123
             <div class="area_fs">
118
             <div class="area_fs">
124
               <img src="../img/about/icon3.png" />
119
               <img src="../img/about/icon3.png" />
125
               <div>为成长助力</div>
120
               <div>为成长助力</div>
126
-              <p>
127
-                通过大学习、深调研、抓落实,聚焦
128
-                痛点、前移服务、提质增效,将一件 件服务师生的具体事项落到实处
129
-              </p>
130
             </div>
121
             </div>
131
             <div class="area_fs">
122
             <div class="area_fs">
132
               <img src="../img/about/icon4.png" />
123
               <img src="../img/about/icon4.png" />
133
               <div>为梦想拼搏</div>
124
               <div>为梦想拼搏</div>
134
-              <p>
135
-                通过大学习、深调研、抓落实,聚焦
136
-                痛点、前移服务、提质增效,将一件 件服务师生的具体事项落到实处
137
-              </p>
138
             </div>
125
             </div>
139
           </div>
126
           </div>
140
           <div class="area_title" style="margin: 0.5rem 0">
127
           <div class="area_title" style="margin: 0.5rem 0">
141
             我们始终秉承的愿景
128
             我们始终秉承的愿景
142
           </div>
129
           </div>
143
-          <div class="area_four bot_fs">
144
-            <div class="area_fs" style="height: 2rem">
130
+          <div class="area_four">
131
+            <div class="area_fs">
145
               <img src="../img/about/icon5.png" />
132
               <img src="../img/about/icon5.png" />
146
               <div>燃星星之火</div>
133
               <div>燃星星之火</div>
147
             </div>
134
             </div>
148
-            <div class="area_fs" style="height: 2rem">
135
+            <div class="area_fs">
149
               <img src="../img/about/icon6.png" />
136
               <img src="../img/about/icon6.png" />
150
               <div>呈燎原之势</div>
137
               <div>呈燎原之势</div>
151
             </div>
138
             </div>
152
-            <div class="area_fs" style="height: 2rem">
139
+            <div class="area_fs">
153
               <img src="../img/about/icon7.png" />
140
               <img src="../img/about/icon7.png" />
154
               <div>汇涓涓细流</div>
141
               <div>汇涓涓细流</div>
155
             </div>
142
             </div>
156
-            <div class="area_fs" style="height: 2rem">
143
+            <div class="area_fs">
157
               <img src="../img/about/icon8.png" />
144
               <img src="../img/about/icon8.png" />
158
               <div>成汪洋大海</div>
145
               <div>成汪洋大海</div>
159
             </div>
146
             </div>

Loading…
Cancel
Save