Browse Source

关于我们

gzb
guozhongbo 1 year ago
parent
commit
1484f993e2
3 changed files with 14 additions and 16 deletions
  1. 1
    1
      css/about.css
  2. 0
    0
      img/about/rightjt.png
  3. 13
    15
      js/about.js

+ 1
- 1
css/about.css View File

128
 }
128
 }
129
 .area_fs {
129
 .area_fs {
130
   width: 2.8rem;
130
   width: 2.8rem;
131
-  height: 3rem;
131
+  height: 2.8rem;
132
   background-color: white;
132
   background-color: white;
133
   color: #333333;
133
   color: #333333;
134
   text-align: center;
134
   text-align: center;

img/about/righttj.png → img/about/rightjt.png View File


+ 13
- 15
js/about.js View File

18
   contentType: "application/json; charset=utf-8",
18
   contentType: "application/json; charset=utf-8",
19
   success: function (data) {
19
   success: function (data) {
20
     if (data.code === 0) {
20
     if (data.code === 0) {
21
-      datalist = data.obj;
21
+      // datalist = data.obj;
22
     } else {
22
     } else {
23
       alert(data.msg);
23
       alert(data.msg);
24
     }
24
     }
29
   html += `<div class="round_q" index = "${idx + 1}">
29
   html += `<div class="round_q" index = "${idx + 1}">
30
                     <div class="round_item">
30
                     <div class="round_item">
31
                     <div class="round_i"></div>
31
                     <div class="round_i"></div>
32
-                    <div class="round_d">${item.dhyear}</div>
32
+                    <div class="round_d">${item.time}</div>
33
                   </div></div>`;
33
                   </div></div>`;
34
 });
34
 });
35
 $(".rounds").width(datalist.length * 2.34 + "rem");
35
 $(".rounds").width(datalist.length * 2.34 + "rem");
110
     return;
110
     return;
111
   }
111
   }
112
   var left = parseInt(list.css("left")) + offset; //获取元素属性
112
   var left = parseInt(list.css("left")) + offset; //获取元素属性
113
-  if (index <= 5 && left >= 0) {
113
+  if (index < 6 && left >= 0) {
114
+    list.animate({ left: 0 }, 300, function () {});
114
     return;
115
     return;
115
   }
116
   }
116
   // 边界判断
117
   // 边界判断
125
       offleft = offset;
126
       offleft = offset;
126
     }
127
     }
127
   }
128
   }
128
-
129
-  list.animate({ left: offset }, 300, function () {
130
-    if (left > -200) {
131
-      list.css("left", (0 - offset) * len);
132
-    }
133
-  });
129
+  list.animate({ left: offset }, 300, function () {});
134
 }
130
 }
135
 //亮起小圆点
131
 //亮起小圆点
136
 function showButton() {
132
 function showButton() {
143
 }
139
 }
144
 
140
 
145
 $(".develop_container").bind("mouseenter", () => {
141
 $(".develop_container").bind("mouseenter", () => {
146
-  stop();
142
+  clearTimeout(timer);
143
+    timer=null;
147
 });
144
 });
148
 $(".develop_container").bind("mouseleave", () => {
145
 $(".develop_container").bind("mouseleave", () => {
149
   play();
146
   play();
163
 function stop() {
160
 function stop() {
164
   if (timer) {
161
   if (timer) {
165
     clearTimeout(timer);
162
     clearTimeout(timer);
163
+    timer=null;
166
   }
164
   }
167
 }
165
 }
168
 
166
 
206
   } else {
204
   } else {
207
     index -= 1;
205
     index -= 1;
208
   }
206
   }
209
-
207
+  stop();
210
   animate(divwidth);
208
   animate(divwidth);
211
   showdata(index - 1);
209
   showdata(index - 1);
212
   showButton();
210
   showButton();
213
 
211
 
214
-  stop();
212
+ 
215
 });
213
 });
216
 
214
 
217
 // 小圆点点击事件
215
 // 小圆点点击事件
221
     if (list.is(":animated") || $(this).attr("class") == "on") {
219
     if (list.is(":animated") || $(this).attr("class") == "on") {
222
       return;
220
       return;
223
     }
221
     }
224
-    // 获取属性
225
     var myIndex = parseInt($(this).attr("index"));
222
     var myIndex = parseInt($(this).attr("index"));
226
     if (myIndex == index) {
223
     if (myIndex == index) {
227
       return;
224
       return;
228
     }
225
     }
229
     //计算偏移量
226
     //计算偏移量
230
     var offset = (0 - divwidth) * (myIndex - index);
227
     var offset = (0 - divwidth) * (myIndex - index);
228
+    index = myIndex;
231
     animates(offset);
229
     animates(offset);
232
     // list.animate({ left: -360 });
230
     // list.animate({ left: -360 });
233
-    //切换后,更新当前的偏移量
234
-    index = myIndex;
231
+    
235
     showdata(index - 1);
232
     showdata(index - 1);
236
     showButton();
233
     showButton();
234
+    stop();
237
   });
235
   });
238
 });
236
 });
239
 showdata(0);
237
 showdata(0);

Loading…
Cancel
Save