日期:2014-05-16 浏览次数:20364 次
{/if $history_receive} {literal} $(document).ready(function(){ /*用户地址自动完成*/ $("#php188_hist_address").change(function(){ var value = $(this).val(); if(empty(value)){return false;} var opt = {id:value}; $.getJSON(get_recive_adress,opt,function(data){ if(data.error == 'notmem'){ showNotice("您还没有登陆"); }else if(data.error == 'notid'){ showNotice("您的操作有误"); }else if(data.error == 'notdata'){ showNotice('没有此数据'); }else{ $("#php188_receive_realname").val(data.receive_realname); $("#php188_receive_address").val(data.receive_address); $("#php188_receive_postno").val(data.receive_postno); $("#php188_receive_phone").val(data.receive_phone); $("#php188_receive_mobile").val(data.receive_mobile); try{ var data_type = data.receive_date_type.split(' '); $("#php188_receive_date").val(data_type[0]); if(!isNaN(data_type[0].substr(0,4))){ $("#php188_receive_date").val('specal'); $('#specal_date').show(); $('#specal_date').val(data_type[0]); }else{ $('#specal_date').hide(); } $("#php188_receive_time").val(data_type[1]); }catch(e){} var area = data.receive_area; $.get(call_url,{tag:area},function(d){ $("#region_all_info").empty().html(d); }); } }); }); }); {/literal}