4444f38bdb5be4a3b72d6451f84e5186.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:114:"/usr/local/develop/php/www/waibao/NN2022090201/NN2022090201/public/../application/shop/view/order/addresslist.html";i:1616999064;}*/ ?>
  2. <!doctype html>
  3. <html class="no-js">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="description" content="">
  8. <meta name="keywords" content="">
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <title>地址管理</title>
  11. <!-- Set render engine for 360 browser -->
  12. <meta name="renderer" content="webkit">
  13. <!-- No Baidu Siteapp-->
  14. <meta http-equiv="Cache-Control" content="no-siteapp" />
  15. <link rel="icon" type="image/png" href="js/i/favicon.png">
  16. <!-- Add to homescreen for Chrome on Android -->
  17. <meta name="mobile-web-app-capable" content="yes">
  18. <link rel="icon" sizes="192x192" href="i/app-icon72x72@2x.png">
  19. <!-- Add to homescreen for Safari on iOS -->
  20. <meta name="apple-mobile-web-app-capable" content="yes">
  21. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  22. <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  23. <link rel="apple-touch-icon-precomposed" href="i/app-icon72x72@2x.png">
  24. <!-- Tile icon for Win8 (144x144 + tile color) -->
  25. <meta name="msapplication-TileImage" content="i/app-icon72x72@2x.png">
  26. <meta name="msapplication-TileColor" content="#0e90d2">
  27. <link rel="stylesheet" href="/assets/shop/css/amazeui.css">
  28. <link rel="stylesheet" href="/assets/shop/css/app.css">
  29. <style type="text/css">
  30. .default{
  31. background: #fbd3d3;
  32. font-size: 10px;
  33. padding: 2px 5px;
  34. color: red;
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <!-- Header -->
  40. <header data-am-widget="header" class="am-header am-header-default">
  41. <div class="am-header-left am-header-nav">
  42. <a href="<?php echo url('shop/user/index'); ?>" ><i class="am-header-icon am-icon-angle-left"></i></a>
  43. </div>
  44. <h1 class="am-header-title">
  45. <a href="#title-link">地址管理</a>
  46. </h1>
  47. </header>
  48. <!-- Content -->
  49. <div class="wapper" data-html='address'>
  50. <div class="am-margin-bottom-sm">
  51. <button type="button" class="am-btn am-btn-address am-btn-block am-padding-sm" onclick="window.location.href='/shop/order/addressadd/type/<?php echo $type; ?>.html'">新增收货地址</button>
  52. </div>
  53. <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
  54. <div class="am-g am-bg-white am-margin-bottom-xs">
  55. <div class="ubb am-padding-sm am-padding-bottom-xs">
  56. <div class="am-padding-bottom-xs">
  57. <?php if($v['isdefault'] == 1): ?>
  58. <span class="default">默认</span>
  59. <?php endif; ?>
  60. <span class="am-padding-right-sm"><?php echo $v['userName']; ?></span><?php echo $v['userPhone']; ?>
  61. </div>
  62. <div class=""><?php echo $v['area']; ?><?php echo $v['address']; ?></div>
  63. </div>
  64. <div class="am-padding-sm am-padding-top-xs am-padding-bottom-xs am-box">
  65. <div class="am-u-sm-6">
  66. <?php if($type == 1): ?>
  67. <label class="am-radio am-margin-0"><input type="radio" name="radio1" value="<?php echo $v['id']; ?>" data-am-ucheck>使用此地址</label>
  68. <?php endif; ?>
  69. </div>
  70. <div class="am-u-sm-6 am-text-right">
  71. <button class="am-btn am-btn-mybg am-radius am-btn-xs" onclick="window.location.href='/shop/order/addressedit/id/<?php echo $v['id']; ?>/type/<?php echo $type; ?>'">编辑</button>
  72. <button class="am-btn am-btn-mybg am-radius am-btn-xs delete" data-id="<?php echo $v['id']; ?>">删除</button>
  73. </div>
  74. </div>
  75. </div>
  76. <?php endforeach; endif; else: echo "" ;endif; ?>
  77. </div>
  78. <!-- Footer-Menu -->
  79. <!--[if (gte IE 9)|!(IE)]><!-->
  80. <script src="/assets/shop/js/jquery.min.js"></script>
  81. <!--<![endif]-->
  82. <!--[if lte IE 8 ]>
  83. <script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
  84. <script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
  85. <script src="js/amazeui.ie8polyfill.min.js"></script>
  86. <![endif]-->
  87. <script src="/assets/shop/js/amazeui.min.js"></script>
  88. <script src="/assets/shop/js/app.js"></script>
  89. <script src="/assets/libs/layer/layer.js"></script>
  90. <script>
  91. $(function(){
  92. $('.delete').add('#doc-confirm-toggle').on('click', function() {
  93. var $confirm = $('#my-confirm'),
  94. $confirmBtn = $confirm.find('[data-am-modal-confirm]'),
  95. $cancelBtn = $confirm.find('[data-am-modal-cancel]');
  96. $confirm.modal();
  97. $confirmBtn.off('click.confirm.modal.amui').on('click', function() {
  98. alert("确定");
  99. // do something
  100. });
  101. $cancelBtn.off('click.cancel.modal.amui').on('click', function() {
  102. //alert("取消");
  103. // do something
  104. });
  105. });
  106. })
  107. $('.delete').click(function(){
  108. var id =$(this).attr('data-id');
  109. layer.confirm('确定要删除此地址?', {
  110. btn: ['确定','取消'],title:'提示' //按钮
  111. }, function(){
  112. jQuery.post("<?php echo url('api/shop/deladdress'); ?>" ,{id:id},function(data) {
  113. if(data.code>0)
  114. {
  115. location=location;
  116. }else{
  117. layer.msg(data.msg,{time:1000});
  118. }
  119. });
  120. }, function(){
  121. });
  122. });
  123. $('input[name=radio1]').click(function(){
  124. location="/shop/order/index/addressid/"+$(this).val();
  125. });
  126. </script>
  127. </body>
  128. </html>