From fa7cad96c6e44ffc189ff0fa3427195402452da3 Mon Sep 17 00:00:00 2001 From: duLingLing Date: Wed, 27 Nov 2019 18:21:13 +0800 Subject: [PATCH] =?UTF-8?q?Upd=EF=BC=9A=E4=BF=AE=E5=BE=A9=E4=BA=A4?= =?UTF-8?q?=E6=98=93=E6=8E=92=E5=90=8D=E6=95=B8=E6=93=9A=E4=BA=94=E5=88=B7?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../ui/static/analysis/customer_analysis.js | 21 ++++++++++++------- .../analysis/templates/customer_analysis.html | 4 ++-- 3 files changed, 16 insertions(+), 11 deletions(-) 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 @@ -
+

用户画像

@@ -248,7 +248,7 @@
-
+