north 8 ani în urmă
părinte
comite
2a5f512707

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
www/webapp/o2o/dist/js/main.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
www/webapp/o2o/dist/js/page/balanceLog.js


+ 6 - 9
www/webapp/o2o/js/page/balanceLog.js

@@ -70,7 +70,7 @@ define(['$', 'template', 'IScroll', 'user', 'product', 'native', 'config', 'addr
         end_time:endTime
       },function(res){
         var balanceLog = res.message;
-        for(var i=0;balanceLog.length;i++){
+        for(var i in balanceLog){
           if(balanceLog[i].amount>0 && balanceLog[i].memo!=="微信下订单" && balanceLog[i].memo!=="下订单"){
             BalancsView=true;
           }
@@ -97,7 +97,7 @@ define(['$', 'template', 'IScroll', 'user', 'product', 'native', 'config', 'addr
       },function(res){
         var balanceLog = res.message;
         console.log(balanceLog);
-        for(var i=0;i<balanceLog.length;i++){
+        for(var i  in balanceLog){
           if(balanceLog[i].memo=="微信下订单" || balanceLog[i].memo=="下订单" || balanceLog[i].amount<0 ){
               BalancsView=true;
           }
@@ -244,13 +244,10 @@ define(['$', 'template', 'IScroll', 'user', 'product', 'native', 'config', 'addr
       }, function (res) {
         if (res.success) {
           var balanceLog = res.message;
-          console.log(balanceLog);
-          for(var i=0;balanceLog.length;i++){
-
-            //console.log(balanceLog[i].amount);
-            // if(balanceLog[i].amount>0 && balanceLog[i].memo!=="微信下订单" && balanceLog[i].memo!=="下订单"){
-            //   BalancsView=true;
-            // }
+          for(var i in balanceLog){
+              if(balanceLog[i].amount>0 && balanceLog[i].memo!=="微信下订单" && balanceLog[i].memo!=="下订单"){
+                     BalancsView=true;
+              }
           }
 
           if (!cachePageData.massage) {

+ 3 - 1
www/webapp/o2o/tpl/balanceLog/productDescScroll.html

@@ -1,4 +1,6 @@
-
+{{ if BalancsView}}
+<div>暂时无数据</div>
+{{ /if }}
 {{ each balanceLog as Log }}
   {{ if Log.amount>0 && Log.memo!=="微信下订单" && Log.memo!=="下订单" }}
   <div class="recharge-details">

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff