|
@@ -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) {
|