No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

shop_edit_address.htm 9.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>编辑收货地址-{eyou:global name='web_name' /}</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
  9. {eyou:static file="users/skin/css/bootstrap.min.css" /}
  10. {eyou:static file="users/skin/css/eyoucms.css" /}
  11. {eyou:static file="users/skin/css/basic.css" /}
  12. {eyou:static file="users/skin/css/shop_under_order.css"/}
  13. {eyou:static file="users/skin/css/element/index.css" /}
  14. {eyou:static file="users/skin/css/e-user.css" /}
  15. {eyou:include file="users/skin/css/diy_css.htm"/}
  16. {eyou:static file="/public/static/common/js/jquery.min.js"/}
  17. {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
  18. {eyou:static file="/public/static/common/js/tag_global.js"/}
  19. {eyou:static file="/public/static/common/js/shop_address.js"/}
  20. <style>
  21. .address-list span {
  22. display: inline-block;
  23. margin-right: 14px;
  24. line-height: 30px;
  25. margin-bottom: 6px;
  26. color: #333;
  27. cursor: pointer
  28. }
  29. .address-list span:hover {
  30. color: #ff6700
  31. }
  32. </style>
  33. </head>
  34. <body>
  35. <form name='theForm' id="theForm" method="post" onsubmit="return false;">
  36. <div class="ey-dialog__wrapper address-modal" style="width: 660px;">
  37. <div aria-modal="true" class="ey-dialog">
  38. <div class="ey-dialog__body">
  39. <div class="ey-dialog__inner">
  40. <div class="address-add">
  41. <input type="hidden" name="addr_id" value="{$eyou.field.addr_id}">
  42. <div class="item">
  43. <div class="col mr ey-input">
  44. <label for="name" class="input-label">姓名</label>
  45. <input type="text" name="consignee" id="consignee" value="{$eyou.field.consignee}" autocomplete="off" class="input-text">
  46. <p class="msg msg-error" style="display: none;"></p>
  47. <span class="iconfont-circle-close icon-error" style="display: none;"></span>
  48. </div>
  49. <div class="col ey-input">
  50. <label for="telephone" class="input-label">手机号</label>
  51. <input type="text" name="mobile" id="mobile" value="{$eyou.field.mobile}" maxlength="11" onkeyup="this.value=this.value.replace(/[^\d]/g,'');" onpaste="this.value=this.value.replace(/[^\d]/g,'');" autocomplete="off" class="input-text">
  52. <p class="msg msg-error" style="display: none;"></p>
  53. <span class="iconfont-circle-close icon-error" style="display: none;"></span>
  54. </div>
  55. </div>
  56. <div class="item address-info-box">
  57. <input type="hidden" name="province" id="province" value="{$eyou.field.province}">
  58. <input type="hidden" name="city" id="city" value="{$eyou.field.city}">
  59. <input type="hidden" name="district" id="district" value="{$eyou.field.district}">
  60. <div class="col ey-input">
  61. <label for="address" class="input-label"></label>
  62. <input type="text" id="address-title" onclick="showAddressWindow();" placeholder="选择省 / 市 / 区 / 街道" value="{$eyou.field.province_name} {$eyou.field.city_name} {$eyou.field.district_name}" readonly="readonly" autocomplete="off" class="input-text show-placeholder">
  63. <p class="msg msg-error" style="display: none;"></p>
  64. <span class="iconfont-circle-close icon-error" style="display: none;"></span>
  65. </div>
  66. <i class="iconfont iconfont-arrow-down-small"></i>
  67. <div class="address-select-box" style="display: none;">
  68. <div class="con"><i class="iconfont iconfont-close-small" onclick="$('.address-select-box').css('display', 'none');"></i>
  69. <div class="address-box">
  70. <div class="address-selectd">
  71. <span class='province' onclick="showAddressList('province');">{$eyou.field.province_name}</span>
  72. <span class='city' onclick="showAddressList('city');">{$eyou.field.city_name}</span>
  73. <span class='district' onclick="showAddressList('district');">{$eyou.field.district_name}</span>
  74. </div>
  75. <div class="address-list address-list-province" style="display: none;">
  76. {eyou:volist name="$eyou.field.Province" id="P_v"}
  77. <span data-id="{$P_v.id}" onclick="showSelectAddress(this, 'province')">{$P_v.name}</span>
  78. {/eyou:volist}
  79. </div>
  80. <div class="address-list address-list-city" style="display: none;">
  81. {eyou:volist name="$eyou.field.City" id="C_v"}
  82. <span data-id="{$C_v.id}" onclick="showSelectAddress(this, 'city')">{$C_v.name}</span>
  83. {/eyou:volist}
  84. </div>
  85. <div class="address-list address-list-district" style="display: none;">
  86. {eyou:volist name="$eyou.field.District" id="D_v"}
  87. <span data-id="{$D_v.id}" onclick="showSelectAddress(this, 'district')">{$D_v.name}</span>
  88. {/eyou:volist}
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <div class="item">
  95. <div class="col ey-input">
  96. <label for="addressInfo" class="input-label">详细地址</label>
  97. <textarea name="address" id="address" placeholder="详细地址,路名或街道名称,门牌号" autocomplete="off" class="input-text">{$eyou.field.address}</textarea>
  98. <p class="msg msg-error" style="display: none;"></p>
  99. <span class="iconfont-circle-close icon-error" style="display: none;"></span>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="el-dialog__footer">
  106. <button class="btn btn-primary" onclick="editPcAddress();">确定</button>
  107. <button class="btn btn-gray" onclick="layerColse();">取消</button>
  108. </div>
  109. </div>
  110. </div>
  111. </form>
  112. <script type="text/javascript">
  113. var inputObj = $('.input-text');
  114. for (var i=0; i<inputObj.length; i++) {
  115. if (inputObj[i].value) $(inputObj[i]).parent().addClass('input-focus');
  116. }
  117. $('.input-text').focus(function() {
  118. $(this).parent().addClass('input-active');
  119. if ($(this).attr('name') == 'address') $(this).attr('placeholder', '详细地址,路名或街道名称,门牌号');
  120. });
  121. $('.input-text').blur(function() {
  122. $(this).parent().removeClass('input-active').attr('placeholder', '');
  123. if ($(this).attr('name') == 'address') $(this).attr('placeholder', '');
  124. });
  125. $('.input-text').bind('input propertychange', function() {
  126. if ($(this).val()) {
  127. $(this).parent().addClass('input-focus');
  128. } else {
  129. $(this).parent().removeClass('input-focus');
  130. }
  131. });
  132. </script>
  133. </body>
  134. </html>