$(document).ready(function(){ $('#ys div').on('click',function(){ $("#ys div").removeClass().addClass('ys'); $(this).removeClass().addClass('ys_on'); $("input[name='ys']").val($("#ys .ys_on").text()); }) $('#size div').on('click',function(){ $("#size div").removeClass().addClass('ys'); $(this).removeClass().addClass('ys_on'); $("input[name='size']").val($("#size .ys_on").text()); }) $('#add_sp').on('click',function(){ var cb_list= $('#movie ul li:first').clone(); cb_list.find('input').val(''); cb_list.find('i').html(''); cb_list.find('span').html('').append('鍒犻櫎'); $('#movie ul').append(cb_list); }) $('#add_sp1').on('click',function(){ var cb_list= $('#movie1 #ys li:first').clone(); // console.log(cb_list); cb_list.find('input').val(''); cb_list.find('i').html(''); cb_list.find('span').html('').append('鍒犻櫎'); // console.log(cb_list); $('#movie1 ul').append(cb_list); }) $('#add_sp2').on('click',function(){ var cb_list= $('#movie2 #size li:first').clone(); cb_list.find('input').val(''); cb_list.find('i').html(''); cb_list.find('span').html('').append('鍒犻櫎'); $('#movie2 ul').append(cb_list); }) $('#add_pro').on('click',function(){ var cb_list= $('#shouquan ul li:first').clone(); console.log(cb_list); cb_list.find('input').val(''); cb_list.find('i').html(''); cb_list.find('span').html('').append('鍒犻櫎'); $('#shouquan ul').append(cb_list); }) $('#add_zl').on('click',function(){ var cb_list= $('#zhuli ul li:first').clone(); cb_list.find('input').val(''); cb_list.find('i').html(''); cb_list.find('span').html('').append('鍒犻櫎'); $('#zhuli ul').append(cb_list); }) $(document).delegate(".del_contact",'click',function(){ $(this).parent('span').parent('li').remove(); }) }) function zf1(a) { $(a).submit(); } function xs1(a,b,c){ $(a).slideToggle("slow"); $(b).slideUp("slow"); $(c).slideUp("slow"); } function cpFy(nowPage,totalPages,count) { $("#dd_more").html("鍔犺浇涓?.."); setTimeout(function () { $.get(verifyURL + '/p/'+ nowPage,function(data){ // alert(data); //$("#jiaoyi_content").html(data); $("#xm").append(data) }) if(nowPage==totalPages){ $("#dd_more").hide() } else{ newPage=nowPage+1 $("#dd_more").html("
鐐瑰嚮鏌ョ湅鏇村
") //alert($("#more").html() ) } }, 1000); } function getRadio(){ var hyjb=$("input[name='hyjb']:checked").val(); if(hyjb==2){ total='680'; $("input[name='title']").val('寮€閫氭寮忓鍛?); }else{ total='100'; $("input[name='title']").val('寮€閫氫綋楠屽鍛?); } $('#shifu').html(total); $("input[name='total']").val(total); $("input[name='shifu']").val(total); } function getRadio1(){ if($("input[name='xfnum']").val()==0){ $("input[name='xfnum']").val(1); } var xfnum=parseFloat($("input[name='xfnum']").val()); var total=xfnum*680; var umoeny=parseFloat($("#umoeny").text()); if(parseFloat($("input[name='dikou']").val())>umoeny){ $("input[name='dikou']").val(umoeny); } if(totalumoeny){ $("input[name='dikou']").val(umoeny); } if(totaltotal){ $("input[name='txNum']").val(total); } if(txNum>20000){ $("input[name='txNum']").val(''); } } function sc(id,cate,user){ if(user==''){ openWithIframe('浼氬憳鐧诲綍',"/index.php/Index/Member/loginSc/cate/"+cate+"/id/"+id,450,320,300); }else{ $.get("/index.php/Index/User/getSc",{date:new Date(),id:id,cate:cate},function(data){ $("#sc").show(); $("#sc").html(" 鏀惰棌鎴愬姛"); $("#sc1").html("宸叉敹钘廃/span>"); setTimeout("$('#sc').hide()",2000) }); } } function sc_js(id,cate,user){ if(user==''){ openWithIframe('浼氬憳鐧诲綍',"/index.php/Index/Member/loginSc/cate/"+cate+"/id/"+id,450,320,300); }else{ $.get("/index.php/Index/User/getSc",{date:new Date(),id:id,cate:cate},function(data){ $("#sc").show(); //$("#sc").html(" 鏀惰棌鎴愬姛"); $("#collect_course").html("宸叉敹钘廃/span>"); setTimeout("$('#sc').hide()",2000) }); } } function check_pl(id,cate,user){ if(user==''){ var username=$("input[name='username']").val(); var pass=md5($("input[name='pass']").val()); if(username==''){ $("#err").show(); $("#err").html(" 鐢ㄦ埛鍚嶄笉鑳戒负绌?); setTimeout("$('#err').hide()",2000); return false; } else if(pass==''){ $("#err").show(); $("#err").html(" 璇疯緭鍏ュ瘑鐮?); setTimeout("$('#err').hide()",2000); return false; } else{ $.get("/index.php/Index/Member/checkZh",{date:new Date(),username:username,pass:pass},function(data){ if(data==0){ $("#err").show(); $("#err").html(" 璐﹀彿鍜屽瘑鐮佷笉閰嶆瘮"); setTimeout("$('#err').hide()",2000); return false; }else{ var content=$("textarea[name='C_Content']").val(); if(content==''){ $("#err").show(); $("#err").html(" 璇勮鍐呭涓嶈兘涓虹┖"); setTimeout("$('#err').hide()",2000); return false; }else{ $.get("/index.php/Index/Member/getPl",{date:new Date(),id:id,cate:cate,username:username,content:content},function(data){ $("#err").show(); $("#err").html(" 鍙戝竷鎴愬姛"); setTimeout("$('#err').hide()",2000); $("textarea[name='C_Content']").val(''); $("#c_pl").html(data); }); } } }); } }else{ var username=user; var content=$("textarea[name='C_Content']").val(); if(content==''){ $("#err").show(); $("#err").html(" 璇勮鍐呭涓嶈兘涓虹┖"); setTimeout("$('#err').hide()",2000); return false; }else{ $.get("/index.php/Index/Member/getPl",{date:new Date(),id:id,cate:cate,username:username,content:content},function(data){ $("#err").show(); $("#err").html(" 鍙戝竷鎴愬姛"); setTimeout("$('#err').hide()",2000); $("textarea[name='C_Content']").val(''); $("#c_pl").html(data); }); } } //var niming=$("input[name='niming']:checked").val(); // if(niming!=1){ // niming=0; // } } function sure_del(msg,url) { var ok; ok=confirm(msg); if(ok!=0) location.href=url; } //楠岃瘉鐢ㄦ埛杈撳叆鐢佃瘽鍙风爜鎴栨墜鏈哄彿鐮佹槸鍚︾鍚堣鑼 function telCheck(phone) { var pr = /^1[3|4|5|7|8]([0-9]{1})([0-9]{8})$/; //浠?3 14 15 18寮€澶 return pr.test(phone); } function check_login() { if($("input[name='username']").val()=="") { $("#err").show(); $("#err").html(" 鐢ㄦ埛鍚嶄笉鑳戒负绌?); setTimeout("$('#err').hide()",2000) $("input[name='username']").focus(); return false; } if($("input[name='pass']").val()=="") { $("#err").show(); $("#err").html(" 瀵嗙爜涓嶈兘涓虹┖"); setTimeout("$('#err').hide()",2000) $("input[name='pass']").focus(); return false; } } function check_reg() { if($("input[name='username']").val()=="") { $("#yhm").html(" 浼氬憳鍚嶇О涓嶈兘涓虹┖"); $("input[name='username']").removeClass().addClass("text_err"); //$("input[name='username']").focus(); return false; } // if($("input[name='username']").val().length!=11) // { // $("#yhm").html(" 鎵嬫満鍙风爜涓?1浣?); // $("input[name='username']").removeClass().addClass("text_err"); // $("input[name='username']").focus(); // return false; // } // if( !telCheck($("input[name='username']").val()) ) //--閿欒鐨勬墜鏈哄彿鐮 // { // $("#yhm").html(" 鎵嬫満鍙风爜鏍煎紡涓嶆纭?); // $("input[name='username']").removeClass().addClass("text_err"); // $("input[name='username']").focus(); // } if($("input[name='pass']").val().length<7) { $("#pass").html(" 璇疯緭鍏?浣嶄互涓婂瓧绗?); $("input[name='pass']").removeClass().addClass("text_err"); //$("input[name='pass']").focus(); return false; } if($("input[name='pass']").val()!=$("input[name='repass']").val()) { $("#pass2").html(" 涓ゆ瀵嗙爜涓嶄竴鑷?); $("input[name='repass']").removeClass().addClass("text_err"); //$("input[name='repass']").focus(); return false; } if($("input[name='name']").val()=="") { $("#xm").html(" 鍚嶇О涓嶈兘涓虹┖"); $("input[name='name']").removeClass().addClass("text_err"); //$("input[name='name']").focus(); return false; } } function check_infor() { if($("input[name='name']").val()==""||$("input[name='mobil']").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } } function check_pass() { if($("input[name='pass']").val()==""||$("input[name='repass']").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } if($("input[name='pass']").val()!=$("input[name='repass']").val()) { $("#err").show(); $("#err").html(" 涓ゆ瀵嗙爜涓嶄竴鑷?); setTimeout("$('#err').hide()",2000); return false; } } function check_shopinfor() { if($("input[name='shopname']").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } } function check_kecheng() { if($("input[name='cate']").val()==""||$("input[name='title']").val()==""||$("textarea[name='content']").val()==""||$("#idimg1").val()==""||$("input[name='videourl[]']").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } } function check_down() { if($("input[name='cate']").val()==""||$("input[name='jg']").val()==""||$("input[name='dj']").val()==""||$("textarea[name='url']").val()==""||$("textarea[name='content']").val()==""||$("#idimg1").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } if(parseInt($("input[name='jg']").val()) *璇ヨ祫鏂欎笉绗﹀悎涓婃灦鏉′欢"); setTimeout("$('#err').hide()",2000); return false; } } function check_down_e() { if($("input[name='cate']").val()==""||$("input[name='jg']").val()==""||$("input[name='dj']").val()==""||$("textarea[name='url']").val()==""||$("textarea[name='content']").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } if(parseInt($("input[name='jg']").val()) *璇ヨ祫鏂欎笉绗﹀悎涓婃灦鏉′欢"); setTimeout("$('#err').hide()",2000); return false; } } function check_cp() { if($("input[name='title']").val()==""||$("textarea[name='content']").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } } function check_ser() { if($("input[name='key']").val()=="") { $("#err").show(); $("#err").html(" 璇疯緭鍏ュ叧閿瘝"); setTimeout("$('#err').hide()",2000); return false; } if(parseInt($("input[name='jg']").val())<=parseInt($("input[name='dj']").val())){ $("#err").show(); $("#err").html(" *璇ュ晢鍝佷笉绗﹀悎涓婃灦鏉′欢"); setTimeout("$('#err').hide()",2000); return false; } } function check_sfz() { if($("#idimg1").val()==""||$("#idimg2").val()=="") { $("#err").show(); $("#err").html(" *璇佷欢闇€鍏ㄩ儴鎻愪氦"); setTimeout("$('#err').hide()",2000); return false; } } function check_qykd() { if($("#idimg1").val()==""||$("#idimg2").val()==""||$("#idimg3").val()==""||$("#idimg4").val()=="") { $("#err").show(); $("#err").html(" *璇佷欢闇€鍏ㄩ儴鎻愪氦"); setTimeout("$('#err').hide()",2000); return false; } } function check_cp_e() { if($("input[name='title']").val()==""||$("textarea[name='content']").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } if(parseInt($("input[name='jg']").val())<=parseInt($("input[name='dj']").val())){ $("#err").show(); $("#err").html(" *璇ュ晢鍝佷笉绗﹀悎涓婃灦鏉′欢"); setTimeout("$('#err').hide()",2000); return false; } } function check_kc_e() { if($("input[name='cate']").val()==""||$("textarea[name='content']").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } } function checkTx() { if($("input[name='txNum']").val()==""||$("input[name='txNum']").val()==0||$("input[name='yzm_h']").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } } function checkzfb() { if($("input[name='zfbxm']").val()==""||$("input[name='zfbzh']").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } } function checkyhk() { if($("input[name='khyh']").val()==""||$("input[name='khxm']").val()==""||$("input[name='yhzh']").val()=="") { $("#err1").show(); $("#err1").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err1').hide()",2000); return false; } } function check_goumai() { if($("input[name='username']").val()==""||$("input[name='pass']").val()==""||$("input[name='repass']").val()==""||$("input[name='name']").val()==""||$("input[name='diqu']").val()==""||$("input[name='mph']").val()==""||$("input[name='mobil']").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } } function check_jsinfor() { if($("input[name='gsmc']").val()==""||$("textarea[name='content']").val()==""||$("textarea[name='contact']").val()=="") { $("#err").show(); $("#err").html(" *鍙蜂负蹇呭~椤?); setTimeout("$('#err').hide()",2000); return false; } } function checkuser(op) { // if($(op).val().length!=11) // { // $("#yhm").html(" 鎵嬫満鍙风爜涓?1浣?); // $(op).removeClass().addClass("text_err"); // $(op).val(""); // $(op).focus(); // return false; // } // if(!telCheck($(op).val())) //--閿欒鐨勬墜鏈哄彿鐮 // { // $("#yhm").html(" 鎵嬫満鍙风爜鏍煎紡涓嶆纭?); // $(op).removeClass().addClass("text_err"); // $(op).val(""); // $(op).focus(); // return false; // } if (/[\u4E00-\u9FA5]/i.test($(op).val())) { $("#yhm").html(" 鐢ㄦ埛鍚嶄笉鑳藉惈鏈変腑鏂?); $(op).removeClass().addClass("text_err"); $(op).val(""); return false; } if($(op).val()=="") { $("#yhm").html(" 浼氬憳鍚嶇О涓嶈兘涓虹┖"); $(op).removeClass().addClass("text_err"); //$(op).val(""); //$(op).focus(); return false; } else{ $.get("/index.php/Index/Member/checkUser",{date:new Date(),username:$(op).val()},function(data){ if(data=="1") { $("#yhm").html(" 璇ヨ处鎴峰凡瀛樺湪"); $(op).removeClass().addClass("text_err"); $(op).val(""); //$(op).focus(); return false; } else { $("#yhm").html(""); $(op).removeClass().addClass("text"); return true; } }); } } function checkpxs(op) { if($(op).val()!=""){ $.get("/index.php/Index/Member/checkpxs",{date:new Date(),xuhao:$(op).val()},function(data){ if(data=="0") {alert('鏈厤姣斿埌鐩稿叧浜哄憳'); $(op).val(""); $(op).next().next().html(""); return false; } else { $(op).next().next().html(data); //$(op).removeClass().addClass("text"); return true; } }); } } function check_kf(op) { if($(op).val()!=""){ $.get("/index.php/Index/Member/checkkf",{date:new Date(),username:$(op).val()},function(data){ if(data=="0") {alert('鏈厤姣斿埌鐩稿叧浜哄憳'); $(op).val(""); $(op).next().next().html(""); return false; } else { $(op).next().next().html(data); //$(op).removeClass().addClass("text"); return true; } }); } } function checkpoint(op) { if($(op).val()=="") { $("#err").show(); $("#err").html(" 浼氬憳鍚嶇О涓嶈兘涓虹┖"); setTimeout("$('#err').hide()",2000); //$(op).removeClass().addClass("text_err"); //$(op).val(""); //$(op).focus(); return false; } else{ $.get("/index.php/Index/Member/checkUser",{date:new Date(),username:$(op).val()},function(data){ if(data=="1") {$("#err").show(); $("#err").html(" 璇ヨ处鎴峰凡瀛樺湪"); setTimeout("$('#err').hide()",2000); //$(op).removeClass().addClass("text_err"); $(op).val(""); //$(op).focus(); return false; } else {$("#err").show(); $("#err").html(""); setTimeout("$('#err').hide()",2000); //$(op).removeClass().addClass("text"); return true; } }); } } function checkyzm(op) { if($(op).val()=="") { $("#yzm").html(" 楠岃瘉鐮佷笉鑳戒负绌?); $(op).removeClass().addClass("text_yz_err"); $(op).val(""); $(op).focus(); return false; } else{ $.get("/index.php/Index/User/checkYzm",{date:new Date(),code:$(op).val()},function(data){ if(data=="0") { $("#yzm").html(" 楠岃瘉鐮佷笉姝g‘"); $(op).removeClass().addClass("text_yz_err"); $(op).val(""); $(op).focus(); return false; } else { $("#yzm").html(""); $(op).removeClass().addClass("text_yz"); return true; } }); } } function checkpass(op) { if($(op).val().length<7) { $("#pass").html(" 璇疯緭鍏?浣嶄互涓婂瓧绗?); $(op).removeClass().addClass("text_err"); $(op).val(""); //$(op).focus(); return false; } else{ $("#pass").html(""); $(op).removeClass().addClass("text"); return true; } } function checkrepass(op) { if($("input[name='pass']").val()!=$(op).val()) { $("#pass2").html(" 涓ゆ瀵嗙爜涓嶄竴鑷?); $(op).removeClass().addClass("text_err"); $(op).val(""); //$(op).focus(); return false; } else{ $("#pass2").html(""); $(op).removeClass().addClass("text"); return true; } } function checkpass_p(op) { if($(op).val().length<7) { $("#err").show(); $("#err").html(" 璇疯緭鍏?浣嶄互涓婂瓧绗?); setTimeout("$('#err').hide()",2000); //$(op).removeClass().addClass("text_err"); $(op).val(""); //$(op).focus(); return false; } else{ $("#err").show(); $("#err").html(""); setTimeout("$('#err').hide()",2000); //$(op).removeClass().addClass("text"); return true; } } function checkrepass_p(op) { if($("input[name='pass']").val()!=$(op).val()) { $("#err").show(); $("#err").html(" 涓ゆ瀵嗙爜涓嶄竴鑷?); setTimeout("$('#err').hide()",2000); //$(op).removeClass().addClass("text_err"); $(op).val(""); //$(op).focus(); return false; } // else{$("#err").show(); // $("#err").html(""); // setTimeout("$('#err').hide()",2000); //$(op).removeClass().addClass("text"); // return true; // } } function sqjs(){ if(!confirm('鎮ㄧ‘璁ょ敵璇锋垚涓鸿甯堝悧锛?)) return false; $.get("/index.php/Index/User/sqjs",{date:new Date()},function(data){ $("#cwjs").html("璁插笀韬唤瀹℃牳涓?); }); } function test() { //if(!confirm('纭鍒犻櫎鍚楋紵')) return false; var b=""; var r=document.getElementsByName("Del_id[]"); for(var i=0;i b=b+r[i].value+","; } } //console.log(b); if(b==''){ alert('鏃犻€夋嫨椤圭洰'); return false; } if(!confirm('纭鍒犻櫎鍚楋紵')) return false; } function check_cate1(str,str1){ //alert(str); $('#cateName').val(str); $('#cateid').val(str1); massage_box1.style.display="none"; hidebg.style.display="none"; } function check_cate() { //if(!confirm('纭鍒犻櫎鍚楋紵')) return false; var b=""; var c=""; var r=document.getElementsByName("cateid[]"); for(var i=0;i b=b+n[0]+","; c=c+n[1]+","; } } //console.log(b); if(b==''){ alert('鎮ㄨ繕娌℃湁閫夋嫨绫诲埆'); return false; } $('#cateid').val(b); $('#cateName').val(c); massage_box1.style.display="none"; hidebg.style.display="none"; } function mm(a) { var a = document.getElementsByName(a); if(a[0].checked==true){ for (var i=0; i'); }else{ $('.big2').removeClass().addClass("big1"); $('.small2').removeClass().addClass("small1"); $('.more_type').attr('onclick','more(0)'); $('.more_type').html('鏇村'); } } function change_code(obj){ //alert($("#code").attr("src")); $("#code").attr("src",verifyURL + '/' + Math.random()); return false; } function txtOf(a,b) { $(a).html(" "+b+""); //$(op).removeClass().addClass(c); } function ialert(content,type){ var M = { } if(M.dialog1){ return M.dialog1.show(); } if(type=='ok'){ M.dialog1 = jqueryAlert({ 'style' : 'wap', //绉诲姩绔拰PC绔 'content' : content, 'closeTime' : 2000, 'icon' : '/App/Modules/Wap/Tpl/Public/img/right.png', }) } else if(type=='error'){ M.dialog1 = jqueryAlert({ 'style' : 'wap', //绉诲姩绔拰PC绔 'content' : content, 'closeTime' : 2000, 'icon' : '/App/Modules/Wap/Tpl/Public/img/error.png', }) }else{ M.dialog1 = jqueryAlert({ 'style' : 'wap', //绉诲姩绔拰PC绔 'content' : content, 'closeTime' : 2000, }) } } function del(id){ var M = { } if(M.dialog3){ return M.dialog3.show(); } M.dialog3 = jqueryAlert({ // 'title' : 'alertjs鎻愮ず', 'content' : '浣犵‘瀹氬垹闄よ淇℃伅?

', 'modal' : true, 'buttons' :{ '鍙栨秷' : function(){ M.dialog3.close(); }, '纭畾' : function(){ window.location.href="/index.php/Index/Index/del/id/"+id+""; } } }) } function ddEdit(orderid){ var M = { } if(M.dialog3){ return M.dialog3.show(); } M.dialog3 = jqueryAlert({ //'title' : '璇烽€夋嫨浣犵殑鎿嶄綔', 'content' : '璇烽€夋嫨浣犵殑鎿嶄綔

', 'modal' : true, 'width' : '60%', 'buttons' :{ '鍏抽棴' : function(){ M.dialog3.close(); }, '鏀粯涓婇棬璐? : function(){ window.location.href="/index.php/Index/Index/orderOk/out_trade_no/"+orderid+""; }, '鍙栨秷璁㈠崟' : function(){ window.location.href="/index.php/Index/Index/qxdd/orderid/"+orderid+""; } } }) } function stateEdit(orderid){ var M = { } if(M.dialog3){ return M.dialog3.show(); } M.dialog3 = jqueryAlert({ //'title' : '璇烽€夋嫨浣犵殑鎿嶄綔', 'content' : '璇烽€夋嫨璁㈠崟鐘舵€?br>
', 'modal' : true, 'width' : '70%', 'buttons' :{ '鍏抽棴' : function(){ M.dialog3.close(); }, '鍙栦欢' : function(){ window.location.href="/index.php/Index/Index/stateEdit/orderid/"+orderid+"/zt/2"; }, '娲楁钉' : function(){ window.location.href="/index.php/Index/Index/stateEdit/orderid/"+orderid+"/zt/3"; }, '閫佽繑' : function(){ window.location.href="/index.php/Index/Index/stateEdit/orderid/"+orderid+"/zt/4"; }, '瀹屾垚' : function(){ window.location.href="/index.php/Index/Index/stateEdit/orderid/"+orderid+"/zt/5"; }, } }) } function lqquan(id){ var M = { } if(M.dialog3){ return M.dialog3.show(); } M.dialog3 = jqueryAlert({ //'title' : '璇烽€夋嫨浣犵殑鎿嶄綔', 'content' : '浣犵‘瀹氳浣跨敤璇ュ埜?

', 'modal' : true, 'buttons' :{ '鍙栨秷' : function(){ M.dialog3.close(); }, '纭畾' : function(){ window.location.href="/index.php/Index/Index/lqQuan/id/"+id+""; } } }) } function check_add(a) { if($("input[name='xm']").val()=="") { ialert("*濮撳悕涓嶈兘涓虹┖"); return false; } if($("input[name='tel']").val()=="") { ialert("*鐢佃瘽涓嶈兘涓虹┖"); return false; } if($("input[name='qy']").val()=="") { ialert("*鍖哄煙涓嶈兘涓虹┖"); return false; } if($("input[name='mph']").val()=="") { ialert("*璇︾粏鍦板潃涓嶈兘涓虹┖"); return false; } else{ $(a).submit(); } } function dd_add(a) { if($("input[name='shdz']").val()=="") { ialert("*鍦板潃涓嶈兘涓虹┖"); return false; } if($("input[name='smsj']").val()=="") { ialert("*涓婇棬鏃堕棿涓嶈兘涓虹┖"); return false; } else{ $(a).submit(); } } function searchTabMore(id, obj){ var idObj = $('#' + id); var height1 = idObj.attr('name'); var height2 = idObj.height(); if(height1 == ''){ idObj.attr('name',height2); } if(idObj.attr('name') == height2){ idObj.height('auto'); $(obj).addClass('more_toggle'); }else{ idObj.height(height1 + 'px'); $(obj).removeClass('more_toggle'); } } function zf(a) { $(a).submit(); } function setImagePreview(n,avalue) { var docObj=document.getElementById("idimg"+n); var imgObjPreview=document.getElementById("preview"+n); if(docObj.files &&docObj.files[0]) { //鐏嫄涓嬶紝鐩存帴璁緄mg灞炴€ imgObjPreview.style.display = 'block'; //imgObjPreview.src = docObj.files[0].getAsDataURL(); //鐏嫄7浠ヤ笂鐗堟湰涓嶈兘鐢ㄤ笂闈㈢殑getAsDataURL()鏂瑰紡鑾峰彇锛岄渶瑕佷竴涓嬫柟寮 imgObjPreview.src = window.URL.createObjectURL(docObj.files[0]); } else { //IE涓嬶紝浣跨敤婊ら暅 docObj.select(); var imgSrc = document.selection.createRange().text; var localImagId = document.getElementById("localImag"+n); //蹇呴』璁剧疆鍒濆澶у皬 // localImagId.style.width = "150px"; // localImagId.style.height = "180px"; //鍥剧墖寮傚父鐨勬崟鎹夛紝闃叉鐢ㄦ埛淇敼鍚庣紑鏉ヤ吉閫犲浘鐗 try{ localImagId.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)"; localImagId.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgSrc; } catch(e) { alert("鎮ㄤ笂浼犵殑鍥剧墖鏍煎紡涓嶆纭紝璇烽噸鏂伴€夋嫨!"); return false; } imgObjPreview.style.display = 'none'; document.selection.empty(); } return true; } function check_lx() { var lx=$("#lx").val(); if(lx==57||lx==58) { $("#jssj").show(); $("#andio").hide(); $("#wzg").hide(); $("#xm").show(); } else if(lx==69){ $("#andio").show(); $("#wzg").show(); $("#xm").hide(); } else{ $("#jssj").hide(); $("#andio").hide(); $("#wzg").hide(); $("#xm").show(); } } function checktel(op,a) { //$(op).removeClass().addClass("input"); phoneNum = $(op).val(); //if($(op).val()=="") // { $(a).show(); // $(a).html("*鎵嬫満鍙蜂笉鑳戒负绌?); // setTimeout("$('"+a+"').hide()",2000) // $(op).val(""); // //$(op).removeClass().addClass("err_s"); // //document.all["liu_sm"].style.display = "none"; // //$("#Submit32").attr("disabled", true); // return false; // }else if($(op).val().length!=11) { document.getElementById('Submit32').className='smsbut'; $("#Submit32").attr("onClick",""); $(a).show(); $(a).html("*鎵嬫満鍙风爜涓?1浣?); setTimeout("$('"+a+"').hide()",2000) $(op).val(""); return false; }else if( !telCheck(phoneNum) ) //--閿欒鐨勬墜鏈哄彿鐮 {document.getElementById('Submit32').className='smsbut'; $("#Submit32").attr("onClick",""); $(a).show(); $(a).html("*璇疯緭鍏ユ纭殑鎵嬫満鍙风爜"); setTimeout("$('"+a+"').hide()",2000) $(op).val(""); return false; } else{ $.get("/index.php/Index/Member/checkTel",{date:new Date(),tel:$(op).val()},function(data){ if(data=="1") {$(a).show(); $(a).html("*璇ユ墜鏈哄彿宸茶缁戝畾"); $(op).val(""); document.getElementById('Submit32').className='smsbut'; $("#Submit32").attr("onClick",""); setTimeout("$('"+a+"').hide()",2000) //$(a).html(" 璇ユ墜鏈哄彿宸茶娉ㄥ唽"); // $(op).removeClass().addClass("err_s"); //$(op).val(""); con=false; } else { document.getElementById('Submit32').className='smsbut_on'; $("#Submit32").attr("onClick","sendSms('SMS_125116683')"); return true; // $(a).html("璇ユ墜鏈哄彲娉ㄥ唽"); // setTimeout("$('"+a+"').hide()",2000) // return true; // } }); } } var count; var countdown; var wait_seconds = 60; //绛夊緟60绉 function sendSms(code) //鐭俊鍙戦€ { var phone ; phone = $("input[name='mobil']").val(); $("input[name='mobil']").attr("readonly",'readonly'); $.get("/index.php/Index/Member/getYzm",{date:new Date(),tel:phone,code:code},function(data){ console.log(data); $("input[name='yzm_h']").val(data); }); //寮€濮嬪€掕鏃 count = wait_seconds countdown = setInterval(function(){ CountDown(code); }, 1000); } function CountDown(code) { //$("#Submit32").attr("disabled", true); document.getElementById('Submit32').className='smsbut'; $("#Submit32").attr("onClick",""); $("#Submit32").html("(" + count + "绉掑悗)閲嶆柊鑾峰彇"); if ( count == 0 ) { document.getElementById('Submit32').className='smsbut_on'; $("input[name='mobil']").removeAttr("readonly"); $("#Submit32").html("閲嶆柊鑾峰彇"); $("#Submit32").attr("onClick","sendSms('"+code+"')"); clearInterval(countdown); } count--; } function sjyzm(op) { var yzm; num= $(op).val(); yzm= $("input[name='yzm_h']").val(); if(num==''){ $("#err").show(); $("#err").html(" *楠岃瘉鐮佷笉鑳戒负绌?); setTimeout("$('#err').hide()",2000); return false; } else if(num!=yzm){ $(op).val(''); $("#err").show(); $("#err").html(" *楠岃瘉鐮佽緭鍏ユ湁璇?); setTimeout("$('#err').hide()",2000); return false; } else{ $("#err").show(); $("#err").html(""); setTimeout("$('#err').hide()",2000); return true; } }