1 Star 0 Fork 2

tongmingyong/品贷网

forked from 徐子玉/品贷网 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
userinfo.html 33.49 KB
一键复制 编辑 原始数据 按行查看 历史
徐子玉 提交于 2017-07-05 11:21 . + pdw
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>个人中心-品代网(pindai123.com)--国内首家建材行业供应链交易平台,F2B2C运营模式开创网络建材市场新纪元。</title>
<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">
<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="stylesheet" href="css/indent.css" />
<!-- 个人中心 -->
<link rel="stylesheet" href="css/userinfor.css" />
<link rel="stylesheet" href="css/add.css"/>
<!--右边栏-->
<link rel="stylesheet" href="css/right_side.css" />
<script src="js/jquery-1.7.2.min.js"></script>
<!-- 验证 -->
<script type="text/javascript" src="js/jquery.validate.js"></script>
<!--右边栏-->
<script type="text/javascript" src="js/right-side/parabola.js"></script>
<script type="text/javascript" src="js/right-side/right_side.js"></script>
</head>
<body>
<!-- 右侧固定导航链接 -->
<div class="mui-mbar-tabs">
{$userright_html}
</div>
<!-- top_header 顶部 -->
{$user_head_html}
<!--top_logo -->
<div class="top_logo">
{$userinfo_head_html}
</div>
<!-- indent -->
<div id="indent">
<div class="wrap_1000 clearfix">
<!-- 左侧边栏 -->
<div class="indent_left clearfix">
{$indentleft_html}
</div>
<!-- 右侧 -->
<div class="indent_right clearfix">
<!-- 个人中心-->
<div id="til3_con" class="my_info">
<div class="indent_right_title">个人中心<!--<span id="tips" style="color: red; font-size: 12px; margin-left: 5px;">(tips:如果想要修改代理名称或注册所在地,请点击申请修改)</span>--></div>
<div class="indent_right_con">
<div class="my_info_con">
<div class="my_nicheng clearfix">
<div class="user_info_pic fl">
<p class="p1 fl"><img src="images/my_nicheng.png" /></p>
<p class="p2 fl" id="callname">代理名称</p>
</div>
<div class="user_xinxi fl">
<input class="nicheng_name" type="text" value="{$ProxyName}"/>
<!-- <a class="nicheng_save" href="javascript:;">保存</a>-->
</div>
</div>
<!--<div class="my_phone clearfix">
<div class="user_info_pic fl">
<p class="p1 fl"><img src="images/my_phone.png" /></p>
<p class="p2 fl">绑定手机</p>
</div>
<div class="user_xinxi fl">
<p class="p3">已绑定手机:<span>{$phoneNumber}</span></p>
<p class="p4">绑定手机将作为品代网与您唯一的联络方式,帮您找回密码。</p>
</div>
<div class="fr">
<a id="xiugai_phone" href="javascript:;">
<p id="userxiugaiphone">更换手机号 </p>
</a>
</div>
</div>
<div class="phone_revise clearfix" style="display: none">
<a href="javascript:;"><div class="close"> </div> </a>
<p class="hang">
<span>填写11位手机号:</span>
<input id="new_phonenum" class="input4" type="text" name="user[phone_number]" >
</p>
<p class="hang">
<span>填写验证码:</span>
<input id="text_code" class="input3" type="text" name="user[text_code]">
<span class="sendCodeBtn"><a href="javascript:;"> 发送验证码</a></span>
</p>
<p class="hang">
<span class="saveCodeBtn" id="saveCodeBtn"><a href="javascript:;">保存</a></span>
</p>
</div>
-->
<!--<div class="my_password clearfix">
<div class="user_info_pic fl">
<p class="p1 fl"><img src="images/my_password.png" /></p>
<p class="p2 fl">密码修改</p>
</div>
<form id="new_pw">
<div class="new_password fl">
<p class="hang">
<span>当前密码:</span>
<input id="oldpasswd" type="password" class="input1" name="user[passwd]" value=""/>
</p>
<p class="hang">
<span>新密码:</span>
<input id="newpasswd1" type="password" class="input1" name="user[newpasswd]" />
</p>
<p class="hang">
<span>确认新密码:</span>
<input id="newpasswd2" type="password" class="input1" name="user[newpasswd2]"/>
</p>
<p class="hang">
<a class="input2" id="changePasswdBtn">提交</a>
</p>
</div>
</form>
</div>-->
<div class="my_address clearfix">
<div class="user_info_pic fl">
<p class="p1 fl"><img src="images/my_address.png" /></p>
<p class="p2 fl">注册所在地</p>
</div>
<div class="user_xinxi fl">
<p class="p5 fl">{$ProvinceName}{$CityName}{$DistrictName}{$TownName}{$Address}</p>
<a href="javascript:;" class="p2 fl" id="addressxiugai">修改</a>
</div>
</div>
<div class="address_revise clearfix" style="display: none">
<a href="javascript:;"><div class="close"> </div> </a>
<!-- 城市选择 -->
<div id="city">
<div class="prov">
<div id="sel1_til"><p pid="">{$ProvinceName}</p><i> </i></div>
<div class="sel_con" style="display: none"> </div>
</div>
<div class="city">
<div id="sel2_til"><p cid="">{$CityName}</p><i> </i></div>
<div class="sel_con" style="display: none"> </div>
</div>
<div class="dist">
<div id="sel3_til"><p did="">{$DistrictName}</p><i> </i></div>
<div class="sel_con" style="display: none"> </div>
</div>
<div class="street">
<div id="sel4_til"><p tid="">{$TownName}</p><i> </i></div>
<div class="sel_con" style="display: none"> </div>
</div>
<!-- 详细地址 -->
<input type="text" name="address" id="address" class="bd_address" onfocus="if (this.value == '请输入详细街道门牌号') {
this.value = ''
}" onblur="if (this.value == '') {
this.value = '请输入详细街道门牌号'
}" value="{$Address}"/>
<!-- 保存 -->
<!-- <a href="javascript:;" class="baocun">
保存
</a>-->
</div>
</div>
<!--申请修改-->
<div class="xiugai">
<a href="javascript:;" id="applyModify">提交</a>
<span id="applyState"></span>
</div>
</div>
</div>
</div>
<!-- 个人中心 end-->
</div>
</div>
</div>
<!-- 版权 -->
<div id="footermain">
{$foot_html}
</div>
<!-- v5kf.com -->
<!--<script type="text/javascript" charset="utf-8" src="https://www.v5kf.com/104932/v5kf.js"></script>-->
<!-- / v5kf.com -->
<script type="text/javascript">
$(document).ready(function () {
var modifyState = '';
modifyState = {$ModifyState};
//alert("modifyState="+modifyState);
authStatus = {$authStatus};
//alert("authStatus="+authStatus);
var authType = {$AuthType};
if (authType == 0) {
$('#callname').html("姓名");
}
else {
$('#callname').html("姓名");
}
if (modifyState == '0'&& authStatus == '0') {
$('.nicheng_name').attr('readonly', 'readonly');
$('.nicheng_save').hide();
$('#addressxiugai').hide();
$('#applyModify').show();
$('#applyModify').html('申请修改');
$('#applyModify').on('click', function () {
$.post("api.php?act=userInfoModifyApply", {},
function (data) {
if (data == 'success') {
alert('提交成功,请等待审核!');
$('#applyState').html('申请中...');
}
});
});
}
else if (modifyState == '0' && authStatus == '1') {
$('.nicheng_name').attr('readonly', 'readonly');
$('.nicheng_save').show();
$('#addressxiugai').hide();
$('#applyModify').show();
$('#applyModify').html('申请修改');
$('#applyModify').on('click', function () {
$.post("api.php?act=userInfoModifyApply", {},
function (data) {
if (data == 'success') {
alert('提交成功,请等待审核!');
$('#applyState').html('申请中...');
$('#tips').text('(tips:申请修改中!)');
}
});
});
}
else if (modifyState == '1' && authStatus == '0') {
$('.nicheng_save').show();
$('#addressxiugai').hide();
$('#applyModify').hide();
$('#tips').text('(tips:申请修改中!)');
}
else if (modifyState == '2' && authStatus == '0') {
$('.nicheng_save').hide();
$('#addressxiugai').show();
$('#applyModify').on('click', function () {
if (confirm("你确定要提交信息吗?") == true){
//提交代理名称
var userProxyName = $('.nicheng_name').val();
$.post("api.php?act=userProxyNameModify", {userProxyName: userProxyName}, function (data) {
if (data == "success") {
}
});
//提交地址修改
var province = $('#sel1_til p').html();
var city = $('#sel2_til p').html();
var district = $('#sel3_til p').html();
var town = $('#sel4_til p').html();
var address = $('#address').val();
$.post("api.php?act=userAddressModify", {province: province, city: city, district: district, town: town, address: address}, function (data) {
if (data == "success") {
alert("保存成功");
window.location.reload();
}
});
}
});
}
else if (modifyState == '3' && authStatus == '0') {
$('.nicheng_save').hide();
$('#addressxiugai').show();
$('#applyModify').on('click', function () {
if (confirm("你确定要提交信息吗?") == true){
//提交代理名称
var userProxyName = $('.nicheng_name').val();
$.post("api.php?act=userProxyNameModify", {userProxyName: userProxyName}, function (data) {
if (data == "success") {
alert("保存成功");
window.location.reload();
}
});
//提交地址修改
var province = $('#sel1_til p').html();
var city = $('#sel2_til p').html();
var district = $('#sel3_til p').html();
var town = $('#sel4_til p').html();
var address = $('#address').val();
$.post("api.php?act=userAddressModify", {province: province, city: city, district: district, town: town, address: address}, function (data) {
if (data == "success") {
alert("保存成功");
window.location.reload();
}
});
}
});
}
else if (modifyState == '2' && authStatus == '1') {
$('.nicheng_save').hide();
$('#addressxiugai').show();
$('#applyModify').on('click', function () {
if (confirm("你确定要提交信息吗?") == true){
//提交代理名称
var userProxyName = $('.nicheng_name').val();
$.post("api.php?act=userProxyNameModify", {userProxyName: userProxyName}, function (data) {
if (data == "success") {
alert("保存成功");
window.location.reload();
}
});
//提交地址修改
var province = $('#sel1_til p').html();
var city = $('#sel2_til p').html();
var district = $('#sel3_til p').html();
var town = $('#sel4_til p').html();
var address = $('#address').val();
$.post("api.php?act=userAddressModify", {province: province, city: city, district: district, town: town, address: address}, function (data) {
if (data == "success") {
alert("保存成功");
window.location.reload();
}
});
}
});
}
else if (modifyState == '3' && authStatus == '1') {
$('.nicheng_name').attr('readonly', 'readonly');
$('.nicheng_save').hide();
$('#addressxiugai').hide();
$('#applyModify').html('申请修改');
$('#applyModify').on('click', function () {
$.post("api.php?act=userInfoModifyApply", {},
function (data) {
if (data == 'success') {
alert('申请成功');
$('#applyState').html('申请中...');
}
});
});
}
else if (modifyState == '1' && authStatus == '1') {
$('.nicheng_name').attr('readonly', 'readonly');
$('.nicheng_save').hide();
$('#addressxiugai').hide();
$('#applyModify').hide();
}
var name = $('.nicheng_name').val();
if (name == '') {
$('.nicheng_save').show();
$('.nicheng_name').removeAttr('readonly');
}
// else {
// $('.nicheng_name').attr('readonly', 'readonly');
// }
// $('#applyModify').on('click', function () {
// $.post("api.php?act=userInfoModifyApply", {},
// function (data) {
// if (data == 'success') {
// alert('提交成功,请等待审核!');
// $('#applyState').html('申请中...');
// }
// });
// });
//点击刚换手机号 更换手机号出现及关闭
$('#userxiugaiphone').click(function () {
$('.phone_revise').slideDown(200);
});
$('#addressxiugai').click(function () {
$('.address_revise').slideDown(200);
});
//关闭
$(".phone_revise .close").click(function () {
$('.phone_revise').slideUp(200);
});
$(".address_revise .close").click(function () {
$('.address_revise').slideUp(200);
});
$(".mail_address_revise .close").click(function () {
$(".mail_address_revise").slideUp(200);
});
$("#mailaddressxiugai").click(function () {
$(".mail_address_revise").slideDown(200);
});
//手机号输完
$("#new_phonenum").keyup(function () {
var patrn = /^[1][358][0-9]{9}$/;
if (patrn.test($("#new_phonenum").val())) {
$(".sendCodeBtn").css('background', '#B61D1D');
return;
} else {
$(".sendCodeBtn").css('background', '#ccc');
}
});
//验证手机号
//手机号是否正确验证
$("#phoneNumber").bind("blur", function () {
var phone = $("#phoneNumber");
if (phone.val() == "") {
alert("请填写手机号!");
}
if (!phone.val().match(/^[1][358][0-9]{9}$/)) {
alert("手机号码不正确!请重新输入");
$("#shouji").unbind("focus"); // 添加这行,在focus()之前先把绑定的 focus 处理事件去掉
$("#shouji").focus();
}
});
$("#saveCodeBtn").click(function () {
var newphoneNum = $("#new_phonenum").val();
var newCode = $("#text_code").val();
//alert(newCode);
if (newphoneNum == "" || newCode == "") {
alert("请填写完整信息");
}
else {
if (!newphoneNum.match(/^[1][358][0-9]{9}$/)) {
alert("手机号码不正确!请重新输入");
}
else {
$.post("api.php?act=userPhoneNumberModify", {phoneNumber: newphoneNum}, function (data) {
if (data == "success") {
alert("保存成功");
window.location.reload();
$("#new_phonenum").val('');
$("#text_code").val('');
}
else {
alert(data);
$("#new_phonenum").val('');
$("#text_code").val('');
}
});
}
}
});
//验证密码
$("#changePasswdBtn").click(function () {
var oldpasswd = $("#oldpasswd").val();
var newpasswd1 = $("#newpasswd1").val();
var newpasswd2 = $("#newpasswd2").val();
if (oldpasswd == "" || newpasswd1 == "" || newpasswd2 == "") {
alert("请填写密码");
}
else if (newpasswd1 != newpasswd2) {
alert("两次密码不一致");
} else {
$.post("api.php?act=userPassModify", {password: oldpasswd, passwordNew: newpasswd1}, function (data) {
if (data == "success") {
alert("保存成功");
$("#oldpasswd").attr("value", "");
$("#newpasswd1").attr("value", "");
$("#newpasswd2").attr("value", "");
}
});
}
});
//选择省
$.post("api.php?act=province", {},
function (data) {
var html = "";
//$('.prov .sel_con').show();
data = $.parseJSON(data);
html += ' <div class="provlist">';
html += ' <ul>';
$.each(data, function (n, value) {
html += ' <li value="' + value.name + '" pid="' + value.id + '">' + value.name + '</li>';
});
html += ' </ul>';
html += ' </div>';
$('.prov .sel_con').html(html);
});
//点击显示
$('#sel1_til').live('click', function () {
if ($(this).siblings().is(':hidden')) {
$(this).siblings().css('display', 'none');
$(this).siblings('.sel_con').slideDown(200);
$(this).siblings().css('display', 'block');
}
else {
$(this).siblings('.sel_con').slideUp(200);
}
;
});
$('#sel2_til').live('click', function () {
if ($(this).siblings().is(':hidden')) {
$(this).siblings().css('display', 'none');
$(this).siblings('.sel_con').slideDown(200);
$(this).siblings().css('display', 'block');
}
else {
$(this).siblings('.sel_con').slideUp(200);
}
;
});
$('#sel3_til').live('click', function () {
if ($(this).siblings().is(':hidden')) {
$(this).siblings().css('display', 'none');
$(this).siblings('.sel_con').slideDown(200);
$(this).siblings().css('display', 'block');
}
else {
$(this).siblings('.sel_con').slideUp(200);
}
;
});
$('#sel4_til').live('click', function () {
if ($(this).siblings().is(':hidden')) {
$(this).siblings().css('display', 'none');
$(this).siblings('.sel_con').slideDown(200);
$(this).siblings().css('display', 'block');
}
else {
$(this).siblings('.sel_con').slideUp(200);
}
;
});
//显示点击的省份
//选择市
$('.provlist li').live('click', function () {
$('#sel1_til p').html($(this).html());
$('#sel1_til p').attr("pid", $(this).attr('pid'));
$('.prov .sel_con').hide();
var pid = $(this).attr('pid');
$.post("api.php?act=city", {pid: pid},
function (data) {
$('.city .sel_con').slideDown(200);
var html = "";
data = $.parseJSON(data);
html += '<div class="citylist">';
html += ' <ul>';
$.each(data, function (n, value) {
html += ' <li value="' + value.name + '" cid="' + value.id + '">' + value.name + '</li>';
});
html += ' </ul>';
html += '</div>';
$('.city .sel_con').html(html);
//显示点击的市
$('.citylist li').click(function () {
$('#sel2_til p').html($(this).html());
$('#sel2_til p').attr("cid", $(this).attr('cid'));
$('.city .sel_con').hide();
});
});
$('#sel2_til').click();
});
//选择区
$('.citylist li').live('click', function () {
var cid = $(this).attr('cid');
//console.log(cid);
$.post("api.php?act=district", {cid: cid},
function (data) {
$('.dist .sel_con').slideDown(200);
var html = "";
data = $.parseJSON(data);
html += '<div class="distlist">';
html += ' <ul>';
$.each(data, function (n, value) {
html += ' <li value="' + value.name + '" did="' + value.id + '">' + value.name + '</li>';
});
html += ' </ul>';
html += '</div>';
$('.dist .sel_con').html(html);
//显示点击的区
$('.distlist li').click(function () {
$('#sel3_til p').html($(this).html());
$('#sel3_til p').attr("did", $(this).attr('did'));
$('.dist .sel_con').hide();
});
});
$('#sel3_til').click();
});
//选择街道
$('.distlist li').live('click', function () {
var did = $(this).attr('did');
$.post("api.php?act=town", {did: did},
function (data) {
$('.street .sel_con').slideDown(200);
var html = "";
data = $.parseJSON(data);
html += '<div class="streetlist">';
html += ' <ul>';
$.each(data, function (n, value) {
html += ' <li value="' + value.name + '" tid="' + value.id + '">' + value.name + '</li>';
});
html += ' </ul>';
html += '</div>';
$('.street .sel_con').html(html);
//显示点击的区
$('.streetlist li').click(function () {
$('#sel4_til p').html($(this).html());
$('#sel4_til p').attr("tid", $(this).attr('tid'));
$('.street .sel_con').hide();
});
});
$('#sel4_til').click();
});
//修改代理名称
$('.nicheng_save').click(function () {
var userProxyName = $('.nicheng_name').val();
$.post("api.php?act=userProxyNameModify", {userProxyName: userProxyName}, function (data) {
if (data == "success") {
alert("保存成功");
window.location.reload();
}
});
});
//发送验证码
$('.sendCodeBtn').click(function () {
var phoneNumber = $('#new_phonenum').val();
$.post("api.php?act=userMsgCode", {phoneNumber: phoneNumber}, function (data) {
$('#text_code').val(data);
});
});
});
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mingyong50/pdw.git
[email protected]:mingyong50/pdw.git
mingyong50
pdw
品贷网
master

搜索帮助