Browse Source

模态框关闭按钮

yangc 8 years ago
parent
commit
cbf9488cc6

+ 3 - 0
src/main/webapp/resources/js/usercenter/controllers/forstore/buyer_home_ctrl.js

@@ -222,6 +222,9 @@ define(['app/app', 'calendar'], function(app) {
       $state.go('account_manager',{op:op});
       $modalInstance.dismiss('cancel');
     }
+    $scope.cancel = function () {
+        $modalInstance.dismiss('cancel');
+    }
   }]);
 
     //地址编辑模态框

+ 9 - 0
src/main/webapp/resources/view/usercenter/modal/homeCenter_modal.html

@@ -9,6 +9,14 @@
     .modal-header p {
         color: #fff;
     }
+    .modal-header i {
+        font-size: 12px;
+        position: absolute;
+        right: 7px;
+        top: 7px;
+        color: #fff;
+        cursor: pointer;
+    }
     .modal-body {
         height: 145px;
         color: #666;
@@ -37,6 +45,7 @@
     <div class="modal-header">
         <img src="static/img/user/images/safeSetting.png" alt="">
         <p>安全设置</p>
+        <i class="glyphicon glyphicon-remove" ng-click="cancel()"></i>
     </div>
     <div class="modal-body">
         你的账户的安全等级过低,请 <a ng-hide="userInfo.pwdEnable" ng-click="goLink('pwd')">修改密码</a>

+ 9 - 0
src/main/webapp/resources/view/vendor/modal/updatePassword.html

@@ -14,6 +14,14 @@
 	.modal-header p {
 		color: #fff;
 	}
+	.modal-header i {
+		font-size: 12px;
+		position: absolute;
+		right: 7px;
+		top: 7px;
+		color: #fff;
+		cursor: pointer;
+	}
 	.password .modal-body .row >label {
 		padding: 0;
 	}
@@ -88,6 +96,7 @@
 <div class="modal-header">
 	<img src="static/img/user/images/update-password.png" alt="">
 	<p>修改密码</p>
+	<i class="glyphicon glyphicon-remove" ng-click="cancel()"></i>
 </div>
 <form class="password" name="sampleSendForm" ng-submit="ok()">
 	<div class="modal-body">

+ 9 - 0
src/main/webapp/resources/view/vendor/modal/updateRealAuth.html

@@ -9,6 +9,14 @@
     .modal-header p {
         color: #fff;
     }
+    .modal-header i {
+        font-size: 12px;
+        position: absolute;
+        right: 7px;
+        top: 7px;
+        color: #fff;
+        cursor: pointer;
+    }
     .realAuth .modal-body .row {
         line-height: 34px;
         font-size: 14px;
@@ -72,6 +80,7 @@
 <div class="modal-header">
     <img src="static/img/user/images/realAuth.png" alt="">
     <p>实名认证</p>
+    <i class="glyphicon glyphicon-remove" ng-click="cancel()"></i>
 </div>
 <form class="realAuth" name="sampleSendForm" ng-submit="ok()">
     <div class="modal-body">

+ 9 - 0
src/main/webapp/resources/view/vendor/modal/updateUserEmail.html

@@ -14,6 +14,14 @@
     .modal-header p {
         color: #fff;
     }
+    .modal-header i {
+        font-size: 12px;
+        position: absolute;
+        right: 7px;
+        top: 7px;
+        color: #fff;
+        cursor: pointer;
+    }
     .userEmail .modal-body .row >label {
         padding: 0;
     }
@@ -78,6 +86,7 @@
 <div class="modal-header">
     <img src="static/img/user/images/valid-email.png" alt="">
     <p>邮箱验证</p>
+    <i class="glyphicon glyphicon-remove" ng-click="cancel()"></i>
 </div>
 <form class="userEmail" name="sampleSendForm" ng-submit="ok()">
     <input type="hidden" ng-model="pageToken"/>

+ 9 - 0
src/main/webapp/resources/view/vendor/modal/updateUserPay.html

@@ -14,6 +14,14 @@
     .modal-header p {
         color: #fff;
     }
+    .modal-header i {
+        font-size: 12px;
+        position: absolute;
+        right: 7px;
+        top: 7px;
+        color: #fff;
+        cursor: pointer;
+    }
     .userPay .modal-body .row >label {
         padding: 0;
     }
@@ -62,6 +70,7 @@
 <div class="modal-header">
     <img src="static/img/user/images/update-pay.png" alt="">
     <p>支付密码</p>
+    <i class="glyphicon glyphicon-remove" ng-click="cancel()"></i>
 </div>
 <form class="userPay" name="sampleSendForm" ng-submit="ok()" ng-init="checkHaveUserPay()">
     <div class="modal-body">

+ 9 - 0
src/main/webapp/resources/view/vendor/modal/updateUserQuestion.html

@@ -14,6 +14,14 @@
     .modal-header p {
         color: #fff;
     }
+    .modal-header i {
+        font-size: 12px;
+        position: absolute;
+        right: 7px;
+        top: 7px;
+        color: #fff;
+        cursor: pointer;
+    }
     .userQuestion .modal-body .row >label {
         padding: 0;
     }
@@ -62,6 +70,7 @@
 <div class="modal-header">
     <img src="static/img/user/images/pass-question.png" alt="">
     <p>密保问题</p>
+    <i class="glyphicon glyphicon-remove" ng-click="cancel()"></i>
 </div>
 <form class="userQuestion" name="sampleSendForm" ng-submit="ok()">
     <div class="modal-body">

+ 9 - 0
src/main/webapp/resources/view/vendor/modal/updateUserTel.html

@@ -14,6 +14,14 @@
     .modal-header p {
         color: #fff;
     }
+    .modal-header i {
+        font-size: 12px;
+        position: absolute;
+        right: 7px;
+        top: 7px;
+        color: #fff;
+        cursor: pointer;
+    }
     .userTel .modal-body .row >label {
         padding: 0;
     }
@@ -78,6 +86,7 @@
 <div class="modal-header">
     <img src="static/img/user/images/phonecheck.png" alt="">
     <p>手机验证</p>
+    <i class="glyphicon glyphicon-remove" ng-click="cancel()"></i>
 </div>
 <form class="userTel" name="sampleSendForm" ng-submit="ok()">
     <input type="hidden" ng-model="pageToken"/>