mzx16822 преди 6 години
родител
ревизия
85a89013d0
променени са 1 файла, в които са добавени 12 реда и са изтрити 0 реда
  1. 12 0
      public/h5/datigame/js/common.js

+ 12 - 0
public/h5/datigame/js/common.js

@@ -167,6 +167,18 @@ common={
  		})
  		
  		
+ 	},increment:function(bdclass,num){
+ 		 
+		$("."+bdclass).prop('Counter',num-$(this).text()).animate({
+			Counter: $(this).text()
+		},{
+				duration: 3500,
+				easing: 'swing',
+				step: function (now){  
+					$(this).text(Math.ceil(now));
+				}
+			});
+	 
  	},daoshu:function(argument) {
  			var _this=this;
 	    clearInterval(this.data.ts);