diff --git a/pom.xml b/pom.xml
index 149192152..d93a4f177 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
4.0.0
manage
- 1.2.93
+ 1.2.94
UTF-8
1.4.0
diff --git a/src/main/ui/static/analysis/customer_analysis.js b/src/main/ui/static/analysis/customer_analysis.js
index 13878c95b..e8246644a 100644
--- a/src/main/ui/static/analysis/customer_analysis.js
+++ b/src/main/ui/static/analysis/customer_analysis.js
@@ -128,15 +128,20 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
$http.get('/analysis/customers/ranking/'+$scope.params.openid_type, {params: params}).then(function (resp) {
$scope.customer_loading = false;
$scope.customers = resp.data.data;
- $scope.checkoutCustomer($scope.customers[0]);
- $scope.generatorEcharts($scope.customers[0].customer_id);
- $scope.customers_type = resp.data.openid_type;
- $scope.pagination = resp.data.pagination;
if($scope.customers.length>0){
- $scope.order_params.customer_id = $scope.customers[0].customer_id;
- $scope.customer_loading = false;
- $scope.listCustomerOrders(1);
- }else{
+ $scope.checkoutCustomer($scope.customers[0]);
+ $scope.generatorEcharts($scope.customers[0].customer_id);
+ $scope.customers_type = resp.data.openid_type;
+ $scope.pagination = resp.data.pagination;
+ if($scope.customers.length>0){
+ $scope.order_params.customer_id = $scope.customers[0].customer_id;
+ $scope.customer_loading = false;
+ $scope.listCustomerOrders(1);
+ }else{
+ $scope.orders=[];
+ }
+ }
+ else{
$scope.orders=[];
}
diff --git a/src/main/ui/static/analysis/templates/customer_analysis.html b/src/main/ui/static/analysis/templates/customer_analysis.html
index 23f0f3fcb..703993d80 100644
--- a/src/main/ui/static/analysis/templates/customer_analysis.html
+++ b/src/main/ui/static/analysis/templates/customer_analysis.html
@@ -181,7 +181,7 @@
-
-