css布局实现手机端移动端会员中心开通会员vip包月付费会员权益页面效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现手机端移动端会员中心开通会员vip包月付费会员权益页面效果代码

代码标签: 手机 移动 会员中心 开通 会员 vip 包月 付费 会员 权益 页面 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>会员中心</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<style>
    *{margin: 0;padding: 0;border: 0;list-style: none;text-decoration: none;color: inherit;font-weight: normal;font-family: "微软雅黑";box-sizing: border-box;font-style: normal;outline: none;-webkit-tap-highlight-color: transparent;}
body{width: 100%;overflow-x: hidden;background: url(//repo.bfw.wiki/bfwrepo/image/60d52c9e32795.png) top -.6rem left no-repeat #ffffff;background-size: 100% auto;color: #ffffff;}
img{vertical-align: middle;max-width: 100%;}
.container{width: 100%;padding: 0 .4rem;}
/*顶部*/
.top{width: 100%;height: auto;overflow: hidden;}
.top .title{display: flex;justify-content: center;align-items: center;width: 100%;height: .88rem;font-size: .34rem;letter-spacing: .01rem;}
.top span.more{position: absolute;right: .3rem;height:.88rem;width:.41rem;background: url(//repo.bfw.wiki/bfwrepo/image/60d52cc6d54aa.png) center center no-repeat;background-size: 100% auto;}
.top .more-box{display: none;background: #ffffff;position: absolute;top: .6rem;right: .3rem;padding: .15rem .35rem;border-radius: .05rem;font-size: .2rem;color: #333;box-shadow: 0 0 .1rem rgba(0,0,0,.1);}
.top .more-box a{display: block;line-height: .35rem;}
.top .type{width: 100%;padding: .2rem .85rem;}
.top .type ul{display: flex;justify-content: space-between;align-items: center;}
.top .type ul li{font-size: .32rem;letter-spacing: .03rem;position: relative;}
.top .type ul li.active{font-size: .4rem;}
.top .type ul li.active:after{content: "";position: absolute;display: inline-block;width: .3rem;height: .05rem;background: #FFFFFF;border-radius: .05rem;bottom: -.1rem;left: 50%;transform: translateX(-50%);}
.top .status{width: 100%;padding-top: 1.5rem;display: flex;flex-direction: column;}
.top .status span{font-size: .3rem;color: #b38a63;padding-left: 3.45rem;letter-spacing: .01rem;}
.top .status p{font-size: .24rem;color: #b08760;padding-top: .4rem;padding-left: .75rem;letter-spacing: .01rem;}
/*会员卡列表*/
.card-list{width: 100%;margin-top: .34rem;padding-bottom: .2rem;color: #333333;display: none;position: relative;}
.card-list::after{content: "";display: block;width: 100%;height: .2rem;background: #f6f7f6;bottom: 0;left: 0;}
.card-list.active{display: block;}
.card-list .cate{display: flex;justify-content: space-between;align-items: center;width: 100%;height: .9rem;padding: 0 .8rem;border-bottom: .01rem solid #e3e4e3;}
.card-list .cate p{font-size: .32rem;color: #333333;display: flex;align-items: center;position: relative;}
.card-list .cate p i{display: inline-block;width: .37rem;height: .9rem;background: url(//repo.bfw.wiki/bfwrepo/image/60d52cf59ea10.png) center center no-repeat;background-size: 100% auto;margin-right: .08rem;}
.card-list .cate p.active i{background-image: url(//repo.bfw.wiki/bfwrepo/image/60d52ce626467.png);}
.card-list .cate p.active{color: #615691;}
.card-list .cate p.active:after{content: "";display: inline-block;position: absolute;width: 100%;height: .05rem;background: #615691;bottom: -0.01rem;left: 0;}
.card-list .list{padding: .2rem .35rem;padding-bottom: 0;padding-right: 0;}
.card-list .list ul{display: none;padding-bottom: 0;}
.card-list .list ul.active{display: block;display: flex;flex-wrap: nowrap;overflow-x: auto;width: 100%;}
.card-list .list ul.active::-webkit-scrollbar{width: 0;}
.card-list .list ul li{flex-shrink: 0;width: 1.85rem;margin-right: .15rem;}
.card-list .list ul li .title{width: 100%;background: #f4f4f4;font-size: .3rem;color: #33290c;text-align: center;height: .7rem;line-height: .7rem;border-radius: .1rem .1rem 0 0;}
.card-list .list ul li .desc{border: .02rem solid #e9e9e9;border-top:0 ;text-align: center;display: flex;flex-direction: column;align-items: center;justify-content: flex-end;height: 1.7rem;padding-bottom: .3rem;border-radius:  0 0 .1rem .1rem;}
.card-list .list ul li .desc .yh{display: inline-block;font-size: .26rem;color: #FFFFFF;background: #f4635c;height: .36rem;line-height: .36rem;padding: 0 .2rem;border-radius: .05rem;}
.card-list .list ul li .desc .money{color: #333333;display: flex;justify-content: center;align-items: baseline;}
.card-list .list ul li .desc .money i{font-size: .26rem;}
.card-list .list ul li .desc .money span{font-size: .46rem;font-weight: bold;}
.card-list .list ul li .desc .old{font-size: .2rem;color: #999;}
.card-list .list p.tip{font-size: .24rem;color: #999;padding-bottom: .3rem;margin-top: -.1rem;text-indent: .024rem;}
.card-list .list ul li.active .title{background: #ffec86;font-weight: bold;color: #33290c;}
.card-list .list ul li.active .desc{background: #fefbec;border-color: #ffde86;}
/*特权*/
.tequan{width: 100%;padding: .4rem .35rem;}
.tequan ul{display: flex;justify-content: space-between;color: #525252;}
.tequan ul li{width: 100%;display: flex;flex-direction: column;align-items: center;}
.tequan ul li img{width: .73rem;}
.tequan ul li p{font-size: .26rem;padding-top: .15rem;}
.tequan ul li span{font-size: .2rem;color: #cfa767;}
/*开通会员*/
.submit{width: 100%;padding: .1rem .45rem .3rem .45rem;}
.submit button{background: linear-gradient(to right,#968acb,#4d447b);height: .8rem;color: #FFFFFF;font-size: .28rem;letter-spacing: .01rem;width: 100%;border-radius: .1rem;}

</style>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/flexible.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/zepto.min.js"></script>
	</head>

	<body>
		<div class="top">
			<!--标题-->
			<div class="title">
				<h3>会员中心</h3>
				<span class="more"></span>
				<div class="more-box">
					<a href="#">更多</a>
				</div>
			</div>
			<!--类型-->
			<div class="type">
				<ul>
					<li class="active">精选</li>
					<li>游戏</li>
					<li>亲情卡</li>
				</ul>
			</div>
			<!--状态-->
			<div class="status">
				<span>未开通</span>
				<p>*预计每年可节省998元</p>
			</div>
		</div>
		<!--精选会员卡列表-->
		<div class="card-list active">
			<div class="cate">
				<p class="active"><i></i>超级会员</p>
				<p><i></i>普通会员</p>
			</div>
			<div class="list">
				<ul class="active">
					<li class="active">
						<div class="title">连续包月</div>
						<div class="desc">
							<p class="yh">6折优惠</p>
							<p class="money"><i>¥</i><span>12</span></p>
							<p class="old">原价¥20</p>
						</div>
					</li>
					<li>
						<div class="title">1个月</div>
						<div class="desc">
							<p class="yh">9折优惠</p>
							<p class="money"><i>¥</i><span>18</span></p>
							<p class="old">原价¥20</p>
						</div>
					</li>
					<li>
						<div class="title">3个月</div>
						<div class="desc">
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0