master
yuan 8 years ago
parent 154faf131b
commit 624022a67d

@ -287,9 +287,9 @@
<input type="text" name="contact_phone" required ng-model="partner.contact_phone"
class="form-control" style="display: inline" onkeyup="value=value.replace(/[^\d]/g,'')"
placeholder="Your Phone" maxlength="11" ng-mouseleave="checkParams()" ng-mousedown="name_exist =false">
<button ng-disabled="name_exist" 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()"
ng-bind="description" ng-disabled="canClick"></button>
ng-bind="description" ng-disabled="canClick||name_exist"></button>
</div>
<div style="text-align: left" ng-if="name_exist">
<span style="text-align: left;font-size: 12px;" class="text-danger">The phone number has already existed</span>

@ -160,6 +160,8 @@ angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl',
}, function (resp) {
if(resp.data.status+0 ==500) {
$interval.cancel($scope.phone_code_timer);
$scope.description="Send Code";
$scope.canClick=false;
}
$scope.resError = resp.data.message;

Loading…
Cancel
Save