mzx16822 %!s(int64=6) %!d(string=hai) anos
pai
achega
9de52a1f07

+ 1 - 1
public/h5/datigame/css/main.css

@@ -379,7 +379,7 @@ background-color:#009688;
     top: .5rem;
 }
 .popbg{display: none;position: fixed;left: 0;top: 0;width: 100%;height: 100%;background: rgba(0,0,0,0.5);z-index: 90;}
-.covxlz{ width: 2.86rem;left: 50%; margin-left: -1.43rem; top: 9rem; height: 1rem; border-radius: .5rem; background-color: #a7a8c5;line-height: 1rem;text-align: center;color: #222e71 }
+.covxlz{ width: 2.86rem;left: 50%; margin-left: -1.43rem; top: 11rem; height: 1rem; border-radius: .5rem; background-color: #a7a8c5;line-height: 1rem;text-align: center;color: #222e71 }
 .con {
   position:relative;
   display:inline-block;

+ 1 - 1
public/h5/datigame/index.html

@@ -42,7 +42,7 @@
       <div class="cov covtit2"></div>
     </div>
     <div class="g-inner gstart">
-       <span class="cov covxlz">星力值:560</span>
+       <span class="cov covxlz">星力值:<em class="num">560</em></span>
       <div class="loading amt">
         <div class="loader">
           <div class="face">

+ 3 - 2
public/h5/datigame/js/common.js

@@ -169,8 +169,9 @@ common={
  		
  	},increment:function(bdclass,num){
  		 var obj=$("."+bdclass);
-		obj.prop('Counter',num-$(this).text()).animate({
-			Counter: num
+ 		 var text=obj.text();
+		obj.prop('Counter',num-text).animate({
+			Counter: text
 		},{
 				duration: 3500,
 				easing: 'swing',