ssoAddress.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. <style>
  2. #account_manager a {
  3. text-decoration: none;
  4. }
  5. #account_manager a:hover {
  6. text-decoration: none;
  7. }
  8. li .fi {
  9. float: left;
  10. }
  11. li .fr {
  12. width: 89%;
  13. color: #666;
  14. }
  15. .rt_menu{
  16. border-bottom: #e8e8e8 1px solid;
  17. background: #ecf2fd;
  18. }
  19. .rt_menu span{
  20. margin-left: 30px;
  21. color: #323232;
  22. font-size: 14px;
  23. }
  24. .rt_menu span.last-login {
  25. font-size: 12px;
  26. margin: 0 22px 0 0;
  27. font-weight: normal;
  28. }
  29. .rt_menu span.last-login span {
  30. font-size: 12px;
  31. font-weight: normal;
  32. margin: 0;
  33. }
  34. .count01 .count-content{
  35. width: 100%;
  36. background: #fff;
  37. padding-bottom:70px;
  38. }
  39. .count01 .count-content ul{
  40. width: 94%;
  41. }
  42. .count01 .count-content ul li{
  43. border-bottom: none;
  44. }
  45. .count-content ul li div.fl{
  46. width: 90px;
  47. }
  48. .rt_menu span.fr button{
  49. width: 40px;
  50. line-height: 40px;
  51. color: #5078cb;
  52. text-align: center;
  53. display: inline-block;
  54. margin-right: 10px;
  55. border: none;
  56. background: none;
  57. font-size: 14px;
  58. }
  59. .count-content .col-sm-10 .form-control{
  60. border-radius: inherit;
  61. margin-top: 12px;
  62. }
  63. .count01 ul li span h5 img {
  64. margin-top: 20px;
  65. margin-left: 0;
  66. }
  67. .count01 ul li span h5 img.ok-icon {
  68. margin-top: 25px;
  69. }
  70. .count01 ul li span>span {
  71. color: #666;
  72. margin-left: 0;
  73. }
  74. .count01 ul li >a {
  75. background: #fff;
  76. color: #5078cb;
  77. text-align: center;
  78. height: 30px;
  79. line-height: 30px;
  80. padding: 0 7px;
  81. margin-top: 16px;
  82. margin-right: 7px;
  83. }
  84. .count01 ul li >a.mall-btn-default {
  85. background: #5078cb;
  86. color: #fff;
  87. }
  88. .count01 ul li.safe-level>span >span {
  89. display: inline-block;
  90. height: 14px;
  91. line-height: 14px;
  92. background: rgb(255, 90, 0);
  93. color: #fff;
  94. margin-right: 1px;
  95. width: 64px;
  96. margin-left: 0px;
  97. font-size: 12px;
  98. text-align: center;
  99. position: relative;
  100. bottom: 1px;
  101. }
  102. .count01 ul li.safe-level>span >span:nth-child(3) {
  103. background: rgb(255,171,44);
  104. }
  105. .count01 ul li.safe-level>span>i {
  106. margin-left: 13px;
  107. color: #666;
  108. }
  109. .count01 ul li.safe-level .last-login {
  110. float: right;
  111. font-size: 12px;
  112. color: #666;
  113. margin-right: 7px;
  114. }
  115. .count01 ul li.safe-level .safe-remind {
  116. float: right;
  117. margin-right: 87px;
  118. }
  119. .count01 ul li.safe-level .safe-remind a {
  120. color: #ff0000;
  121. float: none !important;
  122. }
  123. .count01 ul li.active-safe-box {
  124. background: #fef2f2;
  125. border: 1px solid #faaebe;
  126. }
  127. .count01 ul li span font {
  128. font-size: 14px;
  129. color: #333;
  130. letter-spacing: 0;
  131. margin-right: 0;
  132. }
  133. .count01 ul li span h5 {
  134. width: 30px;
  135. }
  136. /**/
  137. .empty{
  138. width:100%;
  139. overflow: hidden;
  140. height:100px;
  141. margin: 0!important;
  142. display:inline-flex;
  143. justify-content: center;
  144. align-items: center;
  145. }
  146. .empty-info{
  147. line-height: 28px;
  148. padding-top:10px;
  149. margin-left:10px;
  150. text-align: left;
  151. }
  152. .empty-info .grey{
  153. color: #999;
  154. font-size: 14px;
  155. }
  156. .empty .empty-info>a{
  157. font-size: 14px;
  158. color: #5078cb;
  159. }
  160. .empty .empty-info i{
  161. margin-right:5px;
  162. }
  163. .oder01 ul li{
  164. margin-left: 0px;
  165. position: relative;
  166. }
  167. .oder01 ul li.active a{
  168. border-bottom: #fff;
  169. background: #5078cb;
  170. color: #fff;
  171. }
  172. .oder01 ul li::after{
  173. background: url('static/img/vendor/images/downicon.png');
  174. width: 11px;
  175. height: 6px;
  176. position: absolute;
  177. bottom: 0px;
  178. left: 50%;
  179. content: ' ';
  180. margin-left: -5px;
  181. display: none;
  182. }
  183. .oder01 ul li.active:after{
  184. display: block
  185. }
  186. </style>
  187. <style>
  188. .count01 .business_scope{
  189. padding-bottom:10px;
  190. }
  191. .count01 .business_scope ul{
  192. width:100%;
  193. margin:0;
  194. margin-left:-10px;
  195. line-height: 35px;
  196. padding-top: 18px;
  197. }
  198. .count01 .business_scope ul li{
  199. position:relative;
  200. width:auto;
  201. height:auto;
  202. padding:0 10px;
  203. margin:0 10px;
  204. float:none;
  205. background: #5078cb;
  206. border-radius:5px;
  207. text-align: center;
  208. line-height: 25px;
  209. }
  210. .count01 .business_scope ul li span{
  211. color:#fff;
  212. margin:0;
  213. }
  214. .count01 .business_scope ul li i{
  215. position:absolute;
  216. right:-10px;
  217. top:-10px;
  218. cursor:pointer;
  219. display:inline-block;
  220. width:20px;
  221. height:20px;
  222. line-height: 20px;
  223. font-size: 16px;
  224. text-align: center;
  225. color:red;
  226. border-radius:50%;
  227. background: #eee;
  228. }
  229. .logistic-content .log-tab{
  230. width:98%;
  231. }
  232. .logistic-content .menu-title{
  233. font-size: 14px;
  234. margin-left:30px;
  235. }
  236. .logistic-content .log-tab .table tbody tr td{
  237. white-space: normal;
  238. overflow:unset;
  239. }
  240. </style>
  241. <!--右侧主体部分-->
  242. <div class="user_right fr" id="account_manager">
  243. <!--收货地址-->
  244. <div class="rt_menu"><span>收货地址</span></div>
  245. <div class="logistic-content">
  246. <div class="menu-title row">现有收货地址<span>&nbsp;已保存<em>{{total}}</em>条,还能新增<em>{{canAddTotal-total}}</em>条地址</span></div>
  247. <div class="add-log row" ng-if="total < canAddTotal && addressList && addressList.length > 0"><button ng-click="modifyAddress()"><i class="fa fa-plus-square"></i>新增收货地址</button></div>
  248. <div class="log-tab" ng-if="addressList && addressList.length > 0">
  249. <table class="table" style="table-layout: auto">
  250. <thead>
  251. <tr>
  252. <th class="text-left" width="200">联系人</th>
  253. <th class="text-left" width="400">地址</th>
  254. <th width="110" class="text-left" >联系电话</th>
  255. <th width="80">操作</th>
  256. <th width="100"></th>
  257. </tr>
  258. </thead>
  259. <tbody>
  260. <tr ng-repeat="address in addressList">
  261. <td class="text-left">{{address.name}}</td>
  262. <td class="text-left">
  263. <div>{{address.province}}&nbsp;{{address.city}}&nbsp;{{address.district}}</div>
  264. <div>{{address.detailAddress}}</div>
  265. </td>
  266. <td class="text-left" >{{address.tel}}</td>
  267. <td><a ng-click="modifyAddress(address)">修改</a>|<a ng-click="deleteAddress(address)">删除</a></td>
  268. <td>
  269. <button ng-if="address.num == 1">默认地址</button>
  270. <button class="default" ng-if="address.num != 1" ng-click="setDefaultAddress(address.id)">设为默认</button>
  271. </td>
  272. </tr>
  273. </tbody>
  274. </table>
  275. </div>
  276. <div class="new-address" ng-if="addressList.length <= 0 || !addressList">
  277. <div class="edit-rec-addr">
  278. <div class="row">
  279. <div class="col-sm-12">
  280. <form name="myForm" class="form-horizontal" role="form" ng-submit="save(newAddr)">
  281. <div class="form-group">
  282. <label for="userName" class="col-sm-3 control-label"><strong class="text-inverse">* </strong>
  283. <span>收货人姓名:</span>
  284. </label>
  285. <div class="col-sm-5">
  286. <input required ng-model="newAddr.name" type="text" class="form-control" id="userName" name="userName"
  287. placeholder="请输入你的姓名" autocomplete="off" ng-change="checkForm(1)">
  288. </div>
  289. <div class="col-sm-4">
  290. <span class="text-inverse error" ng-show="newAddr.name && userError">请勿超过10个字</span>
  291. <span class="text-inverse heigth30" ng-show="myForm.userName.$touched && myForm.userName.$invalid">请输入收件人姓名</span>
  292. <span ng-show="!myForm.userName.$invalid && !userError" class="text-success heigth30">填写正确</span>
  293. </div>
  294. </div>
  295. <div class="form-group">
  296. <label for="tel" class="col-sm-3 control-label"><strong class="text-inverse">* </strong>联系电话:</label>
  297. <div class="col-sm-5">
  298. <input required ng-model="newAddr.tel" type="text" autocomplete="off" class="form-control" ng-change="checkForm(2)" id="tel" name="tel"
  299. placeholder="请输入您的联系电话">
  300. </div>
  301. <div class="col-sm-4" >
  302. <span class="text-inverse error" ng-show="newAddr.tel && (telError || telPatternError)">请输入正确的号码</span>
  303. <span class="text-inverse heigth30" ng-show="myForm.tel.$touched && myForm.tel.$invalid">请输入联系电话</span>
  304. <span ng-show="!myForm.tel.$invalid && !telError && !telPatternError" class="text-success heigth30">填写正确</span>
  305. </div>
  306. </div>
  307. <div class="form-group">
  308. <label for="email" class="col-sm-3 control-label">邮箱:</label>
  309. <div class="col-sm-5">
  310. <input name="email" ng-model="newAddr.email" type="text" class="form-control" id="email"
  311. placeholder="请填写正确的邮箱,可用于接收订单提醒" maxlength="50" ng-change="checkForm(4)">
  312. </div>
  313. <div class="col-sm-4">
  314. <span ng-show="newAddr.email && emailPatternError" class="text-inverse heigth30">请输入正确的邮箱</span>
  315. </div>
  316. </div>
  317. <div class="form-group ">
  318. <label class="col-sm-3 control-label"><strong
  319. class="text-inverse">* </strong>所在地区:</label>
  320. <div class="mar-rt0 row checkbox">
  321. <div class="col-sm-3">
  322. <select required="" class="select-adder form-control"
  323. ng-model="newAddr.province"
  324. ng-options="key as key for (key,value) in division"
  325. ng-change="newAddr.city='';newAddr.district='';"
  326. style="opacity: 1;">
  327. <option value="">省级行政区</option>
  328. </select>
  329. </div>
  330. <div class="col-sm-3 ">
  331. <select class="select-adder form-control" ng-model="newAddr.city"
  332. ng-options="key as key for (key,value) in division[newAddr.province]"
  333. ng-change="newAddr.district='';"
  334. style="opacity: 1;">
  335. <option value="">市</option>
  336. </select>
  337. </div>
  338. <div class="col-sm-3">
  339. <select class="select-adder form-control" ng-model="newAddr.district" style="opacity: 1;"
  340. ng-options="value as value for value in division[newAddr.province][newAddr.city]" required>
  341. <option value="">区</option>
  342. </select>
  343. </div>
  344. </div>
  345. </div>
  346. <div class="form-group" style="margin-bottom: 0;">
  347. <label class="col-sm-3 control-label"><strong class="text-inverse">* </strong>详细地址:</label>
  348. <div class="col-sm-8" style="width: 530px; padding-right: 0;">
  349. <input required ng-model="newAddr.detailAddress" type="text" class="form-control" name="addr" id="addr"
  350. placeholder="建议你填写详细地址,例如街道名、门牌号,楼层和房间号等信息" autocomplete="off" ng-change="checkForm(3)">
  351. </div>
  352. <div class="col-sm-2" style="padding: 0; width: 100px; padding-left: 10px;line-height: 34px;">
  353. <span class="text-inverse error" ng-show="newAddr.detailAddress && addrError">请勿超过30个字</span>
  354. <span ng-show="!myForm.addr.$invalid && !addrError" class="text-success heigth30">填写正确</span>
  355. <span class="text-inverse error" ng-show="myForm.addr.$touched && myForm.addr.$invalid">请输入详细地址</span>
  356. </div>
  357. </div>
  358. <div class="form-group" style="margin-bottom:20px;margin-top:10px;">
  359. <div class="col-sm-4" style="margin-left: 120px;">
  360. <div class="checkbox">
  361. <label class="check-active">
  362. <input ng-model="isSetTop" type="checkbox" id="check-act">
  363. <label for="check-act"></label>
  364. <span>设置为默认收货地址</span>
  365. </label>
  366. </div>
  367. </div>
  368. </div>
  369. </form>
  370. </div>
  371. </div>
  372. </div>
  373. <div class="edit-btn">
  374. <button class="btn btn-success" ng-click="save()" type="button">保存</button>
  375. </div>
  376. </div>
  377. </div>
  378. </div>
  379. <style type="text/css">
  380. .new-address {
  381. padding-top:20px;
  382. }
  383. .new-address label{
  384. margin-right: -15px;
  385. font-size: 14px;
  386. font-weight: inherit;
  387. line-height: 34px;
  388. }
  389. .heigth30 {
  390. height: 30px;
  391. line-height: 30px;
  392. }
  393. .edit-rec-addr .form-control {
  394. color: black;
  395. }
  396. .edit-rec-addr strong {
  397. color: red;
  398. }
  399. .edit-rec-addr .format-correct {
  400. color: #008000;
  401. height: 30px;
  402. line-height: 30px;
  403. }
  404. .edit-rec-addr .format-error {
  405. color: red;
  406. height: 30px;
  407. line-height: 30px;
  408. }
  409. .select-adder{
  410. background:url("static/img/user/images/xiala.png") right no-repeat ;
  411. background-position-x: 180px;
  412. }
  413. .form-control{
  414. border-radius: 3px;
  415. }
  416. .new-address .edit-btn{
  417. text-align: center;
  418. }
  419. .new-address.edit-btn button{
  420. width: 70px;
  421. height: 32px;
  422. border-radius: 0;
  423. }
  424. .new-address.edit-btn button.btn-default{
  425. background: #c8c6c6 !important;
  426. color: #fff !important;
  427. border: none !important;
  428. }
  429. .form-horizontal .control-label{
  430. width: 120px;
  431. padding-right: 5px;
  432. }
  433. .checkbox .col-sm-3{
  434. width: 177px;
  435. }
  436. </style>
  437. <style>
  438. .com-del-box{
  439. position: fixed;
  440. z-index: 2;
  441. height: 152px;
  442. opacity: 1;
  443. background-color: white;
  444. width: 310px;
  445. -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
  446. box-shadow: 0 5px 15px rgba(0,0,0,.5);
  447. margin: -155px 0 0 -75px;
  448. top: 55%;
  449. left: 50%;
  450. }
  451. .com-del-box .title{
  452. height: 30px;
  453. background-color: #5078cb;
  454. text-align: right;
  455. padding-right: 15px;
  456. line-height: 30px;
  457. }
  458. .com-del-box .title a{
  459. color: white;
  460. font-size: 16px;
  461. }
  462. .com-del-box .content{
  463. width: 100%;
  464. text-align: center;
  465. margin: 0 auto;
  466. }
  467. .com-del-box .content p{
  468. line-height: 50px;
  469. font-size: 14px;
  470. padding-top: 10px;
  471. padding-bottom: 10px;
  472. }
  473. .com-del-box .content p i{
  474. color: #5078cb;
  475. font-size: 16px;
  476. margin-right: 10px;
  477. }
  478. .com-del-box .content div{
  479. width: 100%;
  480. text-align: center;
  481. margin: 0 auto;
  482. }
  483. .com-del-box .content div a{
  484. width: 55px;
  485. height: 26px;
  486. line-height: 26px;
  487. display: inline-block;
  488. text-align: center;
  489. font-size: 14px;
  490. }
  491. .com-del-box .content div a:first-child{
  492. background: #b4b5b9;
  493. color: #333;
  494. margin-right: 10px;
  495. }
  496. .com-del-box .content div a:last-child{
  497. background: #5078cb;
  498. color: #fff;
  499. }
  500. .com-del-box .content div a:hover{
  501. background: #3f7ae3;
  502. color: #fff;
  503. }
  504. </style>
  505. <div class="com-del-box" ng-if="showDeleteFrame">
  506. <div class="title">
  507. <a ng-click="cancelDelete()"><i class="fa fa-close fa-lg"></i></a>
  508. </div>
  509. <div class="content">
  510. <p><i class="fa fa-exclamation-circle"></i>是否删除此地址</p>
  511. <div><a ng-click="cancelDelete()">取消</a><a ng-click="ensureDelete(deleteObject.id)">确认</a></div>
  512. </div>
  513. </div>