address.js 1011 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*1.编辑地址效果*/
  2. $(function(){
  3. $("body .edit:not(.notMo)").click(function(){
  4. $(".address1").hide().siblings(".address3").show();
  5. /*.css({
  6. "display":"block",
  7. })
  8. .animate({
  9. "top":0
  10. },400);*/
  11. });
  12. $("body .notMo").click(function(){
  13. $(".address1").hide().siblings("#address2").show();
  14. /*.css({
  15. "display":"block",
  16. })
  17. .animate({
  18. "top":0
  19. },400);*/
  20. });
  21. });
  22. /*2.左侧选中地址小按钮单选*/
  23. $(function(){
  24. $(".address1-middle-site").on("click",".address_select",function(){
  25. // alert(11);
  26. $(this).addClass("address_selected");
  27. if($(this).hasClass("address_selected")){
  28. $(this).parents(".site-list").siblings().find(".address_select").removeClass("address_selected");
  29. }
  30. });
  31. });
  32. /*3.address2页面设置默认页面*/
  33. /*$(function(){
  34. $("body").on("click",".set_default",function(){
  35. $(this).css({
  36. "background-color":"#fff",
  37. "color":"#adadad"
  38. })
  39. $(this).val("这是您的默认收货地址");
  40. });
  41. });
  42. */