From 1ff35dc8d1cbc8b1f60a633d2620d43193712e23 Mon Sep 17 00:00:00 2001 From: yuan <1551130722@qq.com> Date: Fri, 25 May 2018 12:06:31 +0800 Subject: [PATCH] fix~ --- .../impls/SimpleClientApplyServiceImpl.java | 2 +- src/main/ui/merchant_application.html | 40 +++++++++++++----- .../ui/static/css/merchant_application.css | 41 +++++++++++++++++++ .../merchant_application.js | 7 +++- 4 files changed, 77 insertions(+), 13 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java index 8e2b943ac..5322f1a69 100644 --- a/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java @@ -248,7 +248,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService { sysClient.put("suburb",apply.getString("suburb")); sysClient.put("state",apply.getString("state")); sysClient.put("postcode",apply.getString("postcode")); - sysClient.put("industry",apply.getString("industry")); + sysClient.put("royalpayindustry",apply.getString("industry")); sysClient.put("contact_person",apply.getString("contact_person")); sysClient.put("contact_email",apply.getString("contact_email")); sysClient.put("contact_phone",apply.getString("contact_phone")); diff --git a/src/main/ui/merchant_application.html b/src/main/ui/merchant_application.html index 8626b54c6..6854e7667 100644 --- a/src/main/ui/merchant_application.html +++ b/src/main/ui/merchant_application.html @@ -284,7 +284,7 @@ class="form-control" style="width: 80%;display: inline" placeholder="Your Phone"> @@ -293,14 +293,14 @@
-

-
- +
+
+
+ +
+
+
diff --git a/src/main/ui/static/css/merchant_application.css b/src/main/ui/static/css/merchant_application.css index b533aebb1..35bf8106d 100644 --- a/src/main/ui/static/css/merchant_application.css +++ b/src/main/ui/static/css/merchant_application.css @@ -419,6 +419,47 @@ body .dis_before:nth-child(5):before { color: white; background: #1ea4ec; } +.dropdown-submenu { + position: relative; +} +.dropdown-submenu > .dropdown-menu { + top: 0; + left: 100%; + margin-top: -6px; + margin-left: -1px; + -webkit-border-radius: 0 6px 6px 6px; + -moz-border-radius: 0 6px 6px; + border-radius: 0 6px 6px 6px; +} +.dropdown-submenu:hover > .dropdown-menu { + display: block; +} +.dropdown-submenu > a:after { + display: block; + content: " "; + float: right; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; + border-width: 5px 0 5px 5px; + border-left-color: #ccc; + margin-top: 5px; + margin-right: -10px; +} +.dropdown-submenu:hover > a:after { + border-left-color: #fff; +} +.dropdown-submenu.pull-left { + float: none; +} +.dropdown-submenu.pull-left > .dropdown-menu { + left: -100%; + margin-left: 10px; + -webkit-border-radius: 6px 0 6px 6px; + -moz-border-radius: 6px 0 6px 6px; + border-radius: 6px 0 6px 6px; +} /*.progress_inner__step:before{ background: #1ea4ec; } diff --git a/src/main/ui/static/merchantapplication/merchant_application.js b/src/main/ui/static/merchantapplication/merchant_application.js index a5e5abcdd..ae364fa3a 100644 --- a/src/main/ui/static/merchantapplication/merchant_application.js +++ b/src/main/ui/static/merchantapplication/merchant_application.js @@ -70,7 +70,7 @@ angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl', } }; $scope.disabledArray = new Array(true, false, false, false, false); - $scope.chooseArray = new Array(true, false, false, false, false); + $scope.chooseArray = new Array(false, true, false, false, false); $scope.changeChoose = function (index) { $scope.chooseArray = new Array(false, false, false, false, false); $scope.chooseArray[index] = true; @@ -114,6 +114,10 @@ angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl', $scope.resError = resp.data.message; }); }; + $scope.chooseIndustry = function (industry) { + $scope.partner.industry = industry.mccCode; + $scope.industryLable = industry.label; + }; $scope.searchBankInfo = function (bsb_no) { if (bsb_no != null && bsb_no != "") { $http.get('/register/info/bank/' + bsb_no).then(function (resp) { @@ -197,6 +201,7 @@ angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl', $scope.goToLogin(); } $scope.changeChoose(index); + $scope.resError = ''; }, function (resp) { $scope.resError = resp.data.message; });