grzy.html 9.0 KB
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>个人主页</title>
	<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />

	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<link rel="stylesheet" type="text/css" href="css/common.css">
	<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1037215_aj31y803pii.css">
	<link rel="stylesheet" href="css/public.css">
	<link rel="stylesheet" type="text/css" href="css/grzy.css">
	<script src="js/base.js"></script>
	<script src="js/jquery.min.js"></script>

	<style>
		.icon-caidan {
			font-size: 0.5rem;
		}

		.icon-magnifier {
			color: #999999;
		}

		.f_size {
			font-weight: normal;
			font-size: 0.18rem;
		}

		.icon-xiugai {
			margin-left: 0.15rem;
			font-size: 0.3rem;
			color: #999999;
			display: flex;
			font-weight: bold;
			align-items: center;
		}

		.top_dot {
			width: 0.08rem;
			height: 0.08rem;
			background: rgba(166, 16, 16, 1);
			border: 1px solid rgba(255, 255, 255, 1);
			border-radius: 50%;
			position: absolute;
			top: 0;
			right: 0;
		}

		.color_black {
			color: black;
		}

		.margin_t {
			margin-top: 0.1rem;
		}

	</style>
</head>

<body>
	<div class="container">
		<div class="top">
			<!--顶部菜单-->
			<div class="top_t">
				<!--左-->
				<div class="top_t_left">
					<!--中文字-->
					<div class="top_t_left_text">

					</div>
					<!--菜单图标-->
					<div class="iconfont icon-caidan">
						<!--<div class=""></div>-->
						<!--菜单列表-->
						<div class="menu_item" style="display: none;">

							<!--<p class="index_jump">主页</p >-->
							<!--<p class="rwxq_jump">人物详情</p>-->
							<!--<p class="grzy_jump">个人主页</p>-->
							<!--<p class="spxq_jump">视频详情</p>-->
							<a href="index.html">
								<div class="menu_item_a">
									<div>首页</div>
									<div class="menu_item_a_pic">
										<img src="images/you@2x.png">
									</div>
								</div>
							</a>
							<a href="">
								<div class="menu_item_a">
									<div>精选</div>
									<div class="menu_item_a_pic">
										<img src="images/you@2x.png">
									</div>
								</div>
							</a>
							<a href="">
								<div class="menu_item_a">
									<div>动态</div>
									<div class="menu_item_a_pic">
										<img src="images/you@2x.png">
									</div>
								</div>
							</a>
							<a href="">
								<div class="menu_item_a">
									<div>百科</div>
									<div class="menu_item_a_pic">
										<img src="images/you@2x.png">
									</div>
								</div>
							</a>
						</div>
					</div>
				</div>
				<!--中-->
				<div class="top_t_middle">
					<img src="images/icon_1.png">
				</div>
				<!--右-->
				<div class="top_t_right" style="display: none">
					<!--铃声-->
					<div class="iconfont icon-10">
						<div class="top_dot"></div>
					</div>
					<div class="top_t_right_text">
						注册/登录
					</div>
					<!--头像-->
					<div class="top_t_right_pic" style="display: none">
						<img src="images/1.png">
					</div>
					
				</div>
				<div class="top_t_right">
				
					<div class="top_t_right_pic">
						<img src="images/1.png">
						<div class="head_right_nav">
							<div class="head_right_item">
								<a href="grzy.html">个人主页</a>
							</div>
							<div class="head_right_item">
								<a href="zhsz.html">设置</a>
							</div>
							<div class="head_right_item">
								<a href="">退出登录</a>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--底部搜索-->
			<div class="top_d">
				<div class="iconfont icon-magnifier"></div>
				<input class="top_d_input" placeholder="搜索音乐/作品/风格">
			</div>
		</div>
		<!--信息框-->
		<div class="mid">
			<!--左边图片-->
			<div class="mid_left">
				<img src="images/peke.png">
			</div>
			<!--右边图片-->
			<div class="mid_right">
				<!--大昵称-->
				<div class="mid_right_big">
					皮还是皮不过我的你
					<!--修改-->
					<div class="iconfont icon-xiugai ">
						<p class="f_size">修改</p>
					</div>
				</div>
				<!--小昵称-->
				<div class="mid_right_small">
					皮还是皮不过我的你
					<!--修改按钮-->
					<div class="iconfont icon-xiugai ">
						<p class="f_size">修改</p>
					</div>
				</div>
			</div>
		</div>
		<!--动态 审核-->
		<div class="item">
			<div class="item_m item_color" data-id="1">
				动态
				<div class="item_number" data-id="1">
					12
				</div>

			</div>
			<div class="item_m ">
				审核
				<div class="item_number">
					9
				</div>
			</div>
		</div>
		<!--动态消息-->
		<div class="message">
			<div class="message_box">
				<p class="color_red">
					小猪佩奇
					<span class="color_black">
						赞了你的
					</span>
					《中国流行音乐的发展历程》
				</p>
				<p class="color_red margin_t">
					小猪佩奇
					<span class="color_black">
						关注了你
					</span>
				</p>
			</div>
			<div class="message_box">
				<p class="color_red">
					小猪佩奇
					<span class="color_black">
						赞了你的
					</span>
					《中国流行音乐的发展历程》
				</p>
				<p class="color_red margin_t">
					小猪佩奇
					<span class="color_black">
						关注了你
					</span>
				</p>
			</div>
			<div class="message_box">
				<p class="color_red">
					小猪佩奇
					<span class="color_black">
						赞了你的
					</span>
					《中国流行音乐的发展历程》
				</p>
				<p class="color_red margin_t">
					小猪佩奇
					<span class="color_black">
						关注了你
					</span>
				</p>
			</div>


		</div>
		<!--审核消息-->
		<div class="audit" style="display: none;">
			<div class="audit_big">
				正在审核
				<p class="audit_small">你提交的 <span class="color_red">12306</span>内容正在审核中,请耐心等待。</p>
			</div>

			<div class="audit_big">
				正在审核
				<p class="audit_small">你提交的 <span class="color_red">12306</span>内容正在审核中,请耐心等待。</p>
			</div>
		</div>
		<div class="mask fit" style="display: none">
			<div class="fit_name">
				<div class="fit_name_title">
					设置昵称
					<img src="images/close.png" alt="">
				</div>
				<div class="fit_name_main">
					<form action="">
						<input type="text" name="" id="" placeholder="请设置您的昵称">
						<p>不超过8个中文,不超过12个英文字母,不能有除了_-以外的字符</p>
						<button type="button">完成</button>
					</form>
				</div>
			</div>
		</div>
		<div class="mask fit2" style="display: none">
			<div class="fit_name">
				<div class="fit_name_title">
					设置签名
					<img src="images/close.png" alt="">
				</div>
				<div class="fit_name_main">
					<form action="">
						<input type="text" name="" id="" placeholder="请设置您的签名">
						<p>不超过30个中文</p>
						<button type="button">完成</button>
					</form>
				</div>
			</div>
		</div>
		<div id="message_info" class="growl" style="display:none;">
			<div id="message_content" class="growl-item alert message_error"></div>
		</div>
	</div>
</body>
<script>
	var addMessage = function(type, message) {
		$("#message_content").html("");
		$("#message_content").removeClass("message_success");
		$("#message_content").removeClass("message_error");
		if (message != null && message != '') {
			if (type == 'success') {
				$("#message_content").addClass("message_success");
			} else {
				$("#message_content").addClass("message_error");
			}
			$("#message_content").html(message);
			$("#message_info").fadeIn();
			setTimeout(function() {
				$("#message_info").fadeOut();
			}, 1000);
		};
	};
	//点击打开菜单
	$('.icon-caidan').click(function() {
		console.log(11)
		$('.menu_item').slideToggle();
		// 关闭图片功能  2019.4.8
		// if($(this).hasClass("icon-caidan")){
		//     $(this).addClass("icon-guanbi");
		//     $(this).removeClass("icon-caidan");
		//     $("body").css("overflow","hidden");
		// }else{
		//     $(this).removeClass("icon-guanbi");
		//     $(this).addClass("icon-caidan");
		//     $("body").css("overflow","auto");
		// }
	})

	//标题切换
	$('.item_m').click(function() {
		var index = $(this).index()

		$(this).addClass('item_color').siblings(".item_m").removeClass('item_color')


		//内容切换
		var dataid = $(this).attr("data-id");
		if (dataid == 1) {
			$(".message").show();
			$('.audit').hide();
		} else {
			$(".audit").show();
			$(".message").hide();
		}



	})
	//修改昵称
	$('.mid_right_big .icon-xiugai').click(function() {
		$('.fit').show()

	})

	$('.fit_name_title img').click(function() {
		$('.fit').hide()
		$('.fit2').hide()
		addMessage('success', '取消修改');
	})
	$('.fit_name_main button').click(function() {
		$('.fit').hide()
		$('.fit2').hide()
		addMessage('success', '修改成功');
	})
	//修改签名
	$('.mid_right_small .icon-xiugai').click(function() {
		$('.fit2').show()
		//		addMessage('success', '嘿嘿');
	})
	$('.top_t_right_pic img').click(function() {
		$('.head_right_nav').toggle()
	})

</script>

</html>