2 Star 1 Fork 2

徐子玉 / 品贷网

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
myInfo.html 9.26 KB
一键复制 编辑 原始数据 按行查看 历史
徐子玉 提交于 2017-07-05 11:21 . + pdw
<!DOCTYPE html>
<html>
<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>
</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_1200 clearfix">
<!-- 左侧边栏 -->
<div class="indent_left clearfix">
{$indentleft_html}
</div>
<!-- 右侧 -->
<div class="myInfo_index clearfix">
<div class="myInfo_title">
<p>个人信息</p>
</div>
<div class="myInfo_box">
<div class="myInfo_name">
<i class="myInfo_name_icon"></i>
<p></p>
<input class="myInfo_name_input" placeholder="请填写真实姓名">
<div class="myInfo_name_tips">
<i class="myInfo_name_tipIcon"></i>
<p>请填写真实信息</p>
</div>
</div>
<div class="myInfo_address">
<div class="myInfo_registeredAddress">
<i class="myInfo_registeredAddress_icon"></i>
<p>注册地址</p>
</div>
<div class="myInfo_newAddress" >
<div class="addressChoLi">
<div class="addressChoTil" id="addressChoLiA">
<p>省/直辖市</p>
</div>
<ul class="addressPulldown pullDown1" style="display: none;">
</ul>
</div>
<div class="addressChoLi">
<div class="addressChoTil" id="addressChoLiB">
<p></p>
</div>
<ul class="addressPulldown pullDown2" style="display: none;">
</ul>
</div>
<div class="addressChoLi">
<div class="addressChoTil" id="addressChoLiC">
<p>区/县</p>
</div>
<ul class="addressPulldown pullDown3" style="display: none;">
</ul>
</div>
<div class="addressChoLi">
<div class="addressChoTil" id="addressChoLiD">
<p>乡镇/街道</p>
</div>
<ul class="addressPulldown pullDown4" style="display: none;">
</ul>
</div>
<input class="addressChoInput" placeholder="请输入详细地址" />
<div>
<div class="myInfo_newAddress_button">提交</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function(){
var authType = {$AuthType};
if(authType == 0){
$('.myInfo_name_icon').siblings('p').html("姓名");
$('.myInfo_name_input').attr("placeholder","请填写真实姓名");
}
else{
$('.myInfo_name_icon').siblings('p').html("公司名称");
$('.myInfo_name_input').attr("placeholder","请填写公司名称");
}
var proxyName = "{$ProxyName}";
$('.myInfo_name_input').val(proxyName);
var province = "{$ProvinceName}";
var city = "{$CityName}";
var district = "{$DistrictName}";
var town = "{$TownName}";
var address = "{$Address}";
$('#addressChoLiA p').html(province);
$('#addressChoLiB p').html(city);
$('#addressChoLiC p').html(district);
$('#addressChoLiD p').html(town);
$('#addressChoInput').html(address);
loadProvince();
//地址
$('.addressChoTil').click(function() {
$(this).siblings('.addressPulldown').show();
$('.addressPulldown li').click(function(){
var add = $(this).html();
$(this).parent('.addressPulldown').siblings('.addressChoTil').find('p').html(add);
$(this).parent('.addressPulldown').hide();
});
});
$('.addressChoLi').mouseleave(function(){
$(this).children('.addressPulldown').hide();
});
});
function loadProvince(){
$.ajax({
type:"post",
url:"api.php?act=province",
data:{},
async:true,
success:function(result){
if(result != "Failure"){
result = $.parseJSON(result);
var html = "";
$.each(result, function(n,value) {
html += '<li id="'+ value.id +'">';
html += value.name;
html += '</li>';
});
$('.pullDown1').html(html);
$('.pullDown1 li').on('click',function(){
loadCity($(this).attr("id"));
});
}
}
});
}
function loadCity(pid){
$.ajax({
type:"post",
url:"api.php?act=city",
data:{
pid:pid
},
async:true,
success:function(result){
if(result != "Failure"){
result = $.parseJSON(result);
var html = "";
$.each(result, function(n,value) {
html += '<li id="'+ value.id +'">';
html += value.name;
html += '</li>';
});
$('.pullDown2').html(html);
$('.pullDown2 li').on('click',function(){
loadDistrict($(this).attr("id"));
});
}
}
});
}
function loadDistrict(cid){
$.ajax({
type:"post",
url:"api.php?act=district",
data:{
cid:cid
},
async:true,
success:function(result){
if(result != "Failure"){
result = $.parseJSON(result);
var html = "";
$.each(result, function(n,value) {
html += '<li id="'+ value.id +'">';
html += value.name;
html += '</li>';
});
$('.pullDown3').html(html);
$('.pullDown3 li').on('click',function(){
loadTown($(this).attr("id"));
});
}
}
});
}
function loadTown(did){
$.ajax({
type:"post",
url:"api.php?act=town",
data:{
did:did
},
async:true,
success:function(result){
if(result != "Failure"){
result = $.parseJSON(result);
var html = "";
$.each(result, function(n,value) {
html += '<li id="'+ value.id +'">';
html += value.name;
html += '</li>';
});
$('.pullDown4').html(html);
}
}
});
}
$('.myInfo_newAddress_button').on('click',function(){
$.ajax({
type:"post",
url:"api.php?act=userProxyNameModify",
data:{
userProxyName:$('.myInfo_name_input').val()
},
async:true,
success:function(result){
if(result == "success"){
$.ajax({
type:"post",
url:"api.php?act=userAddressModify",
data:{
province:$('#addressChoLiA p').html(),
city:$('#addressChoLiB p').html(),
district:$('#addressChoLiC p').html(),
town:$('#addressChoLiD p').html(),
address:$('.addressChoInput').val()
},
async:true,
success:function(result){
if(result == "success"){
alert("修改成功!");
window.location.reload();
}
}
});
}
}
});
});
</script>
</body>
</html>
1
https://gitee.com/xuqipeter/pdw.git
git@gitee.com:xuqipeter/pdw.git
xuqipeter
pdw
品贷网
master

搜索帮助