From c0fffb94e3b84bab5947dd88d7c71a7e3f53d41c Mon Sep 17 00:00:00 2001 From: yuan <1551130722@qq.com> Date: Wed, 9 May 2018 19:56:04 +0800 Subject: [PATCH] fix html --- src/main/ui/static/dashboard/dashboard.js | 10 ++--- .../payment/billqrcode/bill-qrcode-manage.js | 24 +++++++++++- .../billqrcode/templates/bill_qrcode.html | 37 +++++++++++-------- 3 files changed, 50 insertions(+), 21 deletions(-) diff --git a/src/main/ui/static/dashboard/dashboard.js b/src/main/ui/static/dashboard/dashboard.js index ba0da91b9..2f9d7c595 100644 --- a/src/main/ui/static/dashboard/dashboard.js +++ b/src/main/ui/static/dashboard/dashboard.js @@ -100,7 +100,7 @@ define(['angular', 'uiRouter', 'uiBootstrap', 'angularEcharts'], function (angul loadTradeAmountInTypes(); loadTradePartnersInTypes(); loadTopPartners(); - loadTradeTimeAnalysis(); + /*loadTradeTimeAnalysis();*/ loadTradeLimite(); }; @@ -281,7 +281,7 @@ define(['angular', 'uiRouter', 'uiBootstrap', 'angularEcharts'], function (angul $scope.analysis.top_partners = chartParser.parse(topPartnerConfig, resp.data.reverse()); }) } - function loadTradeTimeAnalysis() { + /*function loadTradeTimeAnalysis() { var timeAnalysis = function (legend, series) { return { // title : { @@ -413,9 +413,9 @@ define(['angular', 'uiRouter', 'uiBootstrap', 'angularEcharts'], function (angul }); $scope.analysis.trade_time = timeAnalysis(leg, series); }) - } + }*/ - /*function loadFeeAnalysis(params) { + function loadFeeAnalysis(params) { var analysisConfig = { chart: { tooltip: { @@ -473,7 +473,7 @@ define(['angular', 'uiRouter', 'uiBootstrap', 'angularEcharts'], function (angul }) } - loadFeeAnalysis($scope.scales[2].params())*/ + loadFeeAnalysis($scope.scales[2].params()) function getMaxRecord() { if ($scope.currentUser.org_id == null) { diff --git a/src/main/ui/static/payment/billqrcode/bill-qrcode-manage.js b/src/main/ui/static/payment/billqrcode/bill-qrcode-manage.js index cfad253ef..a5d0b2248 100644 --- a/src/main/ui/static/payment/billqrcode/bill-qrcode-manage.js +++ b/src/main/ui/static/payment/billqrcode/bill-qrcode-manage.js @@ -13,7 +13,10 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS $scope.pagination = {}; $scope.params = {}; $scope.new_bill = {}; - $scope.today = new Date(); + $scope.minDate = new Date(); + var maxDate = new Date(); + $scope.maxDate = maxDate.setDate(maxDate.getDate() + 14); + $scope.loadBills = function (page) { var params = angular.copy($scope.params); @@ -80,6 +83,25 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS } }); + app.filter('remarkCut', function () { + return function (value, wordwise, max, tail) { + if (!value) return ''; + + max = parseInt(max, 10); + if (!max) return value; + if (value.length <= max) return value; + + value = value.substr(0, max); + if (wordwise) { + var lastspace = value.lastIndexOf(' '); + if (lastspace != -1) { + value = value.substr(0, lastspace); + } + } + return value + (tail || ' …'); + }; + }); + return app; }); \ No newline at end of file diff --git a/src/main/ui/static/payment/billqrcode/templates/bill_qrcode.html b/src/main/ui/static/payment/billqrcode/templates/bill_qrcode.html index 4f3b521b0..aadf73be3 100644 --- a/src/main/ui/static/payment/billqrcode/templates/bill_qrcode.html +++ b/src/main/ui/static/payment/billqrcode/templates/bill_qrcode.html @@ -24,9 +24,14 @@
- +
+ + $ +
+

@@ -35,7 +40,8 @@ + datepicker-options="{minDate:minDate,maxDate:maxDate}" name="cancle_time" required> +

Expire Date 不得超过十五天

@@ -49,7 +55,8 @@
- + +

Remark 不得超过100字符

@@ -88,28 +95,28 @@ - + - - - + - + + + - + - - - + - + + +
PriceOrder Amount Client Order IdCreate timeExpire timeRemarkPayer Order Status Bill StatusPayerExpire DateRemarkCreate time Operation