Merge remote-tracking branch 'origin/clientApply' into clientApply

# Conflicts:
#	src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java
#	src/main/ui/merchant_application.html
master
yuan 7 years ago
commit 18e9865b77

@ -250,6 +250,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
JSONObject param = new JSONObject(); JSONObject param = new JSONObject();
param.put("begin_time",DateFormatUtils.format(now,"YYYYMMdd")); param.put("begin_time",DateFormatUtils.format(now,"YYYYMMdd"));
param.put("end_time",DateFormatUtils.format(DateUtils.addDays(now,1),"YYYYMMdd")); param.put("end_time",DateFormatUtils.format(DateUtils.addDays(now,1),"YYYYMMdd"));
param.put("agree",true);
List<JSONObject> existCount = sysClientPreMapperMapper.query(param); List<JSONObject> existCount = sysClientPreMapperMapper.query(param);
if(existCount.size()>30){ if(existCount.size()>30){
throw new BadRequestException("New merchant over limit,Please contact us"); throw new BadRequestException("New merchant over limit,Please contact us");
@ -297,7 +298,7 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
sysAccount.put("client_id",clientId); sysAccount.put("client_id",clientId);
sysAccount.put("create_time",new Date()); sysAccount.put("create_time",new Date());
sysAccount.put("is_password_expired",0); sysAccount.put("is_password_expired",0);
sysAccount.put("nation_code",'+'+apply.getString("nation_code")); sysAccount.put("nation_code","+61");
clientAccountMapper.save(sysAccount); clientAccountMapper.save(sysAccount);
JSONObject sysBank = new JSONObject(); JSONObject sysBank = new JSONObject();

@ -10,6 +10,9 @@
<if test="#{end_time}!=null"> <if test="#{end_time}!=null">
and create_time &lt; #{end_time} and create_time &lt; #{end_time}
</if> </if>
<if test="agree">
and agree = #{agree}
</if>
</where> </where>
</select> </select>
</mapper> </mapper>

@ -285,7 +285,7 @@
<span class="input-group-addon">+61</span> <span class="input-group-addon">+61</span>
<input type="text" name="contact_phone" required ng-model="partner.contact_phone" <input type="text" name="contact_phone" required ng-model="partner.contact_phone"
class="form-control" style="display: inline" class="form-control" style="display: inline"
placeholder="Your Phone" maxlength="20" ng-mouseleave="checkParams()" ng-mousedown="name_exist =false"> placeholder="Your Phone" maxlength="15" ng-mouseleave="checkParams()" ng-mousedown="name_exist =false">
<button type="button" class="btn btn-success button_width" style="display:inline;height: 34px;float: right;border-radius: 0px" <button type="button" class="btn btn-success button_width" style="display:inline;height: 34px;float: right;border-radius: 0px"
title="发送验证码" ng-click="sendVerificationCode()" title="发送验证码" ng-click="sendVerificationCode()"
ng-bind="description" ng-disabled="canClick"></button> ng-bind="description" ng-disabled="canClick"></button>

@ -1,4 +1,4 @@
angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl', ['$scope', '$http','$interval','$timeout', function ($scope, $http,$interval,$timeout) { angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl', ['$scope', '$http','$interval', function ($scope, $http,$interval) {
var countryMap = [{ var countryMap = [{
"label": "AUS", "label": "AUS",
"value": "AUS" "value": "AUS"
@ -61,7 +61,7 @@ angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl',
$scope.partner = {nation_code:"+61"}; $scope.partner = {nation_code:"+61"};
$scope.bankaccount = {}; $scope.bankaccount = {};
$scope.rate = {}; $scope.rate = {};
$scope.phone_code_timer=$timeout(function () {}, 0); $scope.phone_code_timer=$interval(function () {}, 1000);
$scope.loadRoyalpayindustry = function () { $scope.loadRoyalpayindustry = function () {
$http.get('/static/data/royalpayindustry.json').then(function (resp) { $http.get('/static/data/royalpayindustry.json').then(function (resp) {
@ -121,9 +121,9 @@ angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl',
}; };
$scope.sendPhoneCodeTime = function(){ $scope.sendPhoneCodeTime = function(){
var second=59; var second=59;
$scope.phone_code_timer = $timeout(function () { $scope.phone_code_timer = $interval(function () {
if(second<=0){ if(second<=0){
$interval.cancel(timerHandler); $interval.cancel($scope.phone_code_timer);
second=59; second=59;
$scope.description="Send Code"; $scope.description="Send Code";
$scope.canClick=false; $scope.canClick=false;
@ -160,7 +160,10 @@ angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl',
$scope.sendPhoneCodeTime(); $scope.sendPhoneCodeTime();
$http.post('/register/info/phone/'+ $scope.partner.contact_phone +'/verify?nation_code='+$scope.partner.nation_code).then(function (resp) { $http.post('/register/info/phone/'+ $scope.partner.contact_phone +'/verify?nation_code='+$scope.partner.nation_code).then(function (resp) {
}, function (resp) { }, function (resp) {
$timeout.cancel($scope.phone_code_timer); if(resp.data.status+0 ==500) {
$interval.cancel($scope.phone_code_timer);
}
$scope.resError = resp.data.message; $scope.resError = resp.data.message;
}); });
}; };

Loading…
Cancel
Save