Browse Source

解决JS小数相乘的问题

git-svn-id: svn://svn7.apicloud.com/A6007457911931/%E5%9C%88%E5%A4%9A%E5%A4%9A@669 0e1a2743-8d03-4e5a-a60c-7e26af42b145
1149931599@qq.com 4 years ago
parent
commit
3f173a1ce5
2 changed files with 3 additions and 1 deletions
  1. 2 1
      html/home/paymode.html
  2. 1 0
      login.html

+ 2 - 1
html/home/paymode.html

@@ -198,7 +198,8 @@ $(".pay-item").on("tap", "ul", function() {
     $(this).find("img").attr("src", "../../image/checked.png");
     _dftPay = $(this).find("img").attr("tag");
     if ( _dftPay == 'point' ) {
-        $(".m-bottom").html("支 付 ( 圈币 "+_money * _ratio_points+" )");
+		var money=parseInt(_money * _ratio_points);
+        $(".m-bottom").html("支 付 ( 圈币 "+money+" )");
     }else{
         $(".m-bottom").html("支 付 ( ¥"+_money+" )");
     }

+ 1 - 0
login.html

@@ -24,6 +24,7 @@
         }
     </style>
     <script>
+		console.log(0.28*100);
     (function(w, d, m) {
         function r() {
             var t = 100,