guozhongbo 1 год назад
Родитель
Сommit
0864abca74
32 измененных файлов: 641 добавлений и 154 удалений
  1. 6
    3
      css/about.css
  2. 95
    18
      css/product.css
  3. 19
    12
      css/service.css
  4. 133
    0
      css/trial.css
  5. Двоичные данные
      img/about/service.png
  6. Двоичные данные
      img/about/submit.png
  7. Двоичные данные
      img/about/trial.png
  8. Двоичные данные
      img/about/箭头@2x.png
  9. 0
    0
      img/product/mtblue.png
  10. 0
    0
      img/product/mtgrey.png
  11. Двоичные данные
      img/product/mtznh.png
  12. 0
    0
      img/product/sjblue.png
  13. Двоичные данные
      img/product/sjfxq.png
  14. 0
    0
      img/product/sjgrey.png
  15. 0
    0
      img/product/ydblue.png
  16. 0
    0
      img/product/ydgrey.png
  17. Двоичные данные
      img/product/ydsss.png
  18. 0
    0
      img/product/yyblue.png
  19. 0
    0
      img/product/yygrey.png
  20. Двоичные данные
      img/product/yyxlg.png
  21. 0
    0
      img/product/zdblue.png
  22. 0
    0
      img/product/zdgrey.png
  23. Двоичные данные
      img/product/zdqss.png
  24. 7
    19
      js/about.js
  25. 77
    11
      js/product.js
  26. 58
    0
      js/service.js
  27. 90
    0
      js/trial.js
  28. 8
    20
      sections/about.html
  29. 65
    24
      sections/product.html
  30. 12
    44
      sections/service.html
  31. 69
    1
      sections/trial.html
  32. 2
    2
      utils/index.js

+ 6
- 3
css/about.css Просмотреть файл

@@ -128,7 +128,7 @@
128 128
 }
129 129
 .area_fs {
130 130
   width: 2.8rem;
131
-  height: 2.8rem;
131
+  height: 3rem;
132 132
   background-color: white;
133 133
   color: #333333;
134 134
   text-align: center;
@@ -138,7 +138,7 @@
138 138
 .area_fs img {
139 139
   width: 0.9rem;
140 140
   height: 0.8rem;
141
-  margin: 0 auto 0;
141
+  margin: 0.4rem auto 0.2rem;
142 142
 }
143 143
 .area_fs div {
144 144
   font-size: 0.18rem;
@@ -186,7 +186,7 @@
186 186
 .rounds {
187 187
   width: 100%;
188 188
   position: absolute;
189
-  top: 25%;
189
+  top: 30%;
190 190
   left: 0;
191 191
   transform: translate(0, -50%);
192 192
   white-space: nowrap;
@@ -258,4 +258,7 @@
258 258
 }
259 259
 .dev_item span{
260 260
   color: #016cff;
261
+}
262
+.bot_fs img{
263
+  margin-bottom: 0;
261 264
 }

+ 95
- 18
css/product.css Просмотреть файл

@@ -28,7 +28,6 @@
28 28
 }
29 29
 .piece {
30 30
   width: 100%;
31
-  /* height: 8rem; */
32 31
 }
33 32
 .piece_color{
34 33
   background-color: #f5f6f9ff;
@@ -98,18 +97,6 @@
98 97
 .four {
99 98
   width: calc(25% - 0.2rem);
100 99
 }
101
-.exam_lbt{
102
-  display: flex;
103
-}
104
-.exam_lbt .lbt_left{
105
-  width: 30%;
106
-}
107
-.lbt_left div{
108
-  font-size: .2rem;
109
-}
110
-.exam_lbt .lbt_right {
111
-  width: 70%;
112
-}
113 100
 .school_flex{
114 101
   display: flex;
115 102
   margin-top: 1rem;
@@ -122,23 +109,113 @@
122 109
 .school{
123 110
   width: 4rem;
124 111
   text-align: right;
112
+  position: relative;
125 113
 }
126 114
 .school_item{
127 115
   width: 2.4rem;
128
-  height: 0.47rem;
116
+  height: 0.4rem;
129 117
   background-color: white;
130 118
   border-radius: 0.04rem;
131 119
   box-shadow: 0 0 0.12rem #0000001a;
132 120
   display: flex;
133 121
   align-items: center;
134 122
   flex-direction: row-reverse;
123
+  position: absolute;
124
+  right: 0.5rem;
135 125
 }
136
-.school_item span{
126
+.school_itemr {
127
+  width: 2.4rem;
128
+  height: 0.4rem;
129
+  background-color: white;
130
+  border-radius: 0.04rem;
131
+  box-shadow: 0 0 0.12rem #0000001a;
132
+  display: flex;
133
+  align-items: center;
134
+  position: absolute;
135
+  left: 0.5rem;
136
+}
137
+.school span{
137 138
   color: #2d8cf0;
138 139
   font-size: 0.16rem;
139 140
   text-align: center;
140 141
 }
141
-.school_item img{
142
-  width: 0.58rem;
143
-    height: 0.58rem;
142
+.school img{
143
+  width: 0.54rem;
144
+    height: 0.54rem;
145
+    margin-right: -0.1rem;
146
+    margin-left: 0.2rem;
147
+}
148
+.area_item:hover{
149
+  box-shadow: 0 0 0.12rem #0000001a;
150
+  transform: translate(0, -4px);
151
+}
152
+.school_itemr img{
153
+  margin-left: -0.1rem;
154
+  margin-right: 0.2rem;
155
+}
156
+.s1{
157
+    top: 0.8rem;
158
+}
159
+.s2{
160
+  top:2.4rem;
161
+  right: 1rem;
162
+}
163
+.s3 {
164
+  top: 4rem;
165
+}
166
+.s4 {
167
+  top: 0.8rem;
168
+}
169
+
170
+.s5 {
171
+  top: 2.4rem;
172
+  left: 1rem;
173
+}
174
+
175
+.s6 {
176
+  top: 4rem;
177
+}
178
+
179
+.exam_lbt{
180
+  margin-top: 0.4rem;
181
+}
182
+.exam_container{
183
+  display: flex;
184
+}
185
+.exam_pagination{
186
+  display: inline-block;
187
+  width: 3rem;
188
+  margin-right: 0.2rem;
189
+}
190
+.exam_item {
191
+  height: 1rem;
192
+}
193
+ 
194
+.exam_item img{
195
+  width: 100%;
196
+  height: 1rem;
197
+}
198
+.exam_content {
199
+  width: 100%;
200
+  height: 5rem;
201
+  position: relative;
202
+  overflow: hidden;
203
+}
204
+.show_exam{
205
+  width: 100%;
206
+  height: 5rem;
207
+  position: absolute;
208
+  top: 0;
209
+  left: 0;
210
+}
211
+.exam_content img {
212
+  width: 9.8rem;
213
+  height: 5rem;
214
+  object-fit: cover;
215
+}
216
+.exam_slide{
217
+  position: relative;
218
+}
219
+.exam_slide span{
220
+  position: absolute;
144 221
 }

+ 19
- 12
css/service.css Просмотреть файл

@@ -1,3 +1,6 @@
1
+*{
2
+  margin: 0;
3
+}
1 4
 .ser_header {
2 5
   width: 100%;
3 6
   height: 3.9rem;
@@ -48,15 +51,17 @@
48 51
 .ser_conn{
49 52
   color: #999999;
50 53
     font-size: 0.16rem;
51
-    margin-top: 0.3rem;
54
+    margin: 0.1rem 0;
55
+    margin-right: 0.2rem;
52 56
 }
53 57
 .ser_school{
54 58
   display:flex;
59
+  flex-wrap: wrap;
55 60
   margin-top: 0.2rem;
56 61
 }
57 62
 .ser_sc_info{
58
-  width: 14.3%;
59
-  height: 2rem;
63
+  width: 1.85rem;
64
+  height: 1.9rem;
60 65
   text-align: center;
61 66
 }
62 67
 .ser_sc_info img{
@@ -69,17 +74,21 @@
69 74
   color: #333333;
70 75
   font-size: 0.16rem;
71 76
 }
72
-.ser_comm{
73
-  display: flex;
74
-  flex-wrap: wrap;
77
+.ser_comms{
78
+  margin: 0.3rem 0;
79
+  
80
+}
81
+.ser_lbt{
82
+/* white-space: nowrap; */
75 83
 }
76 84
 .ser_con {
77
-  width: calc(33% - 0.15rem);
85
+  display: inline-block;
86
+  width: 4.14rem;
78 87
   height: 3.4rem;
79 88
   background-color: #f5f7f9ff;
80 89
   padding: 0.2rem;
81 90
   box-sizing: border-box;
82
-  margin: 0 0.25rem 0.4rem 0;
91
+  /* margin-right: 0.3rem; */
83 92
 }
84 93
 .ser_con img{
85 94
   width: 100%;
@@ -90,7 +99,5 @@
90 99
   color: #333333;
91 100
     font-size: 0.16rem;
92 101
     text-align: center;
93
-}
94
-.ser_con:nth-child(3n) {
95
-   margin-right: 0;
96
- }
102
+    line-height: 0.4rem;
103
+}

+ 133
- 0
css/trial.css Просмотреть файл

@@ -0,0 +1,133 @@
1
+body{
2
+  background-color: white;
3
+}
4
+*{
5
+  margin: 0;
6
+}
7
+.tri_header {
8
+  width: 100%;
9
+  height: 3.9rem;
10
+  position: relative;
11
+}
12
+
13
+.tri_header img {
14
+  width: 100%;
15
+  height: 100%;
16
+}
17
+
18
+.suspension {
19
+  position: absolute;
20
+  left: 2rem;
21
+  top: 1.3rem;
22
+  color: white;
23
+}
24
+
25
+.suspension div {
26
+  font-weight: bold;
27
+  font-size: 0.4rem;
28
+  margin-bottom: 0.4rem;
29
+}
30
+
31
+.suspension p {
32
+  font-size: 0.16rem;
33
+}
34
+.tri_content{
35
+  width: 13rem;
36
+  margin: 1rem auto;
37
+}
38
+.ser_title {
39
+  color: #000000;
40
+  letter-spacing: 0.01rem;
41
+  font-size: 0.4rem;
42
+  font-weight: bold;
43
+  text-align: center;
44
+  margin-bottom: 0.2rem;
45
+}
46
+
47
+.ser_comm p {
48
+  width: 100%;
49
+  color: #999999;
50
+  font-size: 0.16rem;
51
+  text-align: center;
52
+  letter-spacing: 0.02rem;
53
+  line-height: 0.3rem;
54
+  margin: 0;
55
+}
56
+.submit_data{
57
+  margin-top: 0.4rem;
58
+}
59
+.submit_list{
60
+  display: flex;
61
+  justify-content: space-between;
62
+  margin-bottom: 0.4rem;
63
+}
64
+.submit_item{
65
+  width: 32%;
66
+  display: flex;
67
+  flex-direction:column-reverse;
68
+  position: relative;
69
+}
70
+.submit_item p{
71
+  color: #333333;
72
+  font-size: 0.16rem;
73
+  font-weight: bold;
74
+  line-height: 0.3rem;
75
+  margin-bottom: 0.1rem;
76
+}
77
+.submit_item input{
78
+  width: calc(100% - 0.2rem);
79
+  display: inline-block;
80
+  height: 0.36rem;
81
+    border: 1px solid #cccccc;
82
+  border-radius: 0.06rem;
83
+  outline-style: none; /*获取焦点时边框*/
84
+  padding-left: 0.1rem;
85
+}
86
+::-webkit-input-placeholder {
87
+  /* WebKit browsers,webkit内核浏览器 */
88
+  color: #ccc;
89
+}
90
+.submit_comm p{
91
+  color: #333333;
92
+    font-size: 0.16rem;
93
+    font-weight: bold;
94
+    line-height: 0.3rem;
95
+    margin-bottom: 0.1rem;
96
+}
97
+.submit_comm #comm{
98
+  width: calc(100% - 0.2rem);
99
+  outline-style: none;
100
+    /*获取焦点时边框*/
101
+    border: 1px solid #cccccc;
102
+    padding: 0.06rem;
103
+    font-family: Microsoft YaHei;
104
+}
105
+.subject_data{
106
+  padding: 0.6rem 0 1.6rem;
107
+}
108
+.btn{
109
+  width: 3.2rem;
110
+  height: 0.48rem;
111
+  margin: 0 auto;
112
+  background-color: #2d8cf0;
113
+  display: flex;
114
+  align-items: center;
115
+  justify-content: center;
116
+  cursor: pointer;
117
+}
118
+.btn span{
119
+  color: white;
120
+  font-size: 0.16rem;
121
+}
122
+.btn img{
123
+  margin-left: 0.2rem;
124
+  width: 0.2rem;
125
+  height: 0.06rem;
126
+}
127
+.submit_item .showerr{
128
+  position: absolute;
129
+  bottom: -0.4rem;
130
+  color: red !important;
131
+  font-size: 0.14rem;
132
+  /* visibility: hidden; */
133
+}

Двоичные данные
img/about/service.png Просмотреть файл


Двоичные данные
img/about/submit.png Просмотреть файл


Двоичные данные
img/about/trial.png Просмотреть файл


Двоичные данные
img/about/箭头@2x.png Просмотреть файл


img/product/lani-mingtizhinenghua@2x.png → img/product/mtblue.png Просмотреть файл


img/product/hui-mingtizhinenghua@2x.png → img/product/mtgrey.png Просмотреть файл


Двоичные данные
img/product/mtznh.png Просмотреть файл


img/product/lan-shujuqunxiquan@2x.png → img/product/sjblue.png Просмотреть файл


Двоичные данные
img/product/sjfxq.png Просмотреть файл


img/product/hui-shujufenxiquan@2x.png → img/product/sjgrey.png Просмотреть файл


img/product/lan-yidongsuishikao@2x.png → img/product/ydblue.png Просмотреть файл


img/product/hui-yidongsuishikao@2x.png → img/product/ydgrey.png Просмотреть файл


Двоичные данные
img/product/ydsss.png Просмотреть файл


img/product/lan-yiyongxiaolvgao@2x.png → img/product/yyblue.png Просмотреть файл


img/product/hui-yiyongxiaolvgao@2x.png → img/product/yygrey.png Просмотреть файл


Двоичные данные
img/product/yyxlg.png Просмотреть файл


img/product/lani-zidongqingsongsao@2x.png → img/product/zdblue.png Просмотреть файл


img/product/hui-zidongqingsongsao@2x.png → img/product/zdgrey.png Просмотреть файл


Двоичные данные
img/product/zdqss.png Просмотреть файл


+ 7
- 19
js/about.js Просмотреть файл

@@ -9,16 +9,15 @@ var datalist = [
9 9
 ];
10 10
 
11 11
 // 请求接口前缀 3.6.1 中文列表
12
-var Baseurl = "https://xhwebapitest.xhkjedu.com/dh/listc";
13 12
 $.ajax({
14 13
   type: "POST",
15
-  url: Baseurl,
14
+  url: $.baseUrl + "dh/listc",
16 15
   dataType: "json",
17 16
   async: false,
18 17
   contentType: "application/json; charset=utf-8",
19 18
   success: function (data) {
20 19
     if (data.code === 0) {
21
-      // datalist = data.obj;
20
+      datalist = data.obj;
22 21
     } else {
23 22
       alert(data.msg);
24 23
     }
@@ -29,7 +28,7 @@ $.each(datalist, (idx, item) => {
29 28
   html += `<div class="round_q" index = "${idx + 1}">
30 29
                     <div class="round_item">
31 30
                     <div class="round_i"></div>
32
-                    <div class="round_d">${item.time}</div>
31
+                    <div class="round_d">${item.dhyear || item.time}</div>
33 32
                   </div></div>`;
34 33
 });
35 34
 $(".rounds").width(datalist.length * 2.34 + "rem");
@@ -58,8 +57,7 @@ function showdata(index) {
58 57
   $(".develop_data").html(html);
59 58
 }
60 59
 //获取元素
61
-var divwidth = $(".round_q:first").width() - 54;
62
-var container = $(".showdata");
60
+var divwidth = $(".round_q:first").width();
63 61
 var list = $(".rounds");
64 62
 var buts = $(".round_q");
65 63
 var prev = $(".leftjt");
@@ -138,13 +136,6 @@ function showButton() {
138 136
     .removeClass("active");
139 137
 }
140 138
 
141
-$(".develop_container").bind("mouseenter", () => {
142
-  clearTimeout(timer);
143
-    timer=null;
144
-});
145
-$(".develop_container").bind("mouseleave", () => {
146
-  play();
147
-});
148 139
 // 鼠标离开图片区域时,轮播继续
149 140
 function play() {
150 141
   if (datalist.length <= 5) {
@@ -160,7 +151,7 @@ function play() {
160 151
 function stop() {
161 152
   if (timer) {
162 153
     clearTimeout(timer);
163
-    timer=null;
154
+    timer = null;
164 155
   }
165 156
 }
166 157
 
@@ -208,8 +199,6 @@ prev.bind("click", function () {
208 199
   animate(divwidth);
209 200
   showdata(index - 1);
210 201
   showButton();
211
-
212
- 
213 202
 });
214 203
 
215 204
 // 小圆点点击事件
@@ -227,14 +216,13 @@ buts.each(function () {
227 216
     var offset = (0 - divwidth) * (myIndex - index);
228 217
     index = myIndex;
229 218
     animates(offset);
230
-    // list.animate({ left: -360 });
231
-    
219
+
232 220
     showdata(index - 1);
233 221
     showButton();
234 222
     stop();
235 223
   });
236 224
 });
237 225
 showdata(0);
238
-container.hover(stop, play);
226
+$(".develop_container").hover(stop, play);
239 227
 
240 228
 play();

+ 77
- 11
js/product.js Просмотреть файл

@@ -1,11 +1,77 @@
1
-var mySwiper = new Swiper ('.swiper-container', {
2
-           slidesPerView: 1,
3
-        spaceBetween: 30,
4
-        pagination: ".swiper-pagination",
5
-        nextButton: ".swiper-button-next",
6
-        prevButton: ".swiper-button-prev",
7
-        paginationClickable: true,
8
-        autoplay: 3000,
9
-        loop: true,
10
-})       
11
-        console.log(2);
1
+//获取元素
2
+var divheight = $(".show_exam:first").height();
3
+var container = $(".exam_container");
4
+var list = $(".show_exam");
5
+var buts = $(".exam_item");
6
+var index = 1; //存放当前显示的图片的下标
7
+var imgnum = 3; // 图片数量
8
+var len = 1; //显示数量
9
+var interval = 5000; //位移时间间隔
10
+var timer;
11
+
12
+function animate(offset) {
13
+  var top = parseInt(list.css("top")) + offset;
14
+  console.log(list.css("top"));
15
+  var absnum = Math.abs(offset);
16
+  console.log(index, top, offset);
17
+  // 边界判断
18
+  if (offset > 0) {
19
+    offset = "+=" + offset;
20
+  } else {
21
+    offset = "-=" + Math.abs(offset);
22
+  }
23
+  list.animate({ top: offset }, 300, function () {
24
+    if (top > -200) {
25
+    }
26
+  });
27
+}
28
+//亮起小圆点
29
+function showButton() {
30
+  console.log("亮起小圆点", index);
31
+  //当前图片的小圆点亮起,其他小圆点不亮
32
+  buts
33
+    .eq(index - 1)
34
+    .addClass("active")
35
+    .siblings()
36
+    .removeClass("active");
37
+}
38
+console.log(divheight);
39
+// 鼠标离开图片区域时,轮播继续
40
+function play() {
41
+  console.log("鼠标离开");
42
+  timer = setTimeout(function () {
43
+    animate(divheight);
44
+    play();
45
+  }, interval);
46
+}
47
+
48
+//鼠标进入图片区域时,停止轮播
49
+function stop() {
50
+  console.log("鼠标进入");
51
+  if (timer) {
52
+    clearTimeout(timer);
53
+    timer = null;
54
+  }
55
+}
56
+// 点击事件
57
+buts.each(function () {
58
+  $(this).bind("click", function () {
59
+    // 判断当前是否在进行动画
60
+    if (list.is(":animated") || $(this).attr("class") == "on") {
61
+      return;
62
+    }
63
+    var myIndex = parseInt($(this).attr("index"));
64
+    if (myIndex == index) {
65
+      return;
66
+    }
67
+    //计算偏移量
68
+    var offset = (0 - divwidth) * (myIndex - index);
69
+    index = myIndex;
70
+    animates(offset);
71
+    showButton();
72
+    stop();
73
+  });
74
+});
75
+container.hover(stop, play);
76
+
77
+play();

+ 58
- 0
js/service.js Просмотреть файл

@@ -0,0 +1,58 @@
1
+// 6.5.1 中文列表 学校图标
2
+var school_logo = [],
3
+  html_logo = "",
4
+  html_data = "";
5
+school_data = [];
6
+$.ajax({
7
+  type: "POST",
8
+  url: $.baseUrl + "/sl/listc",
9
+  dataType: "json",
10
+  async: false,
11
+  contentType: "application/json; charset=utf-8",
12
+  success: function (data) {
13
+    if (data.code === 0) {
14
+      school_logo = data.obj;
15
+      $.each(school_logo, (idx, item) => {
16
+        html_logo += ` <div class="ser_sc_info">
17
+          <img src="${$.showImageUrl}${item.schoollogo}" />
18
+          <div>${item.schoolname}</div>
19
+        </div>`;
20
+      });
21
+      $(".ser_school").html(html_logo);
22
+    } else {
23
+      alert(data.msg);
24
+    }
25
+  }
26
+});
27
+//5.5.1 中文列表  服务数据
28
+$.ajax({
29
+  type: "POST",
30
+  url: $.baseUrl + "/sc/listc",
31
+  dataType: "json",
32
+  data: JSON.stringify({
33
+    size: 30
34
+  }),
35
+  async: false,
36
+  contentType: "application/json; charset=utf-8",
37
+  success: function (data) {
38
+    if (data.code === 0) {
39
+      school_data = data.obj;
40
+      school_data = school_data.concat(data.obj);
41
+      $.each(school_data, (idx, item) => {
42
+        html_data += ` <div class="swiper-slide ser_con">
43
+          <img src="${$.showImageUrl}${item.scpic}" />
44
+          <div>${item.scname}</div>
45
+        </div>`;
46
+      });
47
+      $(".swiper-wrapper").html(html_data);
48
+    } else {
49
+      alert(data.msg);
50
+    }
51
+  }
52
+});
53
+var serSwiper = new Swiper(".ser_swiper_container.swiper-container", {
54
+  slidesPerView: 3,
55
+  centeredSlides: true,
56
+  loop: true,
57
+  autoplay: 3000
58
+});

+ 90
- 0
js/trial.js Просмотреть файл

@@ -0,0 +1,90 @@
1
+$(".err_account").hide();
2
+$(".err_phone").hide();
3
+$(".err_mailbox").hide();
4
+//姓名
5
+$("#account").blur(() => {
6
+  let name = $("#account").val();
7
+  if (!name) {
8
+    $(".err_account").show();
9
+  }
10
+});
11
+$("#account").focus(() => {
12
+  $(".err_account").hide();
13
+});
14
+//联系电话
15
+$("#phone").blur(() => {
16
+  let phone = $("#phone").val();
17
+  if (!phone) {
18
+    $(".err_phone").show();
19
+  }
20
+});
21
+$("#phone").focus(() => {
22
+  $(".err_phone").hide();
23
+});
24
+
25
+//邮箱
26
+$("#mailbox").blur(() => {
27
+  let mailbox = $("#mailbox").val();
28
+  var filter =
29
+    /^[\w\-\.]+@[a-z0-9]+(\-[a-z0-9]+)?(\.[a-z0-9]+(\-[a-z0-9]+)?)*\.[a-z]{2,4}$/i;
30
+  let blnTest = filter.test(mailbox);
31
+  if (!blnTest) {
32
+    $(".err_mailbox").show();
33
+  }
34
+});
35
+$("#mailbox").focus(() => {
36
+  $(".err_mailbox").hide();
37
+});
38
+$("#mailbox").bind("input propertychange change", function (event) {
39
+  let mailbox = $("#mailbox").val();
40
+  var filter =
41
+    /^[\w\-\.]+@[a-z0-9]+(\-[a-z0-9]+)?(\.[a-z0-9]+(\-[a-z0-9]+)?)*\.[a-z]{2,4}$/i;
42
+  let blnTest = filter.test(mailbox);
43
+  if (!blnTest) {
44
+    $(".err_mailbox").show();
45
+  } else {
46
+    $(".err_mailbox").hide();
47
+  }
48
+});
49
+//提交
50
+var Loading = false;
51
+
52
+$(".btn").click(() => {
53
+  if (Loading) {
54
+    return;
55
+  }
56
+  let name = $("#account").val();
57
+  if (!name) {
58
+    $(".err_account").show();
59
+    return;
60
+  }
61
+  let phone = $("#phone").val();
62
+  if (!phone) {
63
+    $(".err_phone").show();
64
+    return;
65
+  }
66
+  var data = {
67
+    account: $("#account").val(),
68
+    phone: $("#phone").val(),
69
+    mailbox: $("#mailbox").val(),
70
+    commcomm: $("#comm").val()
71
+  };
72
+  Loading = true;
73
+  //7.1.2 申请试用--添加
74
+  $.ajax({
75
+    type: "POST",
76
+    url: $.baseUrl + "fc/add",
77
+    dataType: "json",
78
+    async: false,
79
+    data: JSON.stringify(data),
80
+    contentType: "application/json; charset=utf-8",
81
+    success: function (data) {
82
+      Loading = false;
83
+      if (data.code === 0) {
84
+        alert("申请成功");
85
+      } else {
86
+        alert(data.msg);
87
+      }
88
+    }
89
+  });
90
+});

+ 8
- 20
sections/about.html Просмотреть файл

@@ -138,7 +138,7 @@
138 138
           <div class="area_title" style="margin: 0.5rem 0">
139 139
             我们始终秉承的愿景
140 140
           </div>
141
-          <div class="area_four">
141
+          <div class="area_four bot_fs">
142 142
             <div class="area_fs" style="height: 2rem">
143 143
               <img src="../img/about/icon5.png" />
144 144
               <div>燃星星之火</div>
@@ -178,29 +178,16 @@
178 178
           </div>
179 179
           <div class="develop_data">
180 180
             <div class="dev_list">
181
-              <div class="dev_item" title="">
182
-                <span>11</span> &nbsp;-&nbsp;
183
-                123e2323234萨队啊收到阿斯加皇帝啊啥的啊是的和i啊上帝啊啥的哈斯哈电视
184
-              </div>
185
-              <div class="dev_item">
186
-                <span>11</span> &nbsp;-&nbsp; 123e2323234
187
-              </div>
188
-              <div class="dev_item">
189
-                <span>11</span> &nbsp;-&nbsp; 123e2323234
190
-              </div>
191
-              <div class="dev_item">
192
-                <span>11</span> &nbsp;-&nbsp; 123e2323234
193
-              </div>
181
+              <div class="dev_item" title=""><span></span> &nbsp;-&nbsp;</div>
182
+              <div class="dev_item"><span></span> &nbsp;-&nbsp;</div>
183
+              <div class="dev_item"><span></span> &nbsp;-&nbsp;</div>
184
+              <div class="dev_item"><span></span> &nbsp;-&nbsp;</div>
194 185
             </div>
195 186
             <div class="dev_list">
196
-              <div class="dev_item">
197
-                <span>11</span> &nbsp;-&nbsp; 123423423423
198
-              </div>
187
+              <div class="dev_item"><span></span> &nbsp;-&nbsp;</div>
199 188
             </div>
200 189
             <div class="dev_list">
201
-              <div class="dev_item">
202
-                <span>11</span> &nbsp;-&nbsp; 123423423423
203
-              </div>
190
+              <div class="dev_item"><span></span> &nbsp;-&nbsp;</div>
204 191
             </div>
205 192
           </div>
206 193
         </div>
@@ -209,5 +196,6 @@
209 196
   </body>
210 197
   <script src="../librarys/jquery@1.12.4/jquery.min.js"></script>
211 198
   <script src="../librarys/swiper@3.4.2/swiper.jquery.min.js"></script>
199
+  <script src="../utils/index.js"></script>
212 200
   <script src="../js/about.js"></script>
213 201
 </html>

+ 65
- 24
sections/product.html Просмотреть файл

@@ -100,13 +100,34 @@
100 100
           </div>
101 101
           <div class="school_flex">
102 102
             <div class="school_left school">
103
-              <div class="school_item">
103
+              <div class="school_item s1">
104 104
                 <img src="../img/product/school1.png" />
105 105
                 <span>应用资源一体化</span>
106 106
               </div>
107
+              <div class="school_item s2">
108
+                <img src="../img/product/school2.png" />
109
+                <span>校园资源体系化</span>
110
+              </div>
111
+              <div class="school_item s3">
112
+                <img src="../img/product/school3.png" />
113
+                <span>智慧校园一站化</span>
114
+              </div>
107 115
             </div>
108 116
             <img class="school_img" src="../img/product/school0.png" />
109
-            <div class="school_right school"></div>
117
+            <div class="school_right school">
118
+              <div class="school_itemr s4">
119
+                <img src="../img/product/school4.png" />
120
+                <span>教育决策科学化</span>
121
+              </div>
122
+              <div class="school_itemr s5">
123
+                <img src="../img/product/school5.png" />
124
+                <span>精准教学个性化</span>
125
+              </div>
126
+              <div class="school_itemr s6">
127
+                <img src="../img/product/school6.png" />
128
+                <span>教学管理数据化</span>
129
+              </div>
130
+            </div>
110 131
           </div>
111 132
         </div>
112 133
       </div>
@@ -123,33 +144,53 @@
123 144
           </div>
124 145
           <!-- 轮播图 -->
125 146
           <div class="exam_lbt">
126
-            <div class="lbt_left">
127
-              <div class="lbt_title">命题智能化</div>
128
-              <div class="lbt_title">命题智能化</div>
129
-              <div class="lbt_title">命题智能化</div>
130
-              <div class="lbt_title">命题智能化</div>
131
-              <div class="lbt_title">命题智能化</div>
147
+            <div class="exam_container">
148
+              <div class="exam_pagination">
149
+                <div data-index="1" class="exam_item">
150
+                  <img src="../img/product/mtblue.png" />
151
+                </div>
152
+                <div data-index="2" class="exam_item">
153
+                  <img src="../img/product/zdblue.png" />
154
+                </div>
155
+                <div data-index="3" class="exam_item">
156
+                  <img src="../img/product/ydblue.png" />
157
+                </div>
158
+                <div data-index="4" class="exam_item">
159
+                  <img src="../img/product/yyblue.png" />
160
+                </div>
161
+                <div data-index="5" class="exam_item">
162
+                  <img src="../img/product/sjblue.png" />
163
+                </div>
164
+              </div>
165
+              <div class="exam_content">
166
+                <div class="show_exam">
167
+                  <div class="exam_slide">
168
+                    <span>1</span>
169
+                    <img src="../img/product/mtznh.png" />
170
+                  </div>
171
+                  <div class="exam_slide">
172
+                    <span>2</span>
173
+                    <img src="../img/product/zdqss.png" />
174
+                  </div>
175
+                  <div class="exam_slide">
176
+                    <span>3</span>
177
+                    <img src="../img/product/ydsss.png" />
178
+                  </div>
179
+                  <div class="exam_slide">
180
+                    <span>4</span>
181
+                    <img src="../img/product/yyxlg.png" />
182
+                  </div>
183
+                  <div class="exam_slide">
184
+                    <span>5</span>
185
+                    <img src="../img/product/sjfxq.png" />
186
+                  </div>
187
+                </div>
188
+              </div>
132 189
             </div>
133
-            <div class="lbt_right">img</div>
134 190
           </div>
135 191
         </div>
136 192
       </div>
137 193
     </div>
138
-
139
-    <!-- <div class="lbnt_container swiper-container">
140
-      <div class="swiper-wrapper">
141
-        <div class="swiper-slide"><img src="../img/WechatIMG200.jpeg" /></div>
142
-        <div class="swiper-slide"><img src="../img/WechatIMG201.jpeg" /></div>
143
-        <div class="swiper-slide"><img src="../img/WechatIMG202.jpeg" /></div>
144
-        <div class="swiper-slide"><img src="../img/WechatIMG205.jpeg" /></div>
145
-        <div class="swiper-slide"><img src="../img/WechatIMG206.jpeg" /></div>
146
-        <div class="swiper-slide"><img src="../img/WechatIMG207.jpeg" /></div>
147
-      </div>
148
-      <div class="swiper-pagination"></div>
149
-      <div class="swiper-button-prev"></div>
150
-      <div class="swiper-button-next"></div>
151
-      <div class="swiper-scrollbar"></div>
152
-    </div> -->
153 194
   </body>
154 195
   <script src="../librarys/jquery@1.12.4/jquery.min.js"></script>
155 196
   <script src="../librarys/swiper@3.4.2/swiper.jquery.min.js"></script>

+ 12
- 44
sections/service.html Просмотреть файл

@@ -4,6 +4,7 @@
4 4
     <meta charset="UTF-8" />
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <link rel="stylesheet" href="../librarys/swiper@3.4.2/swiper.min.css" />
7 8
     <link rel="stylesheet" href="../css/comm.css" />
8 9
     <link rel="stylesheet" href="../css/service.css" />
9 10
     <script src="../utils/rem.js"></script>
@@ -16,7 +17,7 @@
16 17
   </head>
17 18
   <body>
18 19
     <div class="ser_header">
19
-      <img src="../img/product.png" />
20
+      <img src="../img/about/service.png" />
20 21
       <div class="suspension">
21 22
         <div>服务案例</div>
22 23
         <p>云鸽最新资讯,让一切皆有可能</p>
@@ -27,52 +28,18 @@
27 28
       <div class="ser_comm">
28 29
         <p>提供智慧教学服务,提供高质量的同步课堂、互动课堂教学系统等方案</p>
29 30
       </div>
31
+      <div class="ser_swiper_container swiper-container">
32
+        <div class="swiper-wrapper ser_lbt">
33
+          <div class="swiper-slide ser_con">
34
+            <img src="" />
35
+            <div>管城外国语</div>
36
+          </div>
37
+        </div>
38
+      </div>
30 39
       <div class="ser_conn">部分合作学校(排名不分先后)</div>
31 40
       <div class="ser_school">
32 41
         <div class="ser_sc_info">
33
-          <img src="../img/product.png" />
34
-          <div>管城外国语</div>
35
-        </div>
36
-        <div class="ser_sc_info">
37
-          <img src="../img/product.png" />
38
-          <div>管城外国语</div>
39
-        </div>
40
-        <div class="ser_sc_info">
41
-          <img src="../img/product.png" />
42
-          <div>管城外国语</div>
43
-        </div>
44
-        <div class="ser_sc_info">
45
-          <img src="../img/product.png" />
46
-          <div>管城外国语</div>
47
-        </div>
48
-        <div class="ser_sc_info">
49
-          <img src="../img/product.png" />
50
-          <div>管城外国语</div>
51
-        </div>
52
-        <div class="ser_sc_info">
53
-          <img src="../img/product.png" />
54
-          <div>管城外国语</div>
55
-        </div>
56
-        <div class="ser_sc_info">
57
-          <img src="../img/product.png" />
58
-          <div>管城外国语</div>
59
-        </div>
60
-      </div>
61
-      <div class="ser_comm">
62
-        <div class="ser_con">
63
-          <img src="../img/product.png" />
64
-          <div>管城外国语</div>
65
-        </div>
66
-        <div class="ser_con">
67
-          <img src="../img/product.png" />
68
-          <div>管城外国语</div>
69
-        </div>
70
-        <div class="ser_con">
71
-          <img src="../img/product.png" />
72
-          <div>管城外国语</div>
73
-        </div>
74
-        <div class="ser_con">
75
-          <img src="../img/product.png" />
42
+          <img src="" />
76 43
           <div>管城外国语</div>
77 44
         </div>
78 45
       </div>
@@ -80,5 +47,6 @@
80 47
   </body>
81 48
   <script src="../librarys/jquery@1.12.4/jquery.min.js"></script>
82 49
   <script src="../librarys/swiper@3.4.2/swiper.jquery.min.js"></script>
50
+  <script src="../utils/index.js"></script>
83 51
   <script src="../js/service.js"></script>
84 52
 </html>

+ 69
- 1
sections/trial.html Просмотреть файл

@@ -4,9 +4,77 @@
4 4
     <meta charset="UTF-8" />
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <link rel="stylesheet" href="../css/comm.css" />
8
+    <link rel="stylesheet" href="../css/trial.css" />
9
+    <script src="../utils/rem.js"></script>
7 10
     <title>申请试用</title>
8 11
   </head>
9 12
   <body>
10
-    试用
13
+    <div class="tri_header">
14
+      <img src="../img/about/trial.png" />
15
+      <div class="suspension">
16
+        <div>申请试用</div>
17
+        <p>携手合作 真诚服务</p>
18
+      </div>
19
+    </div>
20
+    <div class="tri_content">
21
+      <div class="ser_title">欢迎留言咨询</div>
22
+      <div class="ser_comm">
23
+        <p>填写以下信息,我们会有专人第一时间与您联系,为您开辟专属试用通道</p>
24
+      </div>
25
+      <div class="submit_data">
26
+        <div class="submit_list">
27
+          <div class="submit_item">
28
+            <input
29
+              type="text"
30
+              maxlength="32"
31
+              id="account"
32
+              placeholder="请输入联系人"
33
+            />
34
+            <p>姓名</p>
35
+            <p class="err_account showerr">姓名不能为空</p>
36
+          </div>
37
+          <div class="submit_item">
38
+            <input
39
+              type="text"
40
+              maxlength="16"
41
+              id="phone"
42
+              placeholder="请输入联系电话"
43
+            />
44
+            <p>联系电话</p>
45
+            <p class="err_phone showerr">联系电话不能为空</p>
46
+          </div>
47
+          <div class="submit_item">
48
+            <input
49
+              type="text"
50
+              maxlength="64"
51
+              id="mailbox"
52
+              placeholder="请输入邮箱"
53
+            />
54
+            <p>邮箱</p>
55
+            <p class="err_mailbox showerr">请输入正确的邮箱地址!</p>
56
+          </div>
57
+        </div>
58
+        <div class="submit_comm">
59
+          <p>问题描述</p>
60
+          <textarea
61
+            type="text"
62
+            maxlength="512"
63
+            id="comm"
64
+            placeholder="请输入问题描述"
65
+            rows="6"
66
+          ></textarea>
67
+        </div>
68
+        <div class="subject_data">
69
+          <div class="btn">
70
+            <span>提交申请</span><img src="../img/about/submit.png" />
71
+          </div>
72
+        </div>
73
+      </div>
74
+    </div>
11 75
   </body>
76
+  <script src="../librarys/jquery@1.12.4/jquery.min.js"></script>
77
+  <script src="../librarys/swiper@3.4.2/swiper.jquery.min.js"></script>
78
+  <script src="../utils/index.js"></script>
79
+  <script src="../js/trial.js"></script>
12 80
 </html>

+ 2
- 2
utils/index.js Просмотреть файл

@@ -1,6 +1,6 @@
1 1
 jQuery.extend({
2 2
   baseUrl: "//xhwebapitest.xhkjedu.com/",
3
-  showImageUrl: "//schoolstatictest.xhkjedu.com/static/",
3
+  showImageUrl: "//xhwebstatictest.xhkjedu.com/",
4 4
   //毫秒时间转换为yyyy-MM-dd
5 5
   msToDateString: function (ms) {
6 6
     let date = new Date(ms);
@@ -16,7 +16,7 @@ jQuery.extend({
16 16
     return year + "-" + month + "-" + day;
17 17
   },
18 18
   // 读取url参数
19
-  getQueryVariable: function(variable) {
19
+  getQueryVariable: function (variable) {
20 20
     let query = window.location.search.substring(1);
21 21
     query = decodeURI(query);
22 22
     let vars = query.split("&");

Загрузка…
Отмена
Сохранить