CINXE.COM

发布信息,康强加盟网

<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="Cache-Control" content="no-cache"/> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Expires" content="0"/> <meta name="viewport" content="width=device-width,minimum-scale=1,user-scalable=no,maximum-scale=1.0,initial-scale=1.0,user-scalable=no,viewport-fit=cover" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="renderer" content="webkit"> <meta name="layoutmode" content="standard"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <!--uc浏览器判断到页面上文字居多时,会自动放大字体优化移动用户体验。添加以下头部可以禁用掉该优化--> <meta name="wap-font-scale" content="no"> <meta content="telephone=no" name="format-detection" /> <meta name="full-screen" content="yes" /> <meta name="x5-fullscreen" content="true" /> <meta name="browsermode" content="application"> <meta name="page-mode" content="no-title" /> <meta name="x5-page-mode" content="no-title" /> <script src="https://img.kq36.com.cn/js/jquery-1.7.2.min.js"></script> <link href="https://img.kq36.com.cn/js/layer/skin/layer.css" rel="stylesheet" /> <script language="javascript" src="https://img.kq36.com.cn/js/layer/layer.js?v=20200010093"></script> <link href="https://img.kq36.com.cn/js/viewer_update.css?v=20200010081" rel="stylesheet" /> <script language="javascript" src="/admin/js/viewer_update_gb.js?v=20200010083" charset="utf-8"></script> <script src="https://webapi.amap.com/maps?v=1.4.15&key=693f005cd63e1f33258048b5bb3f5ab2&plugin=AMap.Geocoder"></script> <link href='https://img.kq36.com.cn/mkq520/admin/css/admin.css?t=2&v=2202411250107' rel='stylesheet' /> <script src='https://img.kq36.com.cn/mkq520/js/common.js?v=15202411250107'></script> <link rel="stylesheet" href="https://img.kq36.com.cn/kq600/vant/lib/index.css"> <link rel="stylesheet" href="https://img.kq36.com.cn/mkq520/css/iconfont.css?v=1mkq520n_3.2.47"> <link rel="stylesheet" href="https://img.kq36.com.cn/mkq520/css/common_.css?v=1mkq520n_3.2.47"> <script type="text/javascript"> var userAgent = navigator.userAgent; if (userAgent.indexOf('AlipayClient') > -1) { // 支付宝小程序的 JS-SDK 防止 404 需要动态加载,如果不需要兼容支付宝小程序,则无需引用此 JS 文件。 document.writeln('<script src="https://appx/web-view.min.js"' + '>' + '<' + '/' + 'script>'); } else if (/QQ/i.test(userAgent) && /miniProgram/i.test(userAgent)) { // QQ 小程序 document.write('<script type="text/javascript" src="https://img.kq36.com.cn/js/qqjssdk1.0.0.js"><\/script>'); } else if (/toutiaomicroapp/i.test(userAgent)) { // 字节跳动小程序 JS-SDK 如果不需要兼容字节跳动小程序,则无需引用此 JS 文件。 document.write('<script type="text/javascript" src="https://img.kq36.com.cn/js/toutiao1.0.1.js"><\/script>'); } else if (/swan/i.test(userAgent)) { // 百度小程序 JS-SDK 如果不需要兼容百度小程序,则无需引用此 JS 文件。 document.write('<script type="text/javascript" src="https://img.kq36.com.cn/js/swan-2.0.20.js"><\/script>'); } </script> <script type="text/javascript" src="https://img.kq36.com.cn/js/jweixin-1.3.2.js"></script> <script language="javascript" src="https://img.kq36.com.cn/js/uni.webview.1.5.2.js"></script> <script> (function () { console.log(navigator); var ua = navigator.userAgent.toLocaleLowerCase(); console.log(ua) var browserType = "", browserVersion = ""; if (ua.match(/msie/) != null || ua.match(/trident/) != null) { alert('不支持当前浏览器,请前往谷歌、360极速模式等其他浏览器打开'); } })(); var geocoder = new AMap.Geocoder({ }); var vm; isMiniprogram = false document.addEventListener('UniAppJSBridgeReady', function () { uni.postMessage({ data: { title: document.title } }); uni.getEnv(function (res) { if (res.miniprogram || res.smartprogram) { isMiniprogram = true; $(".ershoubtn").hide(); } }); }); var refurl = ""; if (getCookies("usercookiesmm") == null) { $("#lobtn").show(); $("#member").hide(); } else { $("#member").show(); $("#lobtn").hide(); } //读取cookie function getCookies(name) { var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)")); if (arr != null) return unescape(arr[2]); return null; } </script> <style> .loadmore_t{display:block;line-height:50px;text-align:center;color:#000;font-size:14px} .loadmore_t .loading_t{height:20px;width:20px;border-radius:100%;display:inline-block;margin:10px;border:2px solid #0486c4;border-bottom-color:transparent;vertical-align:middle;-webkit-animation:rotate 1.1s infinite linear;animation:rotate 1.1s infinite linear } .reloadbtn_t{display:inline-block;margin:0 5px 0 5px;padding:2px 4px;border-radius:3px;background:#0486c4;font-weight:400;color:#fff!important;line-height:20px!important;height:20px!important;text-decoration:none;font-size:12px} .tabbar_class{position:fixed;bottom:0;width:100%;z-index:999;max-width:640px;border-top:1px solid #ddd;background:white;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)} .tabbar_class ul{overflow:hidden;background-color:#fff;padding:1% 0;display:-webkit-box;display:-moz-box;display:-webkit-flex;display:-moz-flex;display:flex;flex-wrap:nowrap;-moz-justify-content:space-around;-webkit-justify-content:space-around;justify-content:space-around;-webkit-box-align:center;-moz-align-items:center;-webkit-align-items:center;align-items:center} .tabbar_class li{text-align:center;width:25%;height:35px} .tabbar_class label{margin:0px 0 0 0;font-size:15px;display:block} #containerst div:nth-child(2){width:100%!important;height:100%!important;} </style> <title>发布信息,康强加盟网</title> </head> <body> <form method="post" action="./Add.aspx" id="form1" enctype="multipart/form-data"> <div class="aspNetHidden"> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="Ei9spZCGJ7GB7pXgp8neCChq8YLVR2/SWSH5rmC/z7bc+B5rG4vtLfEnObO3xkVRE219saG9TpuNOan9lzLrqt4XbAHKoGXx1Ba5zVlgzE89baaK1YSulyC19eUnv1RiPzL2IppGIF53z8mDTfq/Xk863opi7tz3IfJxTs7ToHYeik4tpnuRz6FYTvg=" /> </div> <div class="aspNetHidden"> <input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="F83B92A2" /> </div> <span id="errInfo"></span> <div class="webLeft"></div> <div style="color:#555;margin-top: 20px; font-size:17px; text-align: center;" id="ziyuanjia"><div class="loadmore_t"><div class="loading_t" ></div>加载中..<a href="javascript:;" class="reloadbtn_t" onclick="location.reload();">重新加载</a></div></div> <!--wrap--> <div id="app" v-cloak> <van-popup v-model="infomsg" round class="van-popupbottomicon" :lock-scroll="false" @click-overlay="infomsg=false;othercz()" :closeOnPopstate="false" :lazy-render="true" :safe-area-inset-bottom="true" position="center" :style="{width:(screenWidth>640?576:screenWidth*0.9)+'px',maxWidth:'640px'}" > <div ><div style="padding: 20px;" > <div v-if="msginfotip==80"> <div style="font-size: 16px;">发布规则</div> <div class="con" style="font-size: 16px; " id="wincon"><div style="color: #A4A4A4; margin: 10px auto"><font style="color: #262525;" class="zhuangtai">&nbsp;1、禁止发布医疗单位科室转让、科室出让、承包、出租、求租、出兑、求购</font></div><div style="color: #A4A4A4; margin: 10px auto"><font style="color: #262525;" class="zhuangtai">&nbsp;2、禁止发布医疗单位或医疗器械证照出租、转让</font></div><div style="color: #A4A4A4; margin: 10px auto"><font style="color: #262525;" class="zhuangtai">&nbsp;3、诊所禁止发布托管、转让、求购</font></div><div style="color: #A4A4A4; margin: 10px auto"><font style="color: #262525;" class="zhuangtai">&nbsp;4、诊所仅限发布店面转让,店面求购</font></div> <div style="color: #A4A4A4; margin: 10px auto"><font style="color: #262525;" class="zhuangtai">&nbsp;5、禁止重复发布</font></div> <div style="color: #A4A4A4; margin: 10px auto"><font style="color: #262525;" class="zhuangtai">重复发布将不予审核通过,所消耗康强点不予补退其他违规行为一律黑名单,不予通知</font></div> <div style="color: #A4A4A4; margin: 10px auto;margin-top: 20px;"><font style="color: #262525;" class="zhuangtai">&nbsp;违规请投诉 <a href="javascript:;" @click="msginfotip=85;infomsg=true;" style="margin-left: 10px;"><img src="https://img.kq36.com.cn/im/img/chat_blue.gif" style="width: 20px; height: 20px; vertical-align: middle; margin: 0px 5px;">在线客服</a></font></div> </div> </div> <div v-if="msginfotip==81"> <div style="font-size: 16px;margin-left: 10px;">发布<font style="color:#087fe5">加盟/招商</font>类别<div style="margin-top: 5px;">需要登录单位账号才能发布!</div></div> <div style="font-size: 16px;text-align: center;margin-top: 10px;"><van-button native-type="button" @click="nav('webtip','/m/mylists.aspx',1)" type="info" style="text-align: center;border-radius: 6px;margin:5px 0px;width: 50%; background-color: #087fe5; border-color: #087fe5;font-size: 16px; ">切换账号</van-button></div> </div> <div v-if="msginfotip==82"> <div style="font-size: 16px;margin-left: 10px;">发布<font style="color:#087fe5">加盟/招商</font>类别<div style="margin-top: 5px;">需要证件审核才能发布!</div></div> <div style="font-size: 16px;text-align: center;margin-top: 10px;"><van-button native-type="button" @click="nav('webtip','https://3g.kq36.com/kq36/auditing.asp?ret=')" type="info" style="text-align: center;border-radius: 6px;margin:5px 0px;width: 50%; background-color: #087fe5; border-color: #087fe5;font-size: 16px; ">上传证件</van-button></div> <div style="font-size: 16px;text-align: center;margin-top: 10px;"><van-button native-type="button" @click="openkefu" icon="https://img.kq36.com.cn/chat_white.gif?v=1" type="info" style="text-align: center;border-radius: 6px;margin:5px 0px;width: 50%; background-color: #087fe5; border-color: #087fe5;font-size: 16px; ">康强客服</van-button></div> </div> <div v-if="msginfotip==83"> <div style="font-size: 16px;margin-left: 10px;margin-top: 10px;"> 国家规定禁止医疗单位</div> <div style="font-size: 16px;margin-left: 10px;margin-top: 10px;">科室转让、科室出让、承包、出租、外包、求租、出兑、求购</div> <div style="font-size: 16px;margin-left: 10px;margin-top: 10px;">证件合作、租证、挂证</div> <div style="font-size: 16px;margin-left: 10px;margin-top: 10px;">发布违规信息一律封号</div> <div style="font-size: 16px;margin-left: 10px;margin-top: 10px;" @click="infomsg=false"><van-button native-type="button" type="info" style="text-align: center;border-radius: 6px;margin:5px 0px;width: 50%; background-color: #087fe5; border-color: #087fe5;font-size: 16px; ">我知道了</van-button></div> </div> <div v-if="msginfotip==84"> <div style="font-size: 16px;margin-left: 10px;margin-top: 10px;text-align:center;"> 保存失败! </div> <div style="font-size: 16px;margin-left: 10px;margin-top: 10px;text-align:center;">介绍至少要写36字</div> <div style="font-size: 16px;margin-left: 10px;margin-top: 10px;text-align:center;" @click="infomsg=false"><van-button native-type="button" type="info" style="text-align: center;border-radius: 6px;margin:5px 0px;width: 50%; width: 50%; line-height: 35px;height: 35px; background-color: #087fe5; border-color: #087fe5;font-size: 16px; ">知道了</van-button></div> </div> <div v-if="msginfotip==85" style="text-align: center;"> 康强客服 <div style="margin-top: 10px;"> <van-button native-type="button" onclick="copyTextToClipboard('kqzrjm','微信复制成功')" type="info" style="text-align: center;border-radius: 10px;margin:5px 0px;width: 50%; background-color: #087fe5; border-color: #087fe5;font-size: 16px; "><van-icon style="margin-right: 5px;cursor: pointer;" class-prefix="iconfont" size="20" color="#fff" name="bangdingweixin" ></van-icon>kqzrjm</van-button> <van-button native-type="button" @click="infomsg=false;openkefu()" icon="https://img.kq36.com.cn/chat_white.gif?v=1" type="info" style="text-align: center;border-radius: 10px;margin:5px 0px;width: 50%; background-color: #087fe5; border-color: #087fe5;font-size: 16px; ">在线沟通</van-button> <div style="color:rgb(159 159 159);font-size: 13px;margin-top: 10px;">邀您提建议,采纳后给您发红包</div> </div> </div> <div v-if="msginfotip==86" style="text-align: center;"> 您要加类别,请告知客服 <div style="margin-top: 10px;"> <van-button native-type="button" onclick="copyTextToClipboard('kqzrjm','微信复制成功')" type="info" style="text-align: center;border-radius: 10px;margin:5px 0px;width: 50%; background-color: #087fe5; border-color: #087fe5;font-size: 16px; "><van-icon style="margin-right: 5px;cursor: pointer;" class-prefix="iconfont" size="20" color="#fff" name="bangdingweixin" ></van-icon>kqzrjm</van-button> <van-button native-type="button" @click="infomsg=false;openkefu()" icon="https://img.kq36.com.cn/chat_white.gif?v=1" type="info" style="text-align: center;border-radius: 10px;margin:5px 0px;width: 50%; background-color: #087fe5; border-color: #087fe5;font-size: 16px; ">在线沟通</van-button> </div> </div> <div v-if="msginfotip==87" style="text-align: center;"> <div style="margin-top: 10px;line-height: 28px;font-size: 17px;"> <div>非VIP至多发2条信息 <a style="color:#0099e6" href="javascript:;" @click="addbz('/m/mylists.aspx',1)" >去修改></a></div> <div>VIP会员可发4条-299元/年</div> <div style="font-size: 12px;">权限: 发更多、VIP 标识、看电话、康强推荐、牌画</div> <div style="display: flex;justify-content: center;margin-top: 10px;"><van-button @click="infomsg=false;othercz()" native-type="button" type="info" style="height: 35px; text-align: center;border-radius: 10px;margin:5px 0px;width: 100px; background-color: #fff; color: #555; border-color: #555;font-size: 16px; ">取消</van-button> <van-button @click="addbz('/m/setvip.aspx',1)" native-type="button" type="info" style="height: 35px; text-align: center;border-radius: 10px;margin:5px 0px;margin-left: 10px; width: 150px; background-color: #087fe5; border-color: #087fe5;font-size: 16px; ">办理 VIP</van-button> </div> </div> </div> </div></div> <div @click="infomsg=false;othercz()" class="van-popupbottomicon---close" ><van-icon class-prefix="iconfont" size="28" color="#fff" name="guanbi1" ></van-icon></div> </van-popup> <van-popup v-model="fuwushow" :overlay="false" duration="0" @closed="fuwushow=false" :closeOnPopstate="false" :lazy-render="true" :safe-area-inset-bottom="false" position="center" :style="{overflowY:'hidden',width:'100%',maxWidth:'640px'}" > <div class="allclass keybordfiexd" > <div class="title" style="padding-top: 20px;" ><div><van-icon @click="savefuwujs(1)" style="padding: 10px 5px 10px 10px;" class-prefix="iconfont" size="18" color="#fff" name="guanbi" ></van-icon></div> <div>介绍</div> <div @click="savefuwujs" style="font-size: 17px;">保存</div></div> <div style="padding:10px;" :style="{height:(screenHeight-45)+'px',overflowY:'auto'}" id="classtypengun1"> <div> <van-cell-group style="background: #F6F6F6; border-radius: 5px; border: 1px solid #DCDCDC;"> <van-field style="padding: 10px 16px;" v-model="remark" rows="1" :show-word-limit="false" label="" :autofocus="false" maxlength="4000" :autosize=" { maxHeight: 200, minHeight: 150 }" type="textarea" placeholder="" ></van-field> </van-cell-group> <div style="padding: 10px;color: #a8a8a8;">介绍、医保、设备、详细介绍、成立时间 <div style="color: #000;" v-if="firstclass_!=1&&firstclass_!=4&&firstclass_!=2">消防、床位、级别、环评</div></div> <div style="display: flex;justify-content: center;margin-top: 30px;"> <input type="button" value="保存" @click="savefuwujs" class="button btn_red" style="border-radius: 5px;width: 150px !important;font-size: 16px; padding: 5px 0px 5px 5px;margin-top:10px" /><br /> </div> </div> <div style="height:100px;" class="padding-safe-bottom"></div> </div> </div> </van-popup> <van-popup v-model="infomsg_top.show" :overlay="false" duration="0" @closed="savetype_n" :closeOnPopstate="false" :lazy-render="true" :safe-area-inset-bottom="false" position="center" :style="{overflowY:'hidden',width:'100%',maxWidth:'640px'}" > <div v-if="infomsg_top.typen==1"> <div class="allclass allclass_" > <van-sticky> <div class="title" style="padding-top: 20px;" ><div><van-icon @click="savetype_n" style="padding: 10px 5px 10px 10px;" class-prefix="iconfont" size="18" color="#fff" name="guanbi" ></van-icon></div> <div>可多选标题类别</div> <div @click="savetype_n(1)" style="font-size: 17px;" >保存</div></div> <div class="selected" style="display: block;" v-if="!isEmpty(classids)"> <li v-for="item3 in classids" @click="class2click(item3.c1,item3.c2)" >{{returnJobnameByid(item3.c1,item3.c2)}}</li> </div> </van-sticky> <div style="padding:10px;" :style="{height:(screenHeight-45)+'px',overflowY:'auto'}" id="classtypengun"> <div class="uni-select-cityclass allclass"> <div style="display:flex; flex-direction: row; width: 100%; flex-wrap: nowrap;" > <div class="scroll-Y classi_id" :style="{height:(screenHeight*0.8)+'px',width:temp_classI>0?'100px':'auto',flex:temp_classI>0?'none !important':'1'}" > <div v-for="item1 in classI_list" > <li :class="(temp_classI==item1.ClassI_Id)?'on':''" @click="class1click(item1.ClassI_Id,1)">{{item1.ClassI_Name}} <i v-if="classidnum_1(item1.ClassI_Id)">{{classidnum_1(item1.ClassI_Id)}}</i> </li> </div> <li @click="msginfotip=86;infomsg=true;" >其他</li> <div style="height:50px;" class="padding-safe-bottom"></div> </div> <div class="scroll-Y classii_id" :style="{height:(screenHeight*0.8)+'px'}" v-show="temp_classI>0" > <div v-for="item2 in classII_list"> <li v-if="temp_classI==item2.ClassI_Id" :class="isclassids_2(item2.ClassI_Id,item2.ClassII_Id)?'on':''" @click="class2click(item2.ClassI_Id,item2.ClassII_Id,1)">{{item2.ClassII_Name}}</li> </div> </div> </div></div></div> </div> </div> <div v-if="infomsg_top.typen==2"> <div class="allclass allplace_" > <van-sticky> <div class="title" style="padding-top: 20px;" ><div><van-icon @click="savetype_n" style="padding: 10px 5px 10px 10px;" class-prefix="iconfont" size="18" color="#fff" name="guanbi" ></van-icon></div> <div>可多选城市</div> <div @click="savetype_n(1)" style="font-size: 17px;" >保存</div></div> <div class="selected" id="selectedpro_"style="display: block;" v-if="!isEmpty(proids)"> <li v-for="item3 in proids" @click="clearquanguo(item3.c1,item3.c2,item3.c3)" >{{(returnCitynameByid(item3.c1,item3.c2,item3.c3)=="省份"||returnCitynameByid(item3.c1,item3.c2,item3.c3)=="城市")?"全国":returnCitynameByid(item3.c1,item3.c2,item3.c3)}}</li> </div> </van-sticky> <div style="padding:10px;" :style="{height:(screenHeight-45)+'px',overflowY:'auto'}" id="Div1"> <div class="uni-select-cityclass "> <div style="display:flex; flex-direction: row; width: 100%; flex-wrap: nowrap;" > <div class="scroll-Y classi_id" :style="{height:(popHeight)+'px',width:temp_proI>0?'100px':'auto',flex:temp_proI>0?'none !important':'1'}" > <li style="display: none;" :class="temp_proI==0?'ont':''" @click="pro1click(0,1)">全国</li> <div v-for="item1 in pro_list" > <li :class="(temp_proI==item1.ProID)?'on':''" @click="pro1click(item1.ProID,1);">{{item1.ProName}} <i v-if="proidnum_1(item1.ProID)">{{proidnum_1(item1.ProID)}}</i> </li> </div> <div style="height:50px;" class="padding-safe-bottom"></div> </div> <div class="scroll-Y classii_id" :style="{height:(popHeight)+'px'}" v-show="temp_proI>0" v-if="temp_proI!=15&&temp_proI!=13&&temp_proI!=27&&temp_proI!=8" > <li v-if="temp_proI!=15&&temp_proI!=13&&temp_proI!=27&&temp_proI!=8" :class="isproids_2(temp_proI,0)?'ont':''" @click="pro2click(temp_proI,0,1)">全{{returnCitynameByid(temp_proI,0)}}</li> <div v-for="item2 in city_list"> <li v-if="temp_proI==item2.ProID" :class="temp_proII==item2.CityID?'on':''" @click="pro2click(item2.ProID,item2.CityID,1)">{{item2.CityName}} <i v-if="proidnum_2(item2.CityID)">{{proidnum_2(item2.CityID)}}</i> </li> </div> <div style="height:50px;" class="padding-safe-bottom"></div> </div> <div class="scroll-Y classiii_id" :style="{height:(popHeight)+'px'}" v-show="temp_proII>0" > <li v-if :class="isproids_3(temp_proI,temp_proII,0)?'on':''" @click="pro3click(temp_proI,temp_proII,0,1)">全{{returnCitynameByid(temp_proI,temp_proII,0)}}</li> <div v-for="item3 in area_list"> <li v-if="temp_proII==item3.CityID" :class="isproids_3(item3.ProID,item3.CityID,item3.AreaID)?'on':''" @click="pro3click(item3.ProID,item3.CityID,item3.AreaID,1)">{{item3.AreaName}}</li> </div> <div style="height:50px;" class="padding-safe-bottom"></div> </div> </div> </div> </div> </div> </div> </van-popup> <div class="wrap"> <div id="shadow" class="shadeloading" onclick="$(this).hide();$('#searbtn').hide();$('.mylogindiv').hide();setnogun(0)"> </div> <div id="pubGlobal_topAlert01" style="background-color: rgb(4, 134, 196); padding: 10px 0px 10px 10px;display: flex;justify-content: space-between;align-items: center;"> <a href="javascript:;" style="color:#fff" ><van-icon v-if="!isosp().isret" @click="gobackurl" style="padding: 0px 5px 0px 0px;" class="per_s" class-prefix="iconfont" size="18" color="#fff" name="fanhui" ></van-icon>免费发布</a> <van-tag @click="addbz('/m/mylists.aspx')" class="full_btn_radius" style="margin-left: auto; border: 1px solid #69b9df;font-size: 15px;" color="#0486C4" text-color="#ffffff">管理</van-tag> </div> <div style="padding: 10px 15px;"> <div class="con_r" style="display: flex;"> <div class="title_">标题:</div> <div style="flex:1;overflow: hidden;font-size: 17px;" > <label class="lbltitle" style="display: none">选择标题</label> <input name="title" type="hidden" id="title" /> <input name="titleids" type="hidden" id="titleids" /> <input name="proviceids" type="hidden" id="proviceids" /> <select name="ClassI_ID" id="ClassI_ID" style="width:84px;display: none"> <option value="">选择标题</option> <option value="2">口腔</option> <option value="8">诊所/门诊/医院</option> <option value="1">义齿公司</option> <option value="4">药店</option> </select> <div style="display:flex;flex-direction:row;"> <div id="leibies" class="leibies_" @click="infomsg_top.show=true;infomsg_top.typen=1"> {{returnclassname?returnclassname :'选择标题'}} </div> </div> </div> <div><span class="red">*</span></div> </div> <div class="con_r" style="display: flex;"> <div class="title_">城市:</div> <div style="flex:1;overflow: hidden;"> <div style="display:flex;flex-direction:row;margin-top:10px" > <div id="csdq" class="leibies_" @click="infomsg_top.show=true;infomsg_top.typen=2;changepopheight();proidsort();" > <span style="color: black; width: 100%; max-width: 270px; overflow: hidden; text-overflow: clip; white-space: nowrap; ">{{returncityname_com}}</span></div> <span class="red">*</span></div> <div id="show_ClassII_ID" style="display: none; color: #666666; margin-top: 5px; margin-bottom: 5px;"></div> <input name="tmpClassI_Id" type="hidden" id="tmpClassI_Id" /> <input name="Hidden1" type="hidden" id="Hidden1" icsdqd="tmpClassII_Id" /> <input name="Province" type="hidden" id="Province" /> <input name="City" type="hidden" id="City" /> <input name="Area" type="hidden" id="Area" /> <input name="Provincename" type="hidden" id="Provincename" /> <input name="Cityname" type="hidden" id="Cityname" /> <input name="Areaname" type="hidden" id="Areaname" /> <input name="H_Place_com" type="hidden" id="H_Place_com" /> <input name="H_Placeid" type="hidden" id="H_Placeid" /> <input name="H_Protxt" type="hidden" id="H_Protxt" /> <input name="H_Citytxt" type="hidden" id="H_Citytxt" /> <div class="selectxz" style="color: red; display: none;"></div> <span id="h_placetxt" class="Resume_Select placeholder" style="color: red; display: none;">选中地区:</span> <input name="hideCompany" type="hidden" id="hideCompany" /> <input name="username" type="hidden" id="username" /> </div> </div> <div class="con_r" style="display: flex;"> <div class="title_">性质:</div> <div style="flex:1;overflow: hidden;"> <div style="display:flex;flex-direction:row;margin-top:10px" > <div style="width:65%" > <div id="leibie" class="leibies_" onclick="$('#xingzhidiv').show();$('#shadow').show();" ><span style="color: black">选择性质</span></div> <input name="unitshow_v" type="hidden" id="unitshow_v" value="0" /> </div> <span class="red">*</span> </div> </div></div> <div v-if="isunitshow&&m_userType()=='c'" class="con_r" style="display: flex;"> <div class="title_">单位:<br><font style="font-size: 12px;">(照片/视频/简介)</font></div> <div style="flex:1"> <div style="display: flex;margin-left: 5px;margin-top:10px"> <van-radio :class="unitshow==1?'van-radio__icon--checked':''" @click="unitshow=1;$('#unitshow_v').val(1)" name="1" shape="square" style="font-size: 14px;" >公开</van-radio> <van-radio :class="unitshow==0?'van-radio__icon--checked':''" @click="unitshow=0;$('#unitshow_v').val(0)" name="0" shape="square" style="font-size: 14px;margin-left: 10px;" >隐藏</van-radio> </div> </div></div> <div class="con_r" style="display: flex;"> <div class="title_">面积:</div> <div style="flex:1;overflow: hidden;"> <div style="width:65%;margin-top:10px"> <select name="areasize" id="areasize" style="height: 41px;font-size:16px; border: #b2b2b2 1px solid;width: 100%;background-color: #fff;"> <option value="">面积</option> <option value="10-50">10-50平方米</option> <option value="51-99">51-99平方米</option> <option value="100-199">100-199平方米</option> <option value="200-299">200-299平方米</option> <option value="300-399">300-399平方米</option> <option value="400-1000">400-1000平方米</option> <option value="1000-2000">1000-2000平方米</option> <option value="2000-5000">2000-5000平方米</option> <option value="5000以上">5000以上平方米</option> <option value="">不选</option> </select> </div> </div></div> <div class="con_r" style="display: flex;"> <div class="title_">图片:</div> <div style="line-height: 20px; "> <div style="display:flex;flex-wrap:wrap;"> <ul id="photoListLife" class="photo_list2" > <li id="containerst" class="add_photo listphoto" style="width: 80px !important;" > <a id="selectfiles" href="#picture" style="line-height: 40px;" > <span style="display: none;">+</span> <label style="font-size: 14px;">+上传图片</label> </a> </li> </ul> </div> <input name="filenum" type="hidden" id="filenum" value="1" /> <input name="file1" type="hidden" id="file1" class="fileclasst" /> <input name="file2" type="hidden" id="file2" class="fileclasst" /> <input name="file3" type="hidden" id="file3" class="fileclasst" /> <input name="file4" type="hidden" id="file4" class="fileclasst" /> <input name="file5" type="hidden" id="file5" class="fileclasst" /> <input name="file6" type="hidden" id="file6" class="fileclasst" /> <input name="file7" type="hidden" id="file7" class="fileclasst" /> <input name="file8" type="hidden" id="file8" class="fileclasst" /> <input name="file9" type="hidden" id="file9" class="fileclasst" /> <input name="Picurl1" type="text" id="Picurl1" size="10" class="tab_input" style="display: none" /> <span id="imgspan1" style="display: none"> <input name="Pic1" type="file" id="Pic1" ondragstart="return false;" onpaste="return false;" ondragover="return false;" onchange="javascript:CheckExt(this)" style="width: 200px" onkeydown="return false;" onkeypress="return false;" oncut="return false;" /> <input name="Pic2" type="file" id="Pic2" ondragstart="return false;" onpaste="return false;" ondragover="return false;" onchange="javascript:CheckExt(this)" style="width: 200px" onkeydown="return false;" onkeypress="return false;" oncut="return false;" /> <input name="Pic3" type="file" id="Pic3" ondragstart="return false;" onpaste="return false;" ondragover="return false;" onchange="javascript:CheckExt(this)" style="width: 200px" onkeydown="return false;" onkeypress="return false;" oncut="return false;" /> <input name="Pic4" type="file" id="Pic4" ondragstart="return false;" onpaste="return false;" ondragover="return false;" onchange="javascript:CheckExt(this)" style="width: 200px" onkeydown="return false;" onkeypress="return false;" oncut="return false;" /> <input name="Pic5" type="file" id="Pic5" ondragstart="return false;" onpaste="return false;" ondragover="return false;" onchange="javascript:CheckExt(this)" style="width: 200px" onkeydown="return false;" onkeypress="return false;" oncut="return false;" /> <input name="Pic6" type="file" id="Pic6" ondragstart="return false;" onpaste="return false;" ondragover="return false;" onchange="javascript:CheckExt(this)" style="width: 200px" onkeydown="return false;" onkeypress="return false;" oncut="return false;" /> <input name="Pic7" type="file" id="Pic7" ondragstart="return false;" onpaste="return false;" ondragover="return false;" onchange="javascript:CheckExt(this)" style="width: 200px" onkeydown="return false;" onkeypress="return false;" oncut="return false;" /> <input name="Pic8" type="file" id="Pic8" ondragstart="return false;" onpaste="return false;" ondragover="return false;" onchange="javascript:CheckExt(this)" style="width: 200px" onkeydown="return false;" onkeypress="return false;" oncut="return false;" /> <input name="Pic9" type="file" id="Pic9" ondragstart="return false;" onpaste="return false;" ondragover="return false;" onchange="javascript:CheckExt(this)" style="width: 200px" onkeydown="return false;" onkeypress="return false;" oncut="return false;" /> </span> <p id="imgspan2" style="display: none"><span onclick="javascript:imgspan1.style.display='';imgspan2.style.display='none';" style="color: #B12A43; cursor: hand">上传更多图片</span></p> </div></div> <div class="con_r" style="display: flex;"> <div class="title_"><font style="color:#0099e6">介绍</font>:</div> <div style="flex:1;" > <van-cell-group style="background: #F6F6F6; border-radius: 5px;position: relative; border: 1px solid #DCDCDC;"> <van-field style="padding: 5px 0px;z-index: 1;" v-model="remark" rows="1" :show-word-limit="false" label="" :readonly="true" :autofocus="false" :autosize=" { maxHeight: 50, minHeight: 50 }" type="textarea" placeholder="" ></van-field> <div style="height:60px;width:100%;position: absolute;top: 0;z-index: 2;" @click="clickfwjs()"></div> </van-cell-group> <div style="height:10px"></div> <textarea name="Content" id="Content" maxlength="4000" style="width: 65%; min-height: 80px; border: 1px solid #ccc; font-size: 15px;display: none;"></textarea> </div><span class="red">*</span></div> <div style="height: 5px; line-height: 8px;background-color: #C4DEEC;">&nbsp;&nbsp;</div> <div class="con_r" style="display: flex;"> <div class="title_">联系人:</div> <div style="flex:1"> <label> <input name="ZName" type="text" id="ZName" size="50" style="width: 45% !important;" maxlength="10" /> </label><span class="red">*</span> </div> </div> <div > <div class="con_r" style="display: flex;"> <div class="title_">电话:</div> <div style="flex:1"> <label> <input name="Tel" type="text" id="Tel" size="50" style="width: 45% !important;" maxlength="11" /><span class="red">*</span> <span style="z-index: 1;color:rgb(86 86 86); margin-top: 5px; margin-left: 15px;" v-if="!showtwotel" @click="showtwotel=true;setTimeout(function(){$('#TwoTel').focus()},500) "> +电话 </span> <span style="z-index: 1; color: #AAA; margin-top: 5px; margin-left: 15px;display: none;"> <input name="iswxtel" type="hidden" id="iswxtel" autocomplete="off" /> <label data-type="iswxtel" data-id="1" class="same ">隐藏</label> <label data-type="iswxtel" data-id="0" class="same on">公开</label> </span> </label> </div></div> <div class="con_r" style="display: flex;" v-show="showtwotel"> <div class="title_">电话:</div> <div style="flex:1"> <input name="TwoTel" type="text" id="TwoTel" size="50" style="width: 45% !important;" maxlength="11" /> <span style="z-index: 1;color:rgb(86 86 86); margin-top: 5px; margin-left: 15px;" @click="$('#TwoTel').val('');showtwotel=false;"> 删除 </span> </div></div> <div class="con_r" style="display: flex;" > <div class="title_">微信:</div> <div style="flex:1"> <label> <input name="wxnum" type="text" id="wxnum" siswxtelize="50" style="width: 45% !important;" maxlength="20" /> <span style="z-index: 1; color: #AAA; margin-top: 5px; margin-left: 15px;display: none;"> <input name="isrealwxwx" type="hidden" id="isrealwxwx" autocomplete="off" /> <label data-type="isrealwxwx" data-id="1" class="samewx ">隐藏</label> <label data-type="isrealwxwx" data-id="0" class="samewx on">公开</label> </span> </label> </div></div> </div> <div class="con_r" style="display: flex;" > <div class="title_">地址:</div> <div style="flex:1"> <label> <textarea name="Address" id="Address" onblur="huoqujwd()" style="margin-top: 10px;min-height:35px; width: 100%; border: 1px solid #ccc; font-size: 15px;height:35px !important;" maxlength="100"></textarea> <input name="lnglat" type="hidden" id="lnglat" /> </label> </div></div> <div class="con_r" style="display: flex;" > <div class="title_"></div> <div style="flex:1"> <input type="button" id="tmpadd" value="保存" onclick="huoqujwd();tmpbtnok()" class="button btn_red" style="width: 65% !important;font-size: 16px; padding: 5px 0px 5px 5px;margin-top:10px" /><br /> <input type="submit" name="btnAdd" value="保存" onclick="return btnOK();" language="javascript" id="btnAdd" class="button btn_red" style="display: none" /> <br /> <input name="mod_id" type="hidden" id="mod_id" value="0" /> <input name="realtel" type="hidden" id="realtel" /> <input name="isyz" type="hidden" id="isyz" value="0" /> <input name="ischange" type="hidden" id="ischange" value="0" /> <input name="newFind_Class" type="hidden" id="newFind_Class" /> </div></div> <div style="padding:10px 15px;line-height: 25px;" v-if="!isEmpty(weiwancheng_)"> <br /> <div style="color:#0099e6">请您完善信息</div> <div v-for="(value, index) in weiwancheng_" :key="index" >{{(index+1)+"、"+value}}</div> </div> <div class="con_r" style="display: flex;margin-top: 20px;" > <div class="title_"></div> <div style="flex:1"> <a href="javascript:;" @click="msginfotip=85;infomsg=true;" style=" margin-top: 10px;margin-right: 10px;"><img src="https://img.kq36.com.cn/im/img/chat_blue.gif" style="width: 20px; height: 20px; vertical-align: middle; margin: 0px 5px;">康强客服</a> <a href="javascript:;" @click="msginfotip=80;infomsg=true;" style="margin-top: 10px;margin-left:15px;">发布须知>></a> <br /> </div> </div> <div> <br /> <br /> <br /> <br /> <br /> <br /> </div> </div> <div class="tabbar_class foot_menu" id="tabbar_class" > <ul> <li><a href="javascript:;" @click="nav('webtip','https://m.kq520.net/',1)"><span class="icon iconfont " :class="lmindex_==0?'icon_on':''">&#xe621;<label>首页</label></span></a></li> <li><a href="javascript:;" @click="addbz()"><span class="icon iconfont" :class="lmindex_==1?'icon_on':''" >&#xe616;<label>发布</a></li> <li><a href="javascript:;" @click="addbz('/m/mylists.aspx')" ><span class="icon iconfont" :class="lmindex_==2?'icon_on':''" >&#xe60c;<label>管理</label></span></a></li> <li ><a :class="lmindex_==3?'icon_on':''" href="javascript:;" @click="(isosp().isret&&!isosp().kq520mini)?nav('webtip','https://m.kq520.net/m/mymsg.aspx','0'):nav('webtip','https://m.kq520.net/m/mymsg.aspx','0')"><van-badge :content="unreadnum>0?unreadnum:''" ><span class="icon iconfont" :class="lmindex_==3?'icon_on':''" >&#xe638;</span></van-badge><label style="margin-top: -2px">消息</label></a></li> <li ><a href="javascript:;" @click="navto_rc('pages/home/index/index','https://3g.kq36.com')" ><span class="icon iconfont" >&#xe617;<label>招聘</label></span></a></li> </ul></div> <div class="mylogindiv" id="xingzhidiv" style="display: none; width: 310px; max-width: 320px; top: 30%; height: 150px;"> <div class="title"> <h4><span id="Span2" name="logintype_t">选择性质</span></h4> <p><a href="javascript:void(0)" onclick="$('.mylogindiv').hide();$('#shadow').hide();" style="cursor: pointer; border: 0px; font-size: 26px; font-weight: bold;">×</a></p> </div> <div class="con" style="padding: 10px 0 0 5px; font-size: 14px; float: left; text-align: left; overflow: hidden; width: 320px;" id="Div2"> <div style="color: #A4A4A4; font-size: 15px; margin: 10px auto"><font style="font-size: 17px; color: #262525; line-height: 40px;" class='zhuangtai'>&nbsp;<input type='checkbox' value='转让' id='F_P_Job' name='F_P_Job' autocomplete='off' class=''><label for='F_P_Job'>转让</label>&nbsp;&nbsp;<input type='checkbox' value='求购' id='F_P_Job1' name='F_P_Job' autocomplete='off' class=''><label for='F_P_Job1'>求购</label>&nbsp;&nbsp;<input type='checkbox' value='合作/合伙' id='F_P_Job2' name='F_P_Job' autocomplete='off' class=''><label for='F_P_Job2'>合作/合伙</label>&nbsp;&nbsp;<input type='checkbox' value='加盟' id='F_P_Job3' name='F_P_Job' autocomplete='off' class=''><label for='F_P_Job3'>加盟</label><div style='text-align: center;line-height: 15px;margin-top: 10px;'><input type='button' id='queding' value='确定' ></div></font></div> </div> </div> <img src="" style="display:none;" class="viewimglist" id="viewimglist" data-original="" /> </div> </div> <!--动态码--> <div class="mylogindiv" id="phonelogin" style="display: none; width: 320px; max-width: 320px; top: 30%;"> <div id="modify-phone" class="modifyphone-popup"> <h3>手机动态码登录<span style="float:right; margin-right:5px; cursor:pointer;height:30px;width:30px;font-size: 30px;" onclick="$('#phonelogin').hide();$('.shadeloading').hide();">×</span></h3> <div class="popup-verify"> <div> <input name="mobile" id="mobile" placeholder="手机号" maxlength="11" class="ipt" type="tel"> <input type="hidden" value="m" name="cfrom" id="cfrom"><input type="hidden" value="0" name="multuser" id="multuser"><input type="hidden" value="login" name="typen" id="typen"><input type="hidden" value="https://3g.kq36.com/" name="typen2" id="typen2"><input id="get-code" name="get-code" value="获取验证码" class="ipt-code" type="button"> </div> <div> <input name="code" id="code" placeholder="短信验证码" maxlength="4" class="ipt ipt-short" type="tel"> </div> <div class="usertype"> <input type="radio" value="c" name="UserType" id="UserType"><label for="UserType">企业帐号</label><input type="radio" value="p" name="UserType" id="Radio1"><label for="Radio1">求职帐号</label> </div> <div style="text-align: center"> <input value="登录并发布" id="modify-btn" class="submit-btn" type="button"> </div> </div> </div> </div> <!--动态码--> <!--wrap--end--> <div class="webRight"></div> <script src="https://img.kq36.com.cn/kq600/vant/lib/vue.min.js?v=10"></script> <script src="https://img.kq36.com.cn/kq600/vant/lib/vant.min.js?v=10"></script> <script type="module"> import common from "https://img.kq36.com.cn/mkq520/js/mixin/common.js?v=mkq520n_3.2.47"; import {bzI_Json,bzII_Json} from 'https://img.kq36.com.cn/mkq520/js/ClassJson.js?v=13'; import {proJson,cityJson,areaJson} from 'https://img.kq36.com.cn/mkq520/js/CityJson_.js?v=4'; vm= new Vue({ el: '#app', mixins:[common], computed: { }, data: function () { return { screenHeight: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, popHeight: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, screenWidth: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, visible: false,status: 'more', Job_ClassI_Id:0,Job_ClassII_Id:0,Job_ClassIII_Id:0, temp_classI:0, temp_classII:0, temp_classIII:0, temp_proI:0, temp_proII:0, temp_proIII:0, classI_list:[], classII_list:[], pro_list:[], city_list:[], area_list:[], classids:[], proids:[], weiwancheng_:[], fuwushow:false, remark:'', unitshow:0, isunitshow:false, showtwotel:false, firstclass_:0, lmindex_:1 } },computed:{ returnclassname(){ let _data=""; for(var i=0;i<this.classids.length;i++){ _data+=(i==0?'':',') +this.returnJobnameByid(this.classids[i].c1,this.classids[i].c2); } return _data?_data:'选择标题'; }, returncityname_com(){ let _data=""; for(var i=0;i<this.proids.length;i++){ _data+=(i==0?'':',') +this.returnCitynameByid(this.proids[i].c1,this.proids[i].c2,this.proids[i].c3); } return _data?_data:'选择城市'; }, classidnum_1(){ return function(class1){ var newArr = this.classids.filter(function(item){return item.c1 == class1; }) return newArr.length; } }, isclassids_2(){ return function(class1,class2){ let _index=this.classids.findIndex(p=>p.c1==class1&&p.c2==class2); if (_index > -1) {return true;}else{return false;} } }, proidnum_1(){ return function(class1){ var newArr = this.proids.filter(function(item){return item.c1 == class1; }) return newArr.length; } }, proidnum_2(){ return function(class2){ var newArr = this.proids.filter(function(item){return item.c2 == class2; }) return newArr.length; } }, isproids_2(){ return function(class1,class2){ let _index=this.proids.findIndex(p=>p.c1==class1&&p.c2==class2); if (_index > -1) {return true;}else{return false;} } }, isproids_3(){ return function(class1,class2,class3){ let _index=this.proids.findIndex(p=>p.c1==class1&&p.c2==class2&&p.c3==class3); if (_index > -1) {return true;}else{return false;} } } },mounted() { var _this=this; $("#ziyuanjia").hide(); this.popHeight=this.popHeight-70; if(this.m_userType()==""){ this.isLoginMember('','才能发布'); } let xz_="选择性质"; if(xz_.indexOf("合作")!=-1||xz_.indexOf("加盟")!=-1){this.isunitshow=true;}else{this.isunitshow=false;} this.unitshow=parseInt($("#unitshow_v").val()); this.remark=$("#Content").val(); this.pro_list=proJson; this.city_list=cityJson; this.area_list=areaJson; this.classI_list=bzI_Json; this.classII_list=bzII_Json; if($("#titleids").val()!=""){ this.classids=JSON.parse($("#titleids").val());} if($("#proviceids").val()!=""){ this.proids=JSON.parse($("#proviceids").val());} console.info('====='+$("#TwoTel").val()); if($("#TwoTel").val()&&$("#TwoTel").val()!=""){this.showtwotel=true;}else{this.showtwotel=false;} if ($("#mod_id").val() != "0") {//添加 if($("#areasize").val()==""){ this.weiwancheng_.push("未选面积"); } var iss = 0; $(".fileclasst").each(function () { if ($(this).val() != "") { iss++; }}); if(iss==0){ this.weiwancheng_.push("未传图片"); } if(this.remark.length<=80){ this.weiwancheng_.push("介绍要80字以上"); } if($("#Address").val().length<=12){ this.weiwancheng_.push("地址要12字以上"); } console.info('josn---'+JSON.stringify(this.weiwancheng_)); } },methods:{ othercz(){ if(this.msginfotip==87){ this.addbz('/m/mylists.aspx',1); } }, proidsort(){ var _this=this; if(_this.isosp().uniname!='mp-alipay'){ if(_this.proids&&!_this.isEmpty(_this.proids)){ _this.pro_list=_this.pro_list.sort(function(a, b) { let _index=_this.proids.findIndex(p=>p.c1== a.ProID); let _index1=_this.proids.findIndex(p=>p.c1== b.ProID); if(_index!=-1&&_index1==-1) { return -1; // 顺序不变 } else { return 1; // 交换顺序 } }) } } }, cityidsort(){ var _this=this; if(_this.isosp().uniname!='mp-alipay'){ if(_this.proids&&!_this.isEmpty(_this.proids)){ _this.city_list=_this.city_list.sort(function(a, b) { let _index=_this.proids.findIndex(p=>p.c2== a.CityID); let _index1=_this.proids.findIndex(p=>p.c2== b.CityID); if(_index!=-1&&_index1==-1) { return -1; // 顺序不变 } else { return 1; // 交换顺序 } }) }} }, areaidsort(){ var _this=this; if(_this.isosp().uniname!='mp-alipay'){ if(_this.proids&&!_this.isEmpty(_this.proids)){ _this.area_list=_this.area_list.sort(function(a, b) { let _index=_this.proids.findIndex(p=>p.c3== a.AreaID); let _index1=_this.proids.findIndex(p=>p.c3== b.AreaID); if(_index!=-1&&_index1==-1) { return -1; // 顺序不变 } else { return 1; // 交换顺序 } }) }} }, changepopheight(){ let kk_= window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; kk_=kk_-70; var _this=this; setTimeout(() => { console.info('selectedpro_==='+$("#selectedpro_").innerHeight()); _this.popHeight=kk_-$("#selectedpro_").innerHeight(); }, 300); }, class1click(ClassI_Id,click){ console.info(JSON.stringify(this.classids)); let _index=this.classids.findIndex(p=>p.c1== ClassI_Id); if(this.classids.length>=3&&_index==-1){ this.showtips('至多只能选3个类别!'); return; } if(ClassI_Id>0){ this.temp_classI=ClassI_Id; } }, class2click(ClassI_Id,ClassII_Id,click){ let _index=this.classids.findIndex(p=>p.c1== ClassI_Id&&p.c2==ClassII_Id); if (_index > -1) { this.classids.splice(_index, 1); }else{ if(this.classids.length>=3){ this.showtips('至多只能选3个类别!'); return; } this.classids.push({c1:ClassI_Id,c2:ClassII_Id}); } console.info(JSON.stringify(this.classids)); }, BadWord(strn){ var tmpstr=""; var r = strn.replace(/承.{0,3}包/ig,"承包"); if(r.indexOf("承包")!=-1){tmpstr="承包";} r = r.replace(/求.{0,3}租/ig,"求租"); if(r.indexOf("求租")!=-1){tmpstr="求租";} r = r.replace(/出.{0,3}租/ig,"出租"); if(r.indexOf("出租")!=-1){tmpstr="出租";} r = r.replace(/科.{0,3}转/ig,"科转"); if(r.indexOf("科转")!=-1){tmpstr="科转";} r = r.replace(/租.{0,3}证/ig,"租证"); if(r.indexOf("租证")!=-1){tmpstr="租证";} r = r.replace(/挂.{0,3}靠/ig,"挂靠"); if(r.indexOf("挂靠")!=-1){tmpstr="挂靠";} r = r.replace(/外.{0,3}包/ig,"外包"); if(r.indexOf("外包")!=-1){tmpstr="外包";} r = r.replace(/出.{0,3}兑/ig,"出兑"); if(r.indexOf("出兑")!=-1){tmpstr="出兑";} r = r.replace(/科.{0,3}室.{0,3}求.{0,3}购/ig,"科室求购"); if(r.indexOf("科室求购")!=-1){tmpstr="科室求购";} r = r.replace(/证.{0,3}件.{0,3}合.{0,3}作/ig,"证件合作"); if(r.indexOf("证件合作")!=-1){tmpstr="证件合作";} r = r.replace(/科.{0,3}室.{0,3}转.{0,3}让/ig,"科室转让"); if(r.indexOf("科室转让")!=-1){tmpstr="科室转让";} r = r.replace(/科.{0,3}室.{0,3}出.{0,3}让/ig,"科室出让"); if(r.indexOf("科室出让")!=-1){tmpstr="科室出让";} return tmpstr }, savefuwujs(close){ let r = this.BadWord(this.remark); if (r!="") { //this.remark=this.remark.replace("承包","<div contenteditable='true'>承包</div><br/>\n====="); this.msginfotip=83; this.infomsg=true; return ; } if(close==1){ $("#Content").val(this.remark); this.fuwushow=false; }else{ if(this.remark.length>4000){ this.showtips('介绍不超过4000字'); }else if(this.remark.trim().length<36){ this.msginfotip=84; this.infomsg=true; }else{ $("#Content").val(this.remark); this.fuwushow=false; } } }, pro1click(ClassI_Id,click){ console.info(JSON.stringify(this.classids)); let _index=this.proids.findIndex(p=>p.c1== ClassI_Id); if(this.proids.length>=10&&_index==-1){ this.showtips('至多只能选10个城市!'); return; } this.cityidsort(); if(ClassI_Id>0){ this.clearquanguo(0); this.temp_proI=ClassI_Id; this.temp_proII=0; if (ClassI_Id == 15) {//北京 //如果是直辖市 this.pro2click(ClassI_Id,146,click); } else if (ClassI_Id == 13) {//天津 this.pro2click(ClassI_Id,131,click); } else if (ClassI_Id == 27) {//重庆 this.pro2click(ClassI_Id,271,click); } else if (ClassI_Id == 8) {//重庆 this.pro2click(ClassI_Id,88,click); } }else{ this.temp_proI=0; this.temp_proII=0;this.temp_proIII=0; this.proids=[{"c1":0,"c2":0,"c3":0}]; this.savetype_n(); } }, pro2click(ClassI_Id,ClassII_Id,click){ if(ClassII_Id==0){ this.temp_proII=0; this.temp_proIII=0; this.proids= this.proids.filter(function(item){return (item.c1 != ClassI_Id||(item.c1==ClassI_Id&&item.c2==0))}); this.pro3click(ClassI_Id,0,0,click); return; }else{ this.clearquanguo(ClassI_Id,0,0); } let _index=this.proids.findIndex(p=>p.c1== ClassI_Id); if(this.proids.length>=10&&_index==-1){ this.showtips('至多只能选10个城市!'); return; } this.areaidsort(); if(ClassII_Id>0){ this.temp_proII=ClassII_Id; } console.info(JSON.stringify(this.proids)); }, pro3click(ClassI_Id,ClassII_Id,ClassIII_Id,click){ if(ClassI_Id==0){ this.proids=[]; }else{ if(ClassIII_Id==0){ this.proids= this.proids.filter(function(item){return (item.c2 != ClassII_Id||(item.c2==ClassII_Id&&item.c3==0));}) }else{ this.clearquanguo(ClassI_Id,ClassII_Id,0); } console.info('=='+JSON.stringify(this.proids)); let _index=this.proids.findIndex(p=>p.c1== ClassI_Id&&p.c2==ClassII_Id&&p.c3==ClassIII_Id); console.info(_index+"***"+ClassII_Id+"**"+ClassIII_Id); if (_index > -1) { this.proids.splice(_index, 1); }else{ if(this.proids.length>=10){ this.showtips('至多只能选10个城市!'); return; } this.proids.push({c1:ClassI_Id,c2:ClassII_Id,c3:ClassIII_Id}); } } console.info(JSON.stringify(this.proids)); this.changepopheight(); }, clearquanguo(c1,c2,c3){//清除全国 let _index=this.proids.findIndex(p=>p.c1== c1&&p.c2==c2&&p.c3==c3); if(c1==0){ _index=this.proids.findIndex(p=>p.c1== 0); } if (_index > -1) { this.proids.splice(_index, 1); this.changepopheight(); } }, clickfwjs(){ this.fuwushow=true; this.charumor(); }, charumor(){ if(this.remark.trim()==""){ try { if(!this.isEmpty(this.classids) ){ var leibie=this.classids[0].c1; this.firstclass_=leibie; if($("#title").val().indexOf('加盟/招商')!=-1){ this.remark="品牌名称:\n优势/支持:\n条件/费用:\n加盟流程:"; }else{ this.remark="一、设备:\n二、医保:\n三、价格:\n四、详细介绍:\n五、成立时间:"; } }else{ this.remark="一、设备:\n二、医保:\n三、价格:\n四、详细介绍:\n五、成立时间:"; } } catch (error) { } } }, savetype_n(t){ if(this.infomsg_top.typen==1){ var _title=""; this.classids.forEach(element => { _title +=(_title==""?"":",")+this.returnJobnameByid(element.c1,element.c2); }); console.info('===='+_title); $("#title").val(_title); // $("#leibies span").html(_title==""?"选择标题":_title); $("#titleids").val(JSON.stringify(this.classids)); if(_title.indexOf('加盟/招商')!=-1&&t==1){ if(this.m_userType()=='p'){ this.msginfotip=81; this.infomsg=true; return false; } var isaution_="0"; if(isaution_=="0"){ this.msginfotip=82; this.infomsg=true; return false; } } }else if(this.infomsg_top.typen==2){ var _title=""; var firstcity=""; let i=0; this.proids.forEach(element => { if(i==0){ if (element.c1 == 15) {//北京 //如果是直辖市 firstcity=this.returnCitynameByid(element.c1,0,0)+(element.c3>0?this.returnCitynameByid(element.c1,element.c2,element.c3):""); } else if (element.c1 == 13) {//天津 firstcity=this.returnCitynameByid(element.c1,0,0)+(element.c3>0?this.returnCitynameByid(element.c1,element.c2,element.c3):""); } else if (element.c1 == 27) {//重庆 firstcity=this.returnCitynameByid(element.c1,0,0)+(element.c3>0?this.returnCitynameByid(element.c1,element.c2,element.c3):""); } else if (element.c1 == 8) {//重庆 firstcity=this.returnCitynameByid(element.c1,0,0)+(element.c3>0?this.returnCitynameByid(element.c1,element.c2,element.c3):""); }else{ firstcity=this.returnCitynameByid(element.c1,0,0)+ (element.c2>0?this.returnCitynameByid(element.c1,element.c2,0):"")+ (element.c3>0?this.returnCitynameByid(element.c1,element.c2,element.c3):""); } } _title +=(_title==""?"":",")+(this.returnCitynameByid(element.c1,element.c2,element.c3)); i++; }); console.info('===='+_title); $("#H_Placeid").val(JSON.stringify(this.proids)); $("#csdq span").html(_title==""?"选择城市":_title); $("#proviceids").val(JSON.stringify(this.proids)); if($("#Address").val()==""&&firstcity!=""){ $("#Address").val(firstcity); } } this.infomsg_top.show=false} } }); </script> <iframe v-if="m_userType()!=''" style="position: fixed; right: 0px; bottom: 0px;margin: 0; z-index: 999999998;background:white;" src="/im/m/im.1.2.asp?ret=&type=zr" id="WEBimIframe" name="webim" width="0" height="0" frameborder="0"></iframe> <style> .con_r{display: flex;align-items: center; margin-bottom: 3px;} .title_{min-width: 60px;flex: none;text-align: center;} .leibies_{color: #000; padding: 7px 15px 7px 5px;} .van-cell__value{flex:2;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;} #classtypengun1 .van-cell {padding: 0px;font-size: 17px;} .van-cell {font-size: 15px;} .classi_id li i,.classii_id li i{position:absolute;left:4px;top:-2px;font-weight:bold;color:#0099e6;font-size:9px} .allclass_ .classii_id li:before,.allplace_ .classiii_id li:before{content:"";width:16px;height:16px;border:1px solid #ccc;border-radius:10%;position:absolute;left:0px;top:10px} .allplace_ .classiii_id li.on:before{content:"";width:16px;height:16px;border:1px solid #0099e6;border-radius:10%;position:absolute;left:0px;top:10px} .allclass_ .classii_id li.on:after,.allplace_ .classiii_id li.on:after{content:"";width:8px;height:4px;position:absolute;left:5px;top:15px;border-left:1px solid #0099e6;border-bottom:1px solid #0099e6;display:inline-block;transform:rotate(-45deg);-webkit-transform:rotate(-45deg)} .allplace_ .classiii_id li,.allclass_ .classii_id li{padding-left:22px} .allclass_ .classii_id li.on:before,.allplace_ .classii_id li.ont:before{content:"";width:16px;height:16px;border:1px solid #0099e6;border-radius:10%;position:absolute;right:10px;display:inline-block;top:10px} .allclass_ .classiii_id li.on:after,.allplace_ .classii_id li.ont:after{content:"";width:8px;height:4px;position:absolute;right:14px;top:15px;border-left:1px solid #0099e6;border-bottom:1px solid #0099e6;display:inline-block;transform:rotate(-45deg);-webkit-transform:rotate(-45deg)} .selected li{cursor:pointer;display:inline-block;width:auto;margin:0 5px 5px 0;position:relative;text-align:center;border:1px solid #dcdcdc;color:#626262;border-radius:5px;height:20px;line-height:20px;white-space:nowrap;padding:2px 13px 2px 5px;font-size:12px} </style> <input name="thuserid" type="hidden" id="thuserid" value="0" /> <input name="zrnum" type="hidden" id="zrnum" /> <input name="tmpusertype" type="hidden" id="tmpusertype" /> <input name="ff" type="hidden" id="ff" value="0" /> <input name="rettelListtts" type="hidden" id="rettelListtts" /> <script id="photoinfo" type="text/x-jquery-tmpl"> <li class='im${id} add_photo mainphoto xc' style='background: url(${PhotoImg}) no-repeat 50% 50%; background-size: cover'><span onclick='' class='upload_shoimg_span' img-src='${PhotoImgt}'></span> {{if ischeck==0}} <span class='upload_myxc_span'>审核中</span> {{/if}} <span onclick='delPic(${id},0)' class='closep'>×</span></li> </script> <input name="imgPicurl" type="text" id="imgPicurl" size="10" class="tab_input" style="display: none" /> <input name="imgsr" type="file" id="imgsr" ondragstart="return false;" onpaste="return false;" ondragover="return false;" onchange="$(&#39;#imgspan2&#39;).show()" style="width: 200px; display: none" onkeydown="return false;" onkeypress="return false;" oncut="return false;" /> <input type="hidden" value="634e1KbqS+3BaqTMZFRxLJigU6tVzS4XBcASOJ35DC64aCpViWH96E7hwt5q/BJjKR8deL0n189rjYNePnvCSr8" id="setthers" /> <input type="hidden" value="" id="settherstype" /> <script> $(document).ready(function () { if ($("#mod_id").val() == "0") { $("#file1").val(""); $("#file2").val(""); $("#file3").val(""); $("#file4").val(""); $("#file5").val(""); } }); function improve(c) { // layer.msg('未开通直聊账号!'); } function delpicNow(v, m,id) { //询问框 layer.confirm('确定要删除照片?', { icon: 3, btn: ['删除', '取消'] //按钮 }, function () { if (id != undefined && id != "" && id != 0) { $.get("/Ajax/phone.aspx", { type: "delpic", tranid: id }, function (da) { }); } $("#file" + v + "").val(""); $(".im" + v + "").hide(); layer.closeAll('loading'); layer.msg("删除成功!", { icon: 1 }); $("#containerst").show(); try{ uploader.refresh(); }catch(e){} }, function () { }); } function delPic(v, m) { //询问框 layer.confirm('确定要删除照片?', { icon: 3, btn: ['删除', '取消'] //按钮 }, function () { }, function () { }); } </script> <script> function huoqujwd(){ var address = $("#Address").val(); if(address!=""){ geocoder.getLocation(address, function(status, result) { console.info(JSON.stringify(result.geocodes[0].addressComponent.city)); if (status === 'complete'&&result.geocodes.length) { var lnglat = result.geocodes[0].location; console.info(lnglat); $("#lnglat").val(lnglat); try { $("#Provincename").val(result.geocodes[0].addressComponent.province); $("#Cityname").val(result.geocodes[0].addressComponent.city); $("#Areaname").val(result.geocodes[0].addressComponent.district); } catch (error) { } //document.getElementById('lnglat').value = lnglat; }else{ log.error('根据地址查询位置失败'); } }); } } function preimg(_src) { $("#viewimglist").attr("src", _src); $("#viewimglist").attr("data-original", _src); $('.viewimglist').viewer({ url: 'data-original', button: true, title: false, keyboard: true, movable: false, loop: true, zIndex: 19891014011, navbar: false, toolbar: { zoomIn: 1, zoomOut: 1, oneToOne: 1, reset: 1, oneToOne: 0, prev: 0, play: 0, next: 0, rotateLeft: 1, rotateRight: 1, flipHorizontal: 0, flipVertical: 0, }, viewed: function () { $('.viewer-play').html('播放') $('.viewer-prev').html('上一张') $('.viewer-next').html('下一张') $('.viewer-rotate-left').html('左转') $('.viewer-rotate-right').html('右转') $('.viewer-flip-horizontal').html('水平翻转') $('.viewer-flip-vertical').html('垂直翻转') $('.viewer-reset').html('重置') $('.viewer-one-to-one').html('原图') $('.viewer-zoom-out').html('缩放') $('.viewer-zoom-in').html('放大') } }); $("#viewimglist").click(); } $(document).ready(function () { var viewst = $("#__VIEWSTATE").val(); if (viewst.indexOf("**") != -1) { location.reload(); } var dataid11 = $("#mod_id").val(); if (dataid11 != "" && dataid11 != "0" && dataid11 != 0) { $(".delinfo").show(); } else { $(".delinfo").hide(); } $(".delinfo").click(function () { layer.confirm('确认要删除?删除数据不可恢复!', { btn: ['删除', '取消'] //按钮 }, function () { var dataid = $("#mod_id").val(); if (dataid != "") { $.get("/Ajax/phone.aspx", { type: "deldata", cotype: "del", tranid: dataid }, function (da) { alert(da); window.location.href = "/index.aspx?t=" + new Date().getTime(); }); } }, function () { }); }); var isyanz = 0; var _mod_idn = $("#mod_id").val(); var _realteln = $("#realtel").val(); var _Teln = $("#Tel").val(); if (_mod_idn > 0) { if ($("#tmpClassI_Id").val() > 0) { $("#ClassI_ID").val($("#tmpClassI_Id").val()); } var _xzz = $("#newFind_Class").val(); $(".selectxz").html("性质:" + _xzz + ""); if (_xzz != "" && _xzz != "0") { // var kk = _xzz.split(','); $.each(_xzz.split(','), function (index, value) { // alert(i + "..." + value); $("input:checkbox[value='" + value + "']").attr('checked', 'true'); }); } $('#ClassI_ID').val($("#tmpClassI_Id").val()); } $('.same').click(function () { var thistype = $(this).attr("data-type"); var thisid = $(this).attr("data-id"); if (thisid == 1 && $('#isrealwxwx').val() == 1) { layer.msg("不允许微信 和 电话 两个都隐藏"); } else { if (thisid == 1 && $("#wxnum").val() == '') { layer.msg("隐藏失败,需要保留一个联系方式"); } else { $(".same").removeClass('on'); $(this).addClass('on'); $('#iswxtel').val(thisid); //if ($(this).hasClass('on')) { } else { $('#' + thistype).val(1); } if (_mod_idn > 0) { $.post("/Ajax/phone.aspx", { type: thistype, val: thisid, id: _mod_idn }); } } } }) $(".samewx").click(function () { var thistype = $(this).attr("data-type"); var thisid = $(this).attr("data-id"); if (thisid == 1 && $('#iswxtel').val() == 1) { layer.msg("不允许微信 和 电话 两个都隐藏"); } else { if (thisid == 1 && $("#Tel").val() == '') { layer.msg("隐藏失败,需要保留一个联系方式"); } else { $(".samewx").removeClass('on'); $(this).addClass('on'); $('#isrealwxwx').val(thisid); if (_mod_idn > 0) { $.post("/Ajax/phone.aspx", { type: thistype, val: thisid, id: _mod_idn }); } } } }); }); // $("#H_Placeid").val(""); function validatetel(mobile,id){ if (mobile.length == 0) { layer.msg('请输入电话号码!'); $("#"+id).focus(); return false; } var phoneNumber = mobile; var tel_ = /^(400|800)(|-)(\d{3,4})(|-)(\d{3,4})|((0\d{2,3})(|-))(\d{6,9})((转|-)(\d{2,4}))?$/; // var mobile_ = /^1[3-9]\d{9}$/; return validatemobile(mobile); // if(mobile.substring(0,1)=='1'){ // return validatemobile(mobile); // }else{ // if (tel_.test(mobile)) { // console.log("电话号码合法"); // return true; // } else { // layer.msg('请输入正确电话号码!'); // console.log("电话号码不合法"); // return false; // } // } } function validatemobile(mobile,id) { if (mobile.length == 0) { layer.msg('请输入手机号码!'); $("#"+id).focus(); return false; } if (mobile.length != 11) { layer.msg('请输入有效的手机号码!'); $("#"+id).focus(); return false; } var myreg = /1[3456789]{1}\d{9}$/; if (!myreg.test(mobile)) { layer.msg('请输入有效的手机号码!'); $("#"+id).focus(); // document.form_reg.phone.focus(); return false; } return true; } function tmpbtnok() { var isyz = $("#isyz").val(); var _valdi = $("#valdis").val(); var _Tel = $("#Tel").val(); var _twotel=$("#TwoTel").val(); var _realtel = $("#realtel").val(); var h_placetxt = $.trim($("#h_placetxt").html()); var H_Placeid = $.trim($("#H_Placeid").val()); var _title = $.trim($("#title").val()); var _Province = $("#Province").val(); var _City = $("#City").val(); var _Area = $("#Area").val(); var _ZName = $("#ZName").val().trim(); var _Find_Class = $("#newFind_Class").val(); var _tmpClassI_Id = $("#ClassI_ID").val(); var _Content = $("#Content").val(); var _tmpClassII_Id = $("#tmpClassII_Id").val(); var _Address = $("#Address").val(); var _thuserid = $("#thuserid").val(); var _proviceids = $("#proviceids").val(); var regname = new RegExp(/^[\u4e00-\u9fa5a-zA-Z]{1,8}$/); if(vm.m_userType()==""){ vm.isLoginMember('','才能发布'); } if (_title == "") { layer.msg("标题不能为空!"); return false; } if(_title.indexOf('加盟/招商')!=-1){ // if(vm.m_userType()=='p'){ // vm.msginfotip=81; // vm.infomsg=true; // return false; // } // var isaution_="0"; // if(isaution_=="0"){ // vm.msginfotip=82; // vm.infomsg=true; // return false; // } } var r = vm.BadWord(_Content); if (r!="") { vm.msginfotip=83; vm.infomsg=true; return false; } if (_proviceids == "" || _proviceids=="[]") { layer.msg("城市地区不能为空!"); return false; } //if (_Province == "0" || _Province == "" || _City == "0" || _City == "") { // alert("城市地区不能为空!"); // return false; //} if (_Find_Class == "") { layer.msg("性质不能为空!"); return false; } if (_Find_Class == "0") { layer.msg("性质至多不能超过2个!"); return false; } if (_Find_Class.indexOf('转让')!=-1&&_Find_Class.indexOf('求购')!=-1) { layer.msg("加盟和求购不能同时勾选!"); return false; } if ($("#Content").val().trim().length<36) { vm.msginfotip=84; vm.infomsg=true; return false; } if (_Content != "") { var BanWords = "挂靠,挂证,痊愈,治愈,根除,根治,有效率,无痛,100%,百分百,副作用,无风险,保证治愈,不复发,奥妙,神奇,不需要医生,疗效,去除,祛除,清除,恢复快,告别,逼真,不易脱落,无异物感,承诺,不伤牙,决对,彻底,无痕,无创,不留疤,不留痕,永不反弹,立竿见影,确保,有保障,保证,可靠,长久,长效,特效,一次,全解决,全方位,全面,完美,无死角,不反复,首家,独家,国内空白,金牌,顶级,顶尖,泰斗,金标,国家示范,全国领先,行业领先,领衔,问鼎,开创之举,完全,极佳,高端,尖端,高效,国际级,世界级,千万级,百万级,超甲级,唯一,首个,首选,国家级产品,最先进,名牌,首发,世界领先,王牌,销量冠军,第一,NO1,Top1,极致,永久,王牌,掌门人,领袖品牌,独一无二,绝无仅有,史无前例,万能,最高,最低,最具,最便宜,最新技术,最大,最新,最时尚,最受欢迎,绝对,大牌,精确,超赚,领导品牌,领先上市,巨星,著名,奢侈,国际品质,高档,国家级,最高级,随时结束,仅此一次,随时涨价,马上降价,最后一波,领导推荐,机关推荐,机关专供,质量免检,无需国家质量检测,免抽检,驰名商标,特供,专供,秒杀,抢爆,再不抢就没了,不会再便宜了,错过就没机会了,万人疯抢"; //console.info(BanWords); var _BanWordsarr = BanWords.split(','); for (var i = 0; i < _BanWordsarr.length; i++) { //console.info("===="+_BanWordsarr[i]); if (_BanWordsarr[i] != null && _BanWordsarr[i] != "") { if (_Content.indexOf(_BanWordsarr[i]) != -1) { layer.msg("介绍中含有过度宣传词(" + _BanWordsarr[i] + "),请修改.", { time: 2500 }, function () { }); return false; } } } } if (_ZName == "") { layer.msg("联系人不能为空!"); return false; } if (_Tel == "") { layer.msg("联系电话不能为空!"); return false; } if ($("#mod_id").val() == 0) { if (!validatetel(_Tel, 'Tel')) { return false; } } if(vm.showtwotel&&_twotel!=""){ if (!validatetel(_twotel,'TwoTel')) { return false; } } //if ($("#wxnum").val() == "") { // layer.msg("微信号码不能为空!"); // return false; //} if($("#wxnum").val()!=""){ var _wxnum = $("#wxnum").val().trim(); if ((/[\u4e00-\u9fa5]+/g.test(_wxnum))) { layer.msg("请填写有效的微信号格式(不允许出现中文)", { time: 2000 }, function () { $("#wxnum").select() }); $("#wxnum").focus(); return false } if (_wxnum.substring(0, 5) == 'wxid_' && _wxnum.length > 15) { layer.msg("暂不能添加微信原始ID(请先设置微信号)", { time: 2000 }, function () { $("#wxnum").select() }); $("#wxnum").focus(); return false } var myreg = /1[3456789]{1}\d{9}$/; //if (myreg.test(_wxnum)&&_wxnum.length==11) { // layer.msg('为了防止骚扰,微信号不能为手机号'); // $("#wxnum").focus(); // return false; //} } // if ($('#iswxtel').val() == '1' && $("#wxnum").val() == '') { // alert("电话或者微信必须公开一个!"); // return false; // } if ($("#thuserid").val() == 0) {//未登陆 $.getJSON("/Ajax/phone.aspx", { type: "ismember", random: Math.random, mobile: _Tel }, function (da) { //$("#thuserid").val(da.userid); $("#tmpusertype").val(da.usertype); if (da.handcount >= 2) { layer.confirm('您已发2条转让,继续发布替换旧转让信息?', { skin: 'layui-layer-blues', closeBtn: 0, icon: 3, btn: ['继续发布', '取消'] //按钮 }, function () { $("#mobile").val(_Tel); $("#shadow").show(); $("#phonelogin").show(); layer.closeAll(); }, function () { }); } else {//没登陆登录了 $("#mobile").val(_Tel); $("#shadow").show(); $("#phonelogin").show(); } }); } else { var isyzl = 1; var rettelL = $("#rettelListtts").val(); if (rettelL != "") { if (rettelL.indexOf(_Tel) == -1 && rettelL!="@@@") { $("#modify-btn").val("验证并发布"); $("#mobile").val(_Tel); $("#shadow").show(); $("#phonelogin").show(); isyzl = 1; } else { if ($("#mod_id").val() == "0") {//添加 var ismsgs = "False"; var _zrnum = $("#zrnum").val(); if (_zrnum >= 7) { layer.confirm('您已发4条转让,继续发布替换旧转让信息?', { skin: 'layui-layer-blues', closeBtn: 0, icon: 3, btn: ['继续发布', '取消'] //按钮 }, function () { if (ismsgs == "True" ) { $("#btnAdd").click(); } else { $("#modify-btn").val("验证并发布"); $("#mobile").val(_Tel); $("#shadow").show(); $("#phonelogin").show(); } }, function () { }); } else { if (ismsgs == "True" ) { setTimeout(function(){ $("#btnAdd").click(); },500); } else { $("#modify-btn").val("验证并发布"); $("#mobile").val(_Tel); $("#shadow").show(); $("#phonelogin").show(); } } } else { setTimeout(function(){ $("#btnAdd").click(); },500); } } } else { $("#modify-btn").val("验证并发布"); $("#mobile").val(_Tel); $("#shadow").show(); $("#phonelogin").show(); isyzl = 1; } } } isreclick = 0; function btnOK() { if (isreclick == 0) { var isyz = $("#isyz").val(); var _valdi = $("#valdis").val(); var _Tel = $("#Tel").val(); var _twotel=$("#TwoTel").val(); var _realtel = $("#realtel").val(); var h_placetxt = $.trim($("#h_placetxt").html()); var H_Placeid = $.trim($("#H_Placeid").val()); var _title = $.trim($("#title").val()); var _Province = $("#Province").val(); var _City = $("#City").val(); var _Area = $("#Area").val(); var _ZName = $("#ZName").val().trim(); var _Find_Class = $("#newFind_Class").val(); var _tmpClassI_Id = $("#ClassI_ID").val(); var _tmpClassII_Id = $("#tmpClassII_Id").val(); var _Address = $("#Address").val(); var _thuserid = $("#thuserid").val(); var regname = new RegExp(/^[\u4e00-\u9fa5a-zA-Z]{1,8}$/); if (_title == "") { layer.msg("标题不能为空!"); return false; } // var r = document.all.Title.value; r = _title.replace(/承.*包/ig, "承包"); if (r.indexOf("承包") != -1) { alert("系统禁止出现(承包)字,请您重新填写"); return false; } r = _title.replace(/出.*租/ig, "出租"); if (r.indexOf("出租") != -1) { alert("系统禁止出现(出租)字,请您重新填写"); return false; } r = _title.replace(/求.*租/ig, "求租"); if (r.indexOf("求租") != -1) { alert("系统禁止出现(求租)字,请您重新填写"); return false; } if (H_Placeid == "") { layer.msg("城市地区不能为空!"); return false; } //if (_Province == "0" || _Province == "" || _City == "0" || _City == "") { // alert("城市地区不能为空!"); // return false; //} if (_Find_Class == "") { layer.msg("性质不能为空!"); return false; } if (_Find_Class == "0") { layer.msg("性质至多不能超过2个!"); return false; } if ($("#Content").val().length<36) { vm.msginfotip=84; vm.infomsg=true; return false; } if (_ZName == "") { layer.msg("联系人不能为空!"); return false; } if (_Tel == "") { layer.msg("联系电话不能为空!"); return false; } if (!validatetel(_Tel, 'Tel')) { return false; } if(vm.showtwotel&&_twotel!=""){ if (!validatetel(_twotel,'TwoTel')) { return false; } } //if ($("#wxnum").val() == "") { // layer.msg("微信号码不能为空!"); // return false; //} if($("#wxnum").val()!=""){ var _wxnum=$("#wxnum").val().trim(); if ((/[\u4e00-\u9fa5]+/g.test(_wxnum))) { layer.msg("请填写有效的微信号格式(不允许出现中文)", { time: 2000 }, function () { $("#wxnum").select() }); $("#wxnum").focus(); return false } if (_wxnum.substring(0, 5) == 'wxid_' && _wxnum.length > 15) { layer.msg("暂不能添加微信原始ID(请先设置微信号)", { time: 2000 }, function () { $("#wxnum").select() }); $("#wxnum").focus(); return false } } // if ($('#iswxtel').val() == '1' && $("#wxnum").val() == '') { // alert("电话或者微信必须公开一个!"); // return false; // } isreclick = 1; return true; } else { $('#btnAdd').attr("disabled", true); alert("信息提交中。。请耐心等待。。"); return false; } } function bindEvent() { var temp; $("#title,#Content,#ZName,#Tel,#Address").bind({ focusin: function () { temp = $.trim($(this).val()); }, focusout: function () { var lastValue = $.trim($(this).val()); if ($("#ischange").val() == "0") { if (temp != lastValue && null != lastValue && "" != lastValue) { $("#ischange").val("1"); } } } }); } function leibiess(thids) { var showtitle = ""; showtitle += "<div class=\"mylogindiv\" style=\"display: block; width: 310px; max-width: 320px;top: 30%;\">"; showtitle += "<div class=\"title\">" + (thids != "" ? "<a href=\"javascript:void(0)\" onclick=\"$('#ClassI_ID').val('');$('.mylogindiv').hide();$('#shadow').hide();leibiess('')\" style=\"float: left;cursor: pointer; border: 0px; font-size: 26px; font-weight: bold;\"><</a>" : "") + "<h4><span id=\"Span2\" name=\"logintype_t\">" + (thids == "" ? "选择转让类型" : "选择转让标题") + "</span></h4><p><a href=\"javascript:void(0)\" onclick=\"$('#ClassI_ID').val('');$('.mylogindiv').hide();$('#shadow').hide();\" style=\"cursor: pointer; border: 0px; font-size: 26px; font-weight: bold;\">×</a></p></div>"; showtitle += "<div class=\"con\" style=\"padding: 10px 0 0 5px; font-size: 14px; float: left; text-align: left; overflow: hidden; width: 320px;\" id=\"wincon\">"; if (thids == "") { showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='2' id='leibiet1' name='leibiet' autocomplete='off' class='' data-text='口腔'><label for='leibiet1'>口腔</label>&nbsp;<input type='radio' value='8' id='leibiet2' name='leibiet' autocomplete='off' class='' data-text='诊所/门诊/医院'><label for='leibiet2'>诊所/门诊/医院</label>&nbsp;<input type='radio' value='1' id='leibiet3' name='leibiet' autocomplete='off' class='' data-text='义齿公司'><label for='leibiet3'>义齿公司</label>&nbsp;<input type='radio' value='4' id='leibiet4' name='leibiet' autocomplete='off' class='' data-text='药店'><label for='leibiet4'>药店</label></font></div>"; } else if (thids == 2) { showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='牙科店面求购' id='F_P_Jobt1' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt1'>牙科店面求购</label></font></div>"; showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='牙科店面转让' id='F_P_Jobt2' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt2'>牙科店面转让</label></font></div>"; showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='口腔门诊店面转让' id='F_P_Jobt3' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt3'>口腔门诊店面转让</label></font></div>"; showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='口腔门诊店面求购' id='F_P_Jobt4' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt4'>口腔门诊店面求购</label></font></div>"; showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='口腔合作/合伙' id='F_P_Jobt5' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt5'>口腔合作/合伙</label></font></div>"; showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='口腔加盟' id='F_P_Jobt6' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt6'>口腔加盟</label></font></div>"; } else if (thids == 8) { showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='诊所店面求购' id='F_P_Jobt6' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt6'>诊所店面求购</label>&nbsp;<input type='radio' value='诊所店面转让' id='F_P_Jobt7' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt7'>诊所店面转让</label>&nbsp;<input type='radio' value='诊所合作/合伙' id='F_P_Jobt11' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt11'>诊所合作/合伙</label></font></div>"; showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='门诊店面转让' id='F_P_Jobt9' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt9'>门诊店面转让</label>&nbsp;<input type='radio' value='门诊店面求购' id='F_P_Jobt10' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt10'>门诊店面求购</label>&nbsp;<input type='radio' value='门诊合作/合伙' id='F_P_Jobt11' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt11'>门诊合作/合伙</label></font></div>"; showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='医院转让' id='F_P_Jobt12' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt12'>医院转让</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='radio' value='医院求购' id='F_P_Jobt13' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt13'>医院求购</label>&nbsp;<input type='radio' value='医院股权合作' id='F_P_Jobt14' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt14'>医院股权合作</label></font></div>"; } else if (thids == 1) { showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='义齿公司转让' id='F_P_Jobt15' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt15'>义齿公司转让</label></font></div>"; showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='义齿公司求购' id='F_P_Jobt16' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt16'>义齿公司求购</label></font></div>"; showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='义齿公司股权合作' id='F_P_Jobt17' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt17'>义齿公司股权合作</label></font></div>"; } else if (thids == 4) { showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='药店转让' id='F_P_Jobt18' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt18'>药店转让</label></font></div>"; showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='药店求购' id='F_P_Jobt19' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt19'>药店求购</label></font></div>"; showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='药店加盟' id='F_P_Jobt20' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt20'>药店加盟</label></font></div>"; showtitle += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;<input type='radio' value='药店股权' id='F_P_Jobt21' name='F_P_Jobt' autocomplete='off' class=''><label for='F_P_Jobt21'>药店股权</label></font></div>"; } showtitle += "</div>"; $(".wrap").append(showtitle); // $("#shadow").show(); } $(document).ready(function () { $(".submit-btn").click(function () { var mobile = $.trim($("#mobile").val()); var code = $.trim($("#code").val()); if (mobile == '') { layer.msg("请填写手机号", { time: 2000 }, function () { $('#mobile').focus() }); return false; } if (mobile.length != 11) { layer.msg("请填写正确手机号!", { time: 2000 }, function () { $('#mobile').focus() }); return false; } var myreg = /1[3456789]{1}\d{9}$/; if (!myreg.test(mobile)) { layer.msg("请输入有效的手机号码!", { time: 2000 }, function () { $('#mobile').focus() }); return false; } if (code == '') { layer.msg("请填写短信验证码", { time: 2000 }, function () { $('#code').focus() }); return false; } $.post("/Ajax/phone.aspx", { type: 'smslogin', mobiless: escape(mobile), sms: escape(code), typen: "zr", UserType: '', multuser: $("#multuser").val(), _UserType: escape($("#tmpusertype").val()) }, function (res) { if (res.success == 1) { $("#Tel").val(mobile); $(".mylogindiv").hide(); document.getElementById("btnAdd").click(); } else if (res.success == -5) { layer.confirm('请选择登录类型?', { skin: 'layui-layer-blues', closeBtn: 0, icon: 3, btn: ['登录个人', '登录企业'] //按钮 }, function () { $("#multuser").val(1); $("#tmpusertype").val('p') $(".submit-btn").click(); }, function () { $("#multuser").val(1); $("#tmpusertype").val('c') $(".submit-btn").click(); }); return false; } else { layer.msg(res.data); } }, "json"); }); $("#get-code").click(function () {//获取验证码 var mobile = $.trim($("#mobile").val()); var cfrom = $.trim($("#cfrom").val()); var countdown = 60; if (mobile == '') { layer.msg("请填写手机号", { time: 2000 }, function () { $('#mobile').focus() }); return false; } if (mobile.length != 11) { layer.msg("请填写正确手机号!", { time: 2000 }, function () { $('#mobile').focus() }); return false; } var myreg = /1[3456789]{1}\d{9}$/; if (!myreg.test(mobile)) { layer.msg("请输入有效的手机号码!", { time: 2000 }, function () { $('#mobile').focus() }); return false; } $.post("/Ajax/phone.aspx", { type: 'modify_per_phone', mobile: escape(mobile), cfrom: escape(cfrom) }, function (res) { var result = res.success; if (result == 1) { layer.msg("短信验证码已发送到您手机上,请查收", { time: 2000 }); settime(); } else { layer.msg(res.msginfo, { time: 2000 }); $('#mobile').select(); return false; } }, "json") }) var showkefu = ""; var showkefuw = ""; showkefu += "<div class=\"mylogindiv\" style=\"display: block; width: 310px; max-width: 320px;top: 30%;\">"; showkefu += "<div class=\"title\"><h4><span id=\"Span2\" name=\"logintype_t\">发布规则</span></h4><p><a href=\"javascript:void(0)\" onclick=\"$('.mylogindiv').hide();$('#shadow').hide();\" style=\"cursor: pointer; border: 0px; font-size: 26px; font-weight: bold;\">×</a></p></div>"; showkefu += "<div class=\"con\" style=\"padding: 10px 0 0 15px; font-size: 14px; float: left; text-align: left; overflow: hidden; width: 320px;\" id=\"wincon\">"; showkefu += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;1、禁止发布医院科室承包、出租、求租</font></div>"; showkefu += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;2、禁止发布医师资格证出租、求租</font></div>"; showkefu += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;3、诊所禁止发布托管、转让、求购</font></div>"; showkefu += "<div style=\"color: #A4A4A4; font-size: 12px; margin: 10px auto\"><font style=\"font-size: 13px;color: #262525;\" class='zhuangtai'>&nbsp;4、诊所仅限发布店面转让,店面求购</font></div>"; showkefu += "</div>"; $(".fabuguize").click(function () { $(".wrap").append(showkefu); }); $("input:radio[name=leibiet]").live("click", function () { var thistitle = $(this).val(); var thistxt = $(this).attr("data-text"); leibiess(thistitle); // $("#leibies span").html(thistxt); $('#ClassI_ID').attr('value', '' + thistitle + ''); $(".lbltitle").html(""); $("#title").val(""); $("#leibies span").html("选择标题"); }); $("input:radio[name=F_P_Jobt]").live("click", function () { var thistitle = $(this).val(); $(".lbltitle").html(thistitle); $("#title").val(thistitle); $("#leibies span").html(thistitle); $("#biaotishow").show(); $(".mylogindiv").hide(); $('#shadow').hide(); }); $("input:checkbox[name=F_P_Job]").click(function () { var adIds = ""; var num = 0; if($(this).val()=="转让"&& $("#leibie span").html().indexOf('求购')!=-1){ $(this).attr("checked", false); layer.msg("转让和求购不能同时勾选!"); } if($(this).val()=="求购"&& $("#leibie span").html().indexOf('转让')!=-1){ $(this).attr("checked", false); layer.msg("转让和求购不能同时勾选!"); } $("input:checkbox[name=F_P_Job]:checked'").each(function (i) { if (adIds == "") { adIds = $(this).val(); } else { adIds += ("," + $(this).val()); } num++; }); if (num >= 3) { layer.msg("至多只能选择2个性质!"); $(this).attr("checked", false); $("#newFind_Class").val("0"); } else { $("#newFind_Class").val(adIds); if (adIds != "") { if (adIds.indexOf("合作") != -1 || adIds.indexOf("加盟") != -1) { vm.isunitshow = true; } else { vm.isunitshow = false; } $("#leibie span").html(adIds); //$(".selectxz").html("选中性质:" + adIds + ""); } else { vm.isunitshow = false; $("#leibie span").html("选择性质"); $(".selectxz").html(""); } } }); $("#queding").live("click", function () { var adIds = ""; var num = 0; $("input:checkbox[name=F_P_Job]:checked'").each(function (i) { if (0 == i) { adIds = $(this).val(); } else { adIds += ("," + $(this).val()); } num++; }); if (num >= 5) { alert("至多只能选择四个性质!"); $("#newFind_Class").val("0"); } else { $("#newFind_Class").val(adIds); $("#xingzhidiv").hide(); $("#shadow").hide(); if (adIds != "") { if($("#mod_id").val()=="0"){ if(adIds.indexOf("合作") != -1){ vm.remark="合作模式:一起共同经营\n"; } } $("#leibie span").html(adIds); //$(".selectxz").html("选中性质:" + adIds + ""); } else { $(".selectxz").html(""); } } }); bindEvent(); $(".xprovice .c_" + $("#Province").val() + "").addClass("on"); $.getJSON("/Ajax/App_Ajax.aspx", { type: "admdataloading", random: Math.random, proviceid: $("#Province").val(), cityid: $("#City").val(), areaid: $("#Area").val() }, function (da) { $(".xcity").html(da.citystr); //$(".xarea").html(da.areastr); }); // $("#csdq").click(function () { // $("#shadow").show(); // $("#searbtn").show(); // }); // $(".menusel li").click(function () { // if ($(this).hasClass("on")) { // $("#shadow").hide(); $('#searbtn').hide(); setnogun(0); // } // }); $("#quedingcity").click(function () { var diqu = $("#h_placetxt").html().replace("选中地区:", ""); if (diqu == "") { diqu = "选择城市"; } $("#csdq span").html(diqu); }); //希望工作地选择 $("#csdq").click(function () { return; $('#shadow').show(); $('.allplace').show(); var h_placetxt = $("#h_placetxt").html();//获取希望工作地 var selectstr = ''; if (h_placetxt != '选择') { selectstr = h_placetxt.replace(/font/ig, 'li'); if (selectstr != '') { $(".allplace .selected").html(selectstr); $(".allplace .selected").fadeIn(300); } } H_Placeid = $("#H_Placeid").val(); var provinceid = 0; var proname = ""; var cityid = ''; if (H_Placeid != '' && h_placetxt != '选中地区:') { $("#h_placetxt").removeClass("placeholder"); if (H_Placeid.indexOf("}{") == -1) { H_Placeid = H_Placeid + "{0,0}"; } var H_Placeid_array = H_Placeid.split("}{");//{10} 0,0 var H_Placeids = ''; $('.hprovince li').removeClass('s'); for (var m = 0; m < H_Placeid_array.length; m++) { H_Placeids = H_Placeid_array[m]; H_Placeids = H_Placeids.replace("}", "").replace("{", ""); if (H_Placeids != '0,0') { if (H_Placeids.indexOf(",") != -1) { provinceid = H_Placeids.split(",")[0]; cityid = cityid + ',' + H_Placeids.split(",")[1]; $('.hprovince .c_' + provinceid).addClass('s'); } else { provinceid = H_Placeids; if (cityid != '0') { cityid = cityid + ',0'; } $('.hprovince .c_' + provinceid).addClass('s'); } } } // alert(cityid+'=='+provinceid); $(".allplace ul.hprovince li").removeClass("float"); $(".allplace ul.hprovince").css("width", "30%"); $(".allplace ul.hcity").css("width", "68.8%"); $(".allplace ul.hcity").show(); //$(".allplace .hcity").html("<li>加载中..</li>"); proname = $(".c_" + provinceid + "").html(); if (cityid == '') { cityid = ",0," } else { cityid = cityid + "," } if (cityid.substring(0, 1) != ',') { cityid = "," + cityid; } var selected = ""; var tmpcityid = ''; var cityhtml = ""; selected = ""; $.each(cityJson, function (k, p) { if (p.ProID == provinceid) { if (cityid.indexOf("," + p.CityID + ",") != -1) { selected = "on"; } else { selected = ""; } cityhtml = cityhtml + "<li data-id='" + p.CityID + "' data-pid='" + provinceid + "' class='c_" + p.CityID + " " + selected + "'>" + p.CityName + "</li>"; tmpcityid = tmpcityid + "," + p.CityID; } }); var chkcityid = 0; if (tmpcityid.indexOf(",") != -1) { var tmpcityids = tmpcityid.split(','); for (i = 0; i < tmpcityids.length ; i++) { if (cityid.indexOf(tmpcityids[i]) != -1 && tmpcityids[i] != '') { chkcityid = 1; break; } } } if (cityid.indexOf(",0,") != -1 && chkcityid == 0) { selected = "on"; } else { selected = ''; } var cityhtml_ = ""; // alert(cityhtml); //$(".hcity").html(cityhtml_ + cityhtml); $(".allplace .hcity").html(''); $(".allplace .hprovince li").removeClass('w'); } else { $(".allplace .hcity").html(''); $(".allplace .hcity").hide(); $(".allplace .hprovince li").removeClass('s'); $(".allplace .hprovince li").addClass('clearfix'); $(".allplace .hprovince li").addClass('float'); $(".allplace .hprovince").css("width", "100%"); } var selectedheight = $(".allplace .selected").height(); //if (selectedheight == 31) { // $(".allplace ul").css('height', '79%'); //} else if (selectedheight == 62) { // $(".allplace ul").css('height', '71%'); //} else if (selectedheight == 93) { // $(".allplace ul").css('height', '63%'); //} else if (selectedheight == 124) { // $(".allplace ul").css('height', '55%'); //} else { $(".allplace ul").css('height', '90%') } }); $(".hprovince li").live("click", function () { var thisid = $(this).attr("data-id"); var allhplaceid = $('#H_Placeid').val(); var allhplace = $("#h_placetxt").html(); var cityid = 0; var citytmpid = "0", cityname = ""; selected = ""; if (thisid == 15) {//北京 //如果是直辖市 selected = "on"; citytmpid = 146; cityname = "北京市"; } else if (thisid == 13) {//天津 selected = "on"; citytmpid = 131; cityname = "天津市"; } else if (thisid == 27) {//重庆 selected = "on"; citytmpid = 271; cityname = "重庆市"; } else if (thisid == 8) {//重庆 selected = "on"; citytmpid = 88; cityname = "上海市"; } $(".allplace .hprovince li").removeClass('clearfix'); $(".allplace ul.hprovince li").removeClass("float"); $(".allplace ul.hprovince li").removeClass("float"); $(".allplace ul.hprovince").css("width", "30%"); $(".allplace ul.hcity").css("width", "68.8%"); //$(".allplace .hprovince").animate({width:"30%"},500); //$(".allplace .hcity").animate({width:"68.8%"},500); $(".allplace ul.hcity").show(); // $(".allplace .hcity").html("<li>加载中..</li>"); $(".hprovince li").removeClass("w"); $(this).addClass("w"); if ($(this).hasClass("s")) //已选择 开始取消 { } else {//未选择 if ($(".allplace .selected li").length >= 10) { layer.msg('至多选择10个城市'); $(this).removeClass("w"); return false; } if (citytmpid != 0) { if (allhplace != '选择') //已选择 { $("#h_placetxt").removeClass('placeholder'); $("#h_placetxt").append('<font data-pid="' + thisid + '" data-cid="' + citytmpid + '">' + $(this).html() + '</font>'); //$("#h_placetxt").show(); } else { $("#h_placetxt").html('<font data-pid="' + thisid + '" data-cid="' + citytmpid + '">' + $(this).html() + '</font>'); //$("#h_placetxt").show(); } $(this).addClass("s"); $("#H_Placeid").val(allhplaceid + '{' + thisid + ',' + citytmpid + '}'); } } proname = $(this).html().replace('市', ''); //<li data-id='' data-pid='" + thisid + "' class='on'>全" + proname + "</li> var cityhtml = ""; // alert(allhplaceid); $.each(cityJson, function (k, p) { if (p.ProID == thisid) { if (thisid != 0) { if ($("#H_Placeid").val().indexOf("{" + thisid + "," + p.CityID + "}") != -1) { selected = "on"; } else { selected = ""; } cityhtml = cityhtml + "<li data-id='" + p.CityID + "' data-pid='" + thisid + "' class='c_" + p.CityID + " " + selected + "'>" + p.CityName + "</li>"; } } }); $(".hcity").html(cityhtml); var h_placetxt = $("#h_placetxt").html();//获取希望工作地 var selectstr = ''; if (h_placetxt == '') { h_placetxt = "选择"; } if (h_placetxt != '选择') { selectstr = h_placetxt.replace(/font/ig, 'li'); if (selectstr != '') { $(".allplace .selected").html(selectstr); $(".allplace .selected").fadeIn(300); } } else { $(".allplace .hcity").html(''); $(".allplace .hcity").hide(); $(".allplace .hprovince li").removeClass('on'); $(".allplace .hprovince li").addClass('clearfix'); $(".allplace .hprovince li").addClass('float'); $(".allplace .hprovince").css("width", "100%"); } }); $(".hcity li").live("click", function () { var pid = $(this).attr("data-pid"); var thisid = $(this).attr("data-id"); var allhplaceid = $('#H_Placeid').val(); var allhplace = $("#h_placetxt").html(); if ($(this).hasClass("on")) //已选择 开始取消 { $(this).removeClass("on"); //<font data-pid="13" data-cid="131">天津</font> var newallhplaceid = allhplaceid.replace('{' + pid + ',' + thisid + '}', ''); $("#H_Placeid").val(newallhplaceid); // var deltxt = '<font data-pid="' + pid + '" data-cid="' + thisid + '">' + $(this).html() + '</font>'; var deltxt = '<font data-pid="' + pid + '" data-cid="' + thisid + '">' + $(this).html().replace('市', '') + '</font>'; var newhplacetxt = allhplace.replace(deltxt, ''); var deltxtt = '<font data-pid="' + pid + '" data-cid="' + thisid + '">' + $(this).html() + '</font>'; newhplacetxt = newhplacetxt.replace(deltxtt, ''); if (newhplacetxt == '') { newhplacetxt = "选择"; $("#h_placetxt").addClass('placeholder'); $("#H_Placeid").val(''); $(".allplace .selected").fadeOut(100); } $('#h_placetxt').html(newhplacetxt); // $("#h_placetxt").show(); if (thisid == '')//选择全省 { var regx = kq36_eval("/{" + pid + "(|,(.*))}/g") allhplaceid = allhplaceid.replace(regx, ''); $("#h_placetxt font[data-pid=" + pid + "]").remove(); thisid = 0; //$("#H_Placeid").val(allhplaceid); } if ($("#h_placetxt").html() == '') { $("#h_placetxt").html("选择"); $("#h_placetxt").addClass('placeholder'); $("#H_Placeid").val(''); $(".allplace .selected").fadeOut(100); } } else { if ($(".allplace .selected li").length >= 10) { layer.msg('至多选择10个城市'); return false; } $(this).addClass("on"); $(".c_" + pid + "").addClass("s"); if (thisid == '')//选择全省 { var regx = kq36_eval("/{" + pid + "(|,(.*))}/g") allhplaceid = allhplaceid.replace(regx, '') + '{' + pid + '}'; $("#h_placetxt font[data-pid=" + pid + "]").remove(); thisid = 0; } else { allhplaceid = allhplaceid + '{' + pid + ',' + thisid + '}'; allhplaceid = allhplaceid.replace('{' + pid + '}', ''); $("#h_placetxt font[data-pid=" + pid + "][data-cid=0]").remove(); } if (pid != 0) { $("#H_Placeid").val(allhplaceid); } if (allhplace != '选择') //已选择 { $("#h_placetxt").append('<font data-pid="' + pid + '" data-cid="' + thisid + '">' + $(this).html().replace('市', '').replace("全", "") + '</font>'); //$("#h_placetxt").show(); } else { $("#h_placetxt").html('<font data-pid="' + pid + '" data-cid="' + thisid + '">' + $(this).html().replace('市', '').replace("全", "") + '</font>'); //$("#h_placetxt").show(); } } var class_y = $('#hcity li').hasClass('on'); if (!class_y) { $(".c_" + pid + "").removeClass("s"); } var h_placetxt = $("#h_placetxt").html();//获取希望工作地 var selectstr = ''; if (h_placetxt == '') { h_placetxt = "选择"; } if (h_placetxt != '选择') { selectstr = h_placetxt.replace(/font/ig, 'li'); if (selectstr != '') { $(".allplace .selected").html(selectstr); $(".allplace .selected").fadeIn(300); } } else { } }); $(".allplace .selected li").live("click", function () { var allhplace = $("#h_placetxt").html(); var allhplaceid = $("#H_Placeid").val(); allhplace = allhplace.replace(/font/ig, 'li'); var thispid = $(this).attr("data-pid"); var thiscid = $(this).attr("data-cid"); var thishplace = '<li data-pid="' + thispid + '" data-cid="' + thiscid + '">' + $(this).html().replace('市', '') + '</li>'; var newallhplace = allhplace.replace(thishplace, ''); var thishplacet = '<li data-pid="' + thispid + '" data-cid="' + thiscid + '">' + $(this).html() + '</li>'; newallhplace = newallhplace.replace(thishplacet, ''); newallhplace = newallhplace.replace(/li/ig, 'font'); var thishplaceid; if (thiscid != 0) { thishplaceid = '{' + thispid + ',' + thiscid + '}'; } else { // thishplaceid = '{' + thispid + '}'; } var newallhplaceid = allhplaceid.replace(thishplaceid, ''); if (newallhplace == '') { newallhplace = "选择"; $("#h_placetxt").addClass('placeholder'); $("#H_Placeid").val(''); } $("#h_placetxt").html(newallhplace); $("#H_Placeid").val(newallhplaceid); $(this).remove(); if ($(".allplace .selected li").size() <= 0) { $(".allplace .selected").fadeOut(100); } $("#csdq").click(); //重新加载 if (thispid != "15" && thispid != "27" && thispid != "13" && thispid != "8") { $(".c_" + thispid + "").click(); } }); var gd = 80; $("#plus_btn").click(function () { gd = gd + 50; $("#Content").height(gd); }); $("#minus_btn").click(function () { gd = gd - 50; if ($("#Content").height() <= 80) { alert("已经达到最小高度!"); } else { $("#Content").height(gd); } }); }); var countdown = 60; function settime() { if (countdown == 0) { $("#get-code").removeAttr("disabled"); $("#get-code").val("获取验证码"); countdown = 60; return; } else { $("#get-code").attr("disabled", 'disabled'); $("#get-code").val("重新发送(" + countdown + "秒)"); countdown--; } setTimeout(function () { settime() } , 1000) } function setnogun(t) { if (t == 1) { $("body").css("overflow", "hidden"); } else { $("body").css("overflow", "scroll"); } } tv(); function tv() { if ($('#Areaname').val() != "") { $("#csdq").html($('#Areaname').val()); } else if ($('#Areaname').val() != "" && ($('#Province').val() == "15" || $('#Province').val() == "27" || $('#Province').val() == "13" || $('#Province').val() == "8")) { $("#csdq").html($('#Provincename').val()); } else if ($('#Cityname').val() == "" && $('#Province').val() != "") { $("#csdq").html($('#Provincename').val()); } else if ($('#Province').val() == "") { } else { $("#csdq").html($('#Cityname').val()); } $("#shadow").hide(); $('#searbtn').hide(); if ($("#Address").val() == "") { var leib = ""; if ($('#Provincename').val() != "") { leib = $('#Provincename').val(); } if ($('#Province').val() != "15" && $('#Province').val() != "27" && $('#Province').val() != "13" && $('#Province').val() != "8") { leib += $('#Cityname').val(); } if ($('#Areaname').val() != "") { leib += $('#Areaname').val(); } if (leib != "") { $("#Address").val(leib); } } } function makeExpandingArea(el) { var setStyle = function (el) { el.style.height = 'auto'; el.style.height = el.scrollHeight + 'px'; // console.log(el.scrollHeight); } var delayedResize = function (el) { window.setTimeout(function () { setStyle(el) }, 0); } if (el.addEventListener) { el.addEventListener('input', function () { setStyle(el) }, false); setStyle(el) } else if (el.attachEvent) { el.attachEvent('onpropertychange', function () { setStyle(el) }); setStyle(el) } if (window.VBArray && window.addEventListener) { //IE9 el.attachEvent("onkeydown", function () { var key = window.event.keyCode; if (key == 8 || key == 46) delayedResize(el); }); el.attachEvent("oncut", function () { delayedResize(el); }); //处理粘贴 } } makeExpandingArea(Address); makeExpandingArea(Content); //======================类别==========================// //function delpic(id, ismain) { // if (confirm("确认要删除?")) { // location.href = '?delid=' + id + '&type=delpic&ism=' + ismain + '&id='; // } else { window.event.returnValue = false; } //} //======================地区==========================// </script> <script> function chatList(v, allunread) { if (allunread != undefined) { vm.unreadnum = allunread; } console.info('未读:' + allunread); } </script> <style> .chatNums{ position: absolute; right: 26% !important; top: 0px !important; background-color: #f00; border-radius: 100%; width: auto !important; height: auto !important; color: white; font-style: initial; padding: 1px 3px 0px 3px; font-size: 10px; text-align: center; min-width: 10px; min-height: 10px; outline:none; } .icon{font-size:19px} .icon_on{font-size:19px;color:#F88030} </style> <style> .layui-layer-grey .layui-layer-btn1{ background: #f1f1f1 !important; color: #333 !important; border: 1px solid #dedede !important; } </style> </form> <style> .photo_list2 li.add_photo{width: 60px !important;} </style> <script src="https://img.kq36.com.cn/js/webuploader-0.1.5/webuploader.js?t=1"></script> <script src="/admin/js/upload_r.js?v=4"></script> <script language="javascript" src="https://img.kq36.com.cn/mkq520/js/CityJson.js"></script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10