|
|
@@ -273,14 +273,17 @@
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
- that.cyclecount = res.data.data.cycle.count.data;
|
|
|
- that.cyclecount_percent = res.data.data.cycle.count.percent;
|
|
|
- that.cyclecount_is_plus = res.data.data.cycle.count.is_plus;
|
|
|
- that.cycleprice = res.data.data.cycle.price.data;
|
|
|
- that.cycleprice_percent = res.data.data.cycle.price.percent;
|
|
|
- that.cycleprice_is_plus = res.data.data.cycle.price.is_plus;
|
|
|
- that.pre_cyclecount = res.data.data.pre_cycle.count.data;
|
|
|
- that.pre_cycleprice = res.data.data.pre_cycle.price.data;
|
|
|
+ var data=res.data.data;
|
|
|
+ if(data.length) {
|
|
|
+ that.cyclecount = data.cycle.count.data;
|
|
|
+ that.cyclecount_percent = data.cycle.count.percent;
|
|
|
+ that.cyclecount_is_plus = data.cycle.count.is_plus;
|
|
|
+ that.cycleprice = data.cycle.price.data;
|
|
|
+ that.cycleprice_percent = data.cycle.price.percent;
|
|
|
+ that.cycleprice_is_plus = data.cycle.price.is_plus;
|
|
|
+ that.pre_cyclecount = data.pre_cycle.count.data;
|
|
|
+ that.pre_cycleprice = data.pre_cycle.price.data;
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
orderchartsetoption:function(data){
|