2 Star 1 Fork 2

徐子玉/品贷网

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
seekMaster.html 28.30 KB
一键复制 编辑 原始数据 按行查看 历史
徐子玉 提交于 2017-07-05 11:21 . + pdw
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="keywords" content="代理,加盟,招商,批发,零售,建材网上商城,PPR,PVC,PE,管材,管件,波纹管,缠绕管,卫浴,陶瓷,龙头,浴缸,地漏,吊顶,灯具,开关,插线板,插座,电线,电缆,水暖五金,地板,油漆,地暖,太阳能,净水器,装修材料" />
<meta name="description" content="品代网(pindai123.com)是中国首家采用云管理系统,互联网加实体营销管理为一体的交易平台。专业的建材行业综合网上购物平台,销售管材管件,水暖卫浴,厨卫洁具,灯具开关,板材五金,油漆涂料,电线电缆,家装材料,建筑材料,五金配件,防水等。正品低价,品质保证,便捷操作,诚信服务。">
<meta name="author" content="Administrator">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>寻找水电工-品代网(pindai123.com)--国内首家建材行业供应链交易平台,F2B2C运营模式开创网络建材市场新纪元。</title>
<link rel="shortcut icon" href="favicon.ico"/>
<!--css-->
<link rel="stylesheet" href="css/head.css" />
<link rel="stylesheet" href="css/index2.css" />
<link rel="stylesheet" href="css/topbannerSecond.css"/>
<link rel="stylesheet" href="css/indent.css" />
<link rel="stylesheet" href="css/add.css" />
<link rel="stylesheet" href="css/seekMaster.css" />
<link rel="stylesheet" href="css/footercom.css" />
<!--js-->
<script src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/hd_nav.js"></script>
</head>
<body>
<!--提交遮罩-->
<div class="ApplyTT" style="display: none;">
<div class="Applybox" >
<div class="ApplyClear"></div>
<div class="ApplyTheme">免费申请联系<input type="hidden" id="c_zixun"></div>
<div class="ApplyPhoneNum">手机号码:<input type="text" id="appletel" value="" readonly="readonly" class="appletel"/></div>
<div class="ApplyYanzheng">图形码:<input type="text" id="appleCode" class="appleCode"/><img src="secoder.php" class="appleImg"/><p id="rePic">看不清楚,换一张</p></div>
<div class="ApplyYanzheng">验证码:<input type="text" id="appleYan" class="appleYan"/><span id="getcode" class="f_l regPrompt regPrTime">获取短信验证码</span>
</div>
<div class="ApplyTijiao">提交</div>
<div class="ApplyFanhui">返回</div>
</div>
<div class="Applyboxbox" style="display:none;">
</div>
</div>
<!-- gg_top -->
{$ad_head_html}
<!-- top_header 顶部 -->
{$user_head_html}
<!-- top-main-->
{$search_head_html}
<!--导航分类-->
<div id="indexMain11">
<!--导航-->
<div id="headerNav">
<div class="wrap_1200 hd_header_nav clearfix">
<!--所有商品分类-->
<div id="allSortOuterbox" class="hd_header_nav_div clearfix">
<div class="allSortOuterbox_til">产品类别</div>
</div>
<!--快速导航-->
<ul id="global_menu" class="hd_header_nav_div">
<img src="images/images/oratil2_12.jpg" class="allSortOuter_trigon">
<li><a href="index.php" class="active">&nbsp;&nbsp;首页&nbsp;&nbsp;</a> </li>
<li id="applyAgent" class="header_nav_bigger"><a href="applicationAgency.php" target="_blank">申请代理意向</a> </li>
<li class="header_nav_bigger">
<div class="header_nav_order">装修师傅预约<i class="pullIcon"></i></div>
<div class="header_nav_pulldown" style="display: none;">
<ul>
<li><a href="seekMaster.php">查询装修师傅</a></li>
<li><a href="fitmentRegister.php">装修维修登记</a></li>
<li><a href="masterSeekJob.php">装修师傅找活</a></li>
</ul>
</div>
</li>
<li class="header_nav_bigger">
<div>同城顺带物流<i class="pullIcon"></i></div>
<div class="header_nav_pulldown" style="display: none;">
<ul>
<li><a href="shipments.php">我要发货</a></li>
<li><a href="deliverGoods.php">我要送货</a></li>
<li><a href="shipmentList.php">我的物流</a></li>
</ul>
</div>
</li>
<li><a href="quickorder.php" target="_blank">快速下单</a> </li>
<li><a href="./brandWall.php" target="_blank">品牌大全</a> </li>
<li><a href="./commodity.php" target="_blank">商品专区</a> </li>
</ul>
<!--手机品代-->
<div class="global_menu_mobile">
<i class="header_nav_mobile"></i>
<div class="header_nav_mobile_img" style="display: none;">
<img src="images/head/downloadAPP.jpg" />
</div>
</div>
</div>
</div>
</div>
<div id="seekContent" class="wrap_1200 seekContent clearfix">
<div id="seekLeft" class="wrap_960 seekLeft clearfix">
<!--条件选择-->
<div id="seekTop" class="seekTop">
<div class="seekTopFirst">
<div class="seekTopFirText" id="worker_service">上海装修师傅</div>
<div class="seekTopFF">></div>
<ul class="seekTopFS">
<li style="display: none;" id="div1">工种类型:<span class="wookJob"></span><span id="workerdel" class='iconSeek'>X</span></li>
<li style="display: none;" id="div2">服务区域:<span class="fuwu" ></span><span id="districtdel" class='iconSeek'>X</span></li>
</ul>
<!-- <div class="seekTopFSec">共<span>1</span>项结果</div>-->
<div class="seekTopFLast">装修师傅哪家强?</div>
</div>
<div class="seekTopSecond">
<div class="seekTopFirText">工种类型</div>
<ul class="seekTopSS" id="wookstyle">
<li>项目经理(包工头)</li>
<li>水电工</li>
<li>木工</li>
<li>泥瓦工</li>
<li>油漆工</li>
<li>杂工</li>
</ul>
</div>
<div class="seekTopThird">
<div class="seekTopFirText">服务区域</div>
<ul class="seekTopTF" id="serviceArea">
</ul>
</div>
</div>
<!--装修师傅-->
<div id="seekFinal" class="seekFinal">
<div class="seekMid">
<div class="seekMidHot">热门排序</div>
</div>
<div class="seekFinalMain">
</div>
</div>
</div>
<div id="seekRight" class="seekRight clearfix">
<div class="seekRightTop">
<div class="seekRightbtn active">工人信息</div>
<div class="seekRightbtn1">装修信息</div>
</div>
<div>
<div class="seekRingWorkerText">
<img src="images/worker_01.jpg" />
</div>
<div class="seekRingZhuangText" style="display: none;">
<img src="images/shuidiangong.jpg" />
</div>
</div>
<div class="seekRightPic"><img src="images/images/MoreChoose.jpg"/></div>
<div class="seekRightWait"><img src="images/images/Wait.jpg"/></div>
</div>
</div>
<!--sidebar-->
{$sidebar_html}
<!--footer-->
<div class="comfooter1">
{$foot_html}
</div>
<script type="text/javascript">
$('#rePic').on('click',function(){
$('.appleImg').attr('src',"secoder.php?n="+new Date().getTime());
});
$(document).ready(function () {
var city = $('.now_province').text();
$('#worker_service').html(city+"装修师傅");
factoryCityTypes(city);
worker('', '', '', '');
var userId = {$userId};
// if (userId < 1) {
// alert('请先登录再查询信息!');
// window.location.href = 'login.html';
// }
//厂家或者产品选择
var hd_search_input1 = $('.hd_search_input1');
var searchdropdown = $('.searchdropdown');
hd_search_input1.click(function () {
$('.searchdropdown').show();
});
$('.searchdropdown').mouseleave(function () {
$('.searchdropdown').hide();
});
$('.searchdropdown_til').click(function () {
var til1 = $(this).html();
$('.hd_search_input1').html(til1);
$('.searchdropdown').hide();
});
//产品类别
var allSortOuterbox_til = $('.allSortOuterbox_til');
var allSortOutbox_left = $('allSortOutbox_left');
allSortOuterbox_til.click(function () {
$('.allSortOutbox_left').show();
});
$('#allSortOuterbox').mouseleave(function () {
$('.allSortOutbox_left').hide();
});
//所有商品分类
var allSort_conli = $('.allSort_conli');
var allSortOuterbox_sort = $('.allSortOuterbox_sort');
allSort_conli.mouseover(function () {
$('#allSortOuterbox_div').css({
'display': 'block',
'z-index': '100'
});
$(this).addClass('active').siblings().removeClass('active');
var index3 = allSort_conli.index(this);
allSortOuterbox_sort.eq(index3).show().siblings().hide();
});
$('#allSortOuterbox').mouseleave(function () {
allSort_conli.removeClass('active');
$('#allSortOuterbox_div').css({
'display': 'none',
'z-index': '-10'
});
});
//工种类型跟地区选择
$('.seekTopSS li').click(function () {
$(this).css('color', '#FFA700').siblings().css('color', '#666');
var workType = $(this).html();
var districtName = $(this).parents('.seekTopSS').parents('.seekTopSecond').siblings('.seekTopFirst').children('.seekTopFS').find('#div2').find('.fuwu').html();
worker(workType, '', '', districtName);
$('.wookJob').html(workType);
$('#div1').show();
});
$('.seekTopTF li').click(function () {
$(this).css('color', '#FFA700').siblings().css('color', '#666');
var districtName = $(this).html();
var workType = $(this).parents('.seekTopTF').parents('.seekTopThird').siblings('.seekTopFirst').children('.seekTopFS').find('#div1').find('.wookJob').html();
worker(workType, '', '', districtName);
$('.fuwu').html(districtName);
$('#div2').show();
});
//删除
$('#workerdel').live("click", function () {
$('#wookJob').text('');
var x = $(this).parents('#div1').parents('.seekTopFS').parents('.seekTopFirst').siblings('.seekTopSecond').children('#wookstyle').find('li').css("color", "#666");
var workType = '';
var districtName = $('#seekTop').children('.seekTopFirst').children('.seekTopFS').children('#div2').find('.fuwu').text();
worker(workType, '', '', districtName);
$(this).parent('li').hide();
});
$('#districtdel').live("click", function () {
$('#fuwu').text('');
var q = $(this).parents('#div2').parents('.seekTopFS').parents('.seekTopFirst').siblings('.seekTopThird').children('#serviceArea').find('li').css("color", "#666");
var workType = $('#seekTop').children('.seekTopFirst').children('.seekTopFS').children('#div1').find('.wookJob').text();
var districtName = '';
worker(workType, '', '', districtName);
$(this).parent('li').hide();
$('#wookstyle').find('li').removeClass('abc');
$('#serviceArea').find('li').removeClass('abc');
});
// 工人信息,装修信息
$('.seekRightbtn').click(function () {
$(this).addClass('active').siblings().removeClass('active');
$('.seekRingWorkerText').show();
$('.seekRingZhuangText').hide();
});
$('.seekRightbtn1').click(function () {
$(this).addClass('active').siblings().removeClass('active');
$('.seekRingWorkerText').hide();
$('.seekRingZhuangText').show();
});
});
//获取城市
function factoryCityTypes(city) {
$.ajax({
type: "post",
url: "api.php?act=factoryListCity",
async: false,
data: {
city: city,
},
success: function (data) {
if (data != "") {
data = $.parseJSON(data);
var html = '';
$.each(data, function (n, value) {
html += '<li>';
html += value.district;
html += '</li>';
});
$('#serviceArea').html(html);
}
}
});
}
//获取所有水电工
function worker(workType, provinceName, cityName, districtName) {
var cityName = $('.now_province').html();
$.ajax({
type: "post",
url: "api.php?act=FindWorker",
async: false,
data: {
workType: workType,
provinceName: provinceName,
cityName: cityName,
districtName: districtName,
},
success: function (data) {
if (data != "") {
data = $.parseJSON(data);
var html = '';
$.each(data, function (n, value) {
html += '<div class="seekFinalMainF">';
if(value.UserFace != ''){
html += '<div class="seekFinalMainPic"><img src="'+value.UserFace+'"></div>';
}else{
html += '<div class="seekFinalMainPic"><img src="images/gray_gr.png"></div>';
}
html += '<div class="NameAndWork">';
html += '<div class="seekFinalMainName" id="uid_' + n + '" uid = ' + value.userProxyId + ' mid=' + value.MRId + '>' + value.username + '</div>';
// html += '<div class="seekFinalMainWork">工种<span>' + value.workType + '</span></div>';
html += '</div>';
html += '<div class="seekMaster_gongLing">'
html += '<i class="seekMaster_renzhen"></i><i class="seekMaster_zhong"></i>'
html += '<div class="seekFinalMainWork"><span>' + value.workType + '</span></div>';
html += '<div class="seekFinalYear"><i class="seekMaster_Ling"></i>'
html += '<div class="seekFinalMainAge">' + value.Seniority + '年</div>';
html += '</div>';
html += '</div>'
html += '<div class="seekFinalMainAddress"><i class="iconAddress"></i>' + value.address + '</div>';
html += '<div class="seekFinalMainContact" id="contact_' + n + '" zixun_flag=0 onclick="contact(' + n + ');">免费联系</div>';
// html += '<div pid=' + value.Tel + ' class="seekFinalMainPhone"><i class="iconPhone"></i>400-6249-123</div>';
html += '<div class="seekFinalMainText">' + value.Memo + '</div>';
html += '<div class="seekFinalMainTotal">已有<span>' + value.ClickCount + '</span>人联系</div>';
html += '</div>';
});
$('.seekFinalMain').html(html);
//遮罩16
$('.ApplyFanhui').click(function () {
$('.ApplyTT').hide();
});
$('.ApplyClear').click(function () {
$('.ApplyTT').hide();
});
//提交
$('.ApplyTijiao').click(function () {
var o_phone = $(this).siblings('.ApplyPhoneNum').find('#appletel'); //手机号码
var o_yzm = $(this).siblings('.ApplyYanzheng').find('#appleYan'); //验证码
if (o_phone.val() == "") {
alert("请填写手机号!");
}
else if (!o_phone.val().match(/^[1][3578][0-9]{9}$/)) {
alert("手机号码不正确!请重新输入");
}
else if (o_yzm.val() == "") {
alert('请获取验证码');
}
else if (o_phone.val() != "" || o_yzm.val() != "") {
var phone = $(this).parents('.Applybox').parents('.ApplyTT').siblings('#seekContent').find('#seekLeft').children('#seekFinal').children('.seekFinalMain').children('.seekFinalMainF').find('.seekFinalMainPhone').attr('pid');
var name = $(this).parents('.Applybox').parents('.ApplyTT').siblings('#seekContent').find('#seekLeft').children('#seekFinal').children('.seekFinalMain').children('.seekFinalMainF').children('.NameAndWork').find('.seekFinalMainName').text();
var worker = $(this).parents('.Applybox').parents('.ApplyTT').siblings('#seekContent').find('#seekLeft').children('#seekFinal').children('.seekFinalMain').children('.seekFinalMainF').children('.seekMaster_gongLing').find('.seekFinalMainWork').find('span').text();
$(this).parents('.Applybox').siblings('.Applyboxbox').find('.ApplyPhone').find('span').text(phone);
$(this).parents('.Applybox').siblings('.Applyboxbox').find('.ApplyName').find('span').text(name);
$(this).parents('.Applybox').siblings('.Applyboxbox').find('.ApplyZhongLei').find('span').text(worker);
$('.Applybox').hide();
$('.Applyboxbox').show();
var c_zixun = $("#c_zixun").val();
var id = $("#contact_"+c_zixun).siblings('.NameAndWork').find('.seekFinalMainName').attr('uid');
var type = 1;
var mrId = 0;
var userProxyId = $("#contact_"+c_zixun).siblings('.NameAndWork').find('.seekFinalMainName').attr('uid');
var listUserId = {$userId};
personal_click(type, id, listUserId);
w_click(type, userProxyId, mrId);
}
});
}
else if (data == '') {
var html = ''
html += '<img src="images/img_nodata.png" style="margin-top: 30px; margin-left: 384px; margin-bottom: 31px;"/>';
$('.seekFinalMain').html(html);
}
}
});
}
//获取验证码
$('#getcode').click(function () {
if($('#appleCode').val() != ""){
var tel = $(this).siblings('#appletel');
if (tel !== "" || tel.val().match(/^[1][3578][0-9]{9}$/)) {
//$('.error').hide();
$.ajax({
type:"post",
url:"api.php?act=MsgCodeV2",
async:true,
data:{
phoneNumber: $('#appletel').val(),
inputCode:$('#appleCode').val(),
times:10
},
success:function(result){
if(result == 'success'){
$('#getcode').css('color','#666');
$('#getcode').html("已发送 请等待 "+"<b>120</b>s");
$("#getcode").css({cursor: 'default'});
$('#getcode').addClass('default');
$(".regPrTime").show();
//倒计时
var setl = setInterval(function () {
var int = parseInt($(".regPrTime b").html());
if (int - 1 <= 0) {
// $(".regPrTime b").html('120').parent().hide();
clearInterval(setl);
$('#getcode').html("获取短信验证码");
$("#getcode").css({cursor: 'pointer'});
$('#getcode').removeClass('default');
} else {
$(".regPrTime b").html(int - 1);
}
}, 1000);
}
else if (result == "codeFailed"){
alert("请输入正确的图形验证码!");
}
else{
alert(result);
}
}
});
}
else {
alert('请填写正确手机号码');
}
}
else{
alert("请输入图形验证码");
}
});
//咨询方法
function contact(n) {
var type = 1;
var id = $("#uid_"+n).attr('uid');
var userProxyId = {$userId};
$.post("api.php?act=check_state",
{
type : type,
id : id,
userProxyId: userProxyId,
}, function (data) {
if(data == '_false'){
var userProxyId = {$userId};
$.ajax({
type: "post",
url: "api.php?act=userGetInfo",
async: false,
data: {
userProxyId: userProxyId,
},
success: function (data) {
if(data != ""){
data = $.parseJSON(data);
var html ='';
$.each(data, function (n, value) {
phone = value.phoneNumber;
if(phone != ''){
document.getElementById('appletel').value = phone;
$('#getcode').text('获取短信验证码');
}
});
}
}
});
$("#c_zixun").val(n);
$('.Applybox').show();
$('.Applyboxbox').hide();
// $("#appletel").val('');
// $("#appleYan").val('');
$('.ApplyTT').show();
}else if(data == "_success"){
var type = 1;
var id = $("#uid_"+n).attr('uid');
var listUserId = {$userId};
personal_click(type, id, listUserId);
$("#c_zixun").val(n);
$('.Applybox').hide();
$('.Applyboxbox').show();
$('.ApplyTT').show();
}
});
}
function w_click(type, userProxyId, mrId) {
$.ajax({
type: "post",
url: "api.php?act=worker_click",
async: false,
data: {
type: type,
userProxyId: userProxyId,
mrId: mrId,
},
// success: function (data) {
//
// }
});
}
function personal_click(type, id, listUserId) {
$.ajax({
type: "post",
url: "api.php?act=personal",
async: false,
data: {
type: type,
id: id,
listUserId: listUserId,
},
success: function (data) {
if (data != "") {
data = $.parseJSON(data);
var html = '';
$.each(data, function (n, value) {
html += '<div class="ApplyClear"></div>';
html += '<div class="ApplyGongTheme">工人信息介绍</div>';
html += '<div class="ApplyName">工人姓名:<span>' + value.name + '</span></div>';
html += '<div class="ApplyZhongLei">工人工种:<span>' + value.workType + '</span></div>';
html += '<div class="ApplyPhone">工人电话:<span>' + value.phoneNumber + '</span></div>';
});
$('.Applyboxbox').html(html);
$('.ApplyClear').click(function () {
$('.ApplyTT').hide();
});
}
}
});
}
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuqipeter/pdw.git
git@gitee.com:xuqipeter/pdw.git
xuqipeter
pdw
品贷网
master

搜索帮助