From 139711f66295b0c6e68b03537669678e2be7a3a0 Mon Sep 17 00:00:00 2001 From: yuan <1551130722@qq.com> Date: Tue, 15 May 2018 18:45:54 +0800 Subject: [PATCH] fix html --- .../ui/static/payment/partner/partner-manage.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/ui/static/payment/partner/partner-manage.js b/src/main/ui/static/payment/partner/partner-manage.js index 0f2545c36..672af88c2 100644 --- a/src/main/ui/static/payment/partner/partner-manage.js +++ b/src/main/ui/static/payment/partner/partner-manage.js @@ -344,6 +344,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter return; } + if ($scope.partner.company_name.indexOf("Migration") != -1) { + alert("Company Name包含敏感词汇,请检查后重新提交!"); + return; + } if ($scope.partner.company_phone_a && ('' + $scope.partner.company_phone_a != '')) { if ($scope.partner.company_phone_a.indexOf('0') == 0) { alert("Please remove the first character '0' of area code"); @@ -920,6 +924,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter return; } + if ($scope.partner.company_name.indexOf("Migration") != -1) { + alert("Company Name包含敏感词汇,请检查后重新提交!"); + return; + } if ($scope.partner.company_phone.indexOf(' ') != -1) { alert('Company Phone can not contain space character'); return; @@ -1788,7 +1796,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter return; } $scope.errmsg = null; - + if ($scope.partner.company_name.indexOf("Migration") != -1) { + alert("Company Name包含敏感词汇,请检查后重新提交!"); + return; + } if ($scope.partner.company_phone_a && ('' + $scope.partner.company_phone_a != '')) { if ($scope.partner.company_phone_a.indexOf('0') == 0) {