consumer-coupon/css/style.css

750 lines
12 KiB
CSS
Raw Normal View History

2022-09-02 08:10:54 +00:00
/* 尾部 */
2022-09-02 15:59:41 +00:00
.footer {
2022-09-02 08:10:54 +00:00
width: 7.5rem;
height: .96rem;
2022-09-02 15:59:41 +00:00
box-shadow: 0 0 .4rem rgba(243, 91, 0, .4);
2022-09-02 08:10:54 +00:00
padding: 0 .2rem;
overflow-x: hidden;
position: fixed;
left: 50%;
bottom: 0;
z-index: 99;
transform: translateX(-50%);
}
2022-09-02 15:59:41 +00:00
.foot {
2022-09-02 08:10:54 +00:00
justify-content: space-between;
align-items: center;
width: 100%;
height: .96rem;
}
2022-09-02 15:59:41 +00:00
.foot>.item {
2022-09-02 08:10:54 +00:00
flex-wrap: wrap;
justify-content: center;
width: 25%;
}
2022-09-02 15:59:41 +00:00
2022-09-03 10:14:57 +00:00
.foot-business>.item{
width: 50%;
}
2022-09-02 15:59:41 +00:00
.foot>.item img {
2022-09-02 08:10:54 +00:00
height: .34rem;
margin-top: .06rem;
}
2022-09-02 15:59:41 +00:00
.foot>.item img:nth-of-type(2) {
2022-09-02 08:10:54 +00:00
display: none;
}
2022-09-02 15:59:41 +00:00
.foot>.item span {
2022-09-02 08:10:54 +00:00
width: 100%;
text-align: center;
2022-09-03 10:14:57 +00:00
margin-top: .02rem;
2022-09-02 08:10:54 +00:00
}
2022-09-02 15:59:41 +00:00
.foot>.item.active img:nth-of-type(1) {
2022-09-02 08:10:54 +00:00
display: none;
}
2022-09-02 15:59:41 +00:00
.foot>.item.active img:nth-of-type(2) {
2022-09-02 08:10:54 +00:00
display: block;
}
2022-09-02 15:59:41 +00:00
.foot>.item.active span {
2022-09-02 08:10:54 +00:00
color: #f35b00;
2022-09-02 00:32:49 +00:00
}
/* 轮播图 */
2022-09-02 01:42:59 +00:00
.banner {
2022-09-02 00:32:49 +00:00
width: 100%;
height: 3.64rem;
overflow: hidden;
}
2022-09-02 01:42:59 +00:00
.banner img {
2022-09-02 00:32:49 +00:00
width: 100%;
min-height: 3.64rem;
}
/* 首页内容区 */
2022-09-02 01:42:59 +00:00
.index-content {
2022-09-02 00:32:49 +00:00
background-color: #fed7b0;
padding: .45rem .2rem;
border-top: .02rem solid #eeb94f;
}
/* 活动 */
2022-09-02 01:42:59 +00:00
.index-content .section {
padding: .1rem;
background-image: linear-gradient(to top, #fec44b, #fff8b4);
position: relative;
}
.section-box {
2022-09-02 00:32:49 +00:00
flex-wrap: wrap;
2022-09-02 01:42:59 +00:00
width: 100%;
2022-09-02 00:32:49 +00:00
background-color: #ffffff;
}
2022-09-02 15:59:41 +00:00
2022-09-18 13:56:47 +00:00
.index-content .section:nth-of-type(1) .section-box,
.index-content .section:nth-of-type(2) .section-box{
padding: .62rem .36rem .3rem;
}
.index-content .section:nth-of-type(3) .section-box{
padding: .48rem .36rem;
}
.activity-time {
2022-09-02 02:12:21 +00:00
justify-content: space-between;
}
2022-09-02 15:59:41 +00:00
2022-09-18 13:56:47 +00:00
.activity-time .envelopes {
2022-09-02 00:32:49 +00:00
width: 2.8rem;
height: 3.66rem;
background-image: url(../images/envelopes.png);
background-size: 100% 100%;
}
2022-09-02 01:42:59 +00:00
2022-09-18 13:56:47 +00:00
.activity-time .envelopes>span {
2022-09-02 00:32:49 +00:00
display: block;
font-size: .64rem;
text-align: center;
line-height: 1.5;
margin-top: 1.7rem;
color: #ffebac;
}
2022-09-02 01:42:59 +00:00
2022-09-18 13:56:47 +00:00
.activity-time .envelopes>p {
2022-09-02 00:32:49 +00:00
justify-content: center;
align-items: center;
width: calc(100% - .52rem);
height: .58rem;
2022-09-02 01:42:59 +00:00
background-image: linear-gradient(to top, #fed383, #fdf0c2);
2022-09-02 00:32:49 +00:00
margin: .15rem auto 0;
color: #ec294c;
2022-09-02 01:42:59 +00:00
font-weight: bold;
2022-09-02 00:32:49 +00:00
animation: scale_name 1s linear alternate infinite;
}
2022-09-02 01:42:59 +00:00
@keyframes scale_name {
from {
2022-09-03 10:14:57 +00:00
transform: scale(.9);
2022-09-02 01:42:59 +00:00
}
to {
2022-09-03 10:14:57 +00:00
transform: scale(1.1);
2022-09-02 01:42:59 +00:00
}
}
2022-09-18 13:56:47 +00:00
.activity-info .txt {
2022-09-02 01:42:59 +00:00
width: 100%;
line-height: 1.7;
}
2022-09-18 13:56:47 +00:00
.activity-info .survey>p{
2022-09-18 14:34:54 +00:00
line-height: 2;
2022-09-18 13:56:47 +00:00
}
.activity-info .introduce{
2022-09-18 14:34:54 +00:00
line-height: 1.7;
margin-top: .2rem;
2022-09-02 01:42:59 +00:00
}
2022-09-02 02:12:21 +00:00
/* 商家推荐 */
2022-09-02 15:59:41 +00:00
.recommend-title {
2022-09-02 01:42:59 +00:00
justify-content: center;
align-items: center;
width: 3.2rem;
height: .88rem;
background-color: #ff353f;
border: .1rem solid #ffde77;
border-radius: .44rem;
text-indent: .04rem;
letter-spacing: .04rem;
position: absolute;
left: 50%;
top: -0.49rem;
transform: translateX(-50%);
}
2022-09-02 15:59:41 +00:00
.recommend .item {
2022-09-02 02:12:21 +00:00
width: calc(33.33% - .16rem);
margin: .25rem .24rem 0 0;
}
2022-09-02 15:59:41 +00:00
.recommend .item:nth-of-type(3n) {
2022-09-02 02:12:21 +00:00
margin-right: 0;
}
2022-09-02 15:59:41 +00:00
.recommend .item>.img {
2022-09-02 02:12:21 +00:00
width: 100%;
height: 1.9rem;
overflow: hidden;
}
2022-09-02 15:59:41 +00:00
.recommend .item>.img img {
2022-09-02 02:12:21 +00:00
width: 100%;
min-height: 1.9rem;
}
2022-09-02 15:59:41 +00:00
.recommend .item>.txt {
2022-09-02 03:23:25 +00:00
margin: .2rem 0 .1rem;
2022-09-02 02:12:21 +00:00
text-align: center;
2022-09-02 03:23:25 +00:00
}
2022-09-02 15:59:41 +00:00
/* 抽奖 */
.luck-draw{
width: 100%;
2022-09-12 08:58:20 +00:00
min-height: calc(100vh - 0.96rem);
2022-09-02 15:59:41 +00:00
background-image: url(../images/luck-draw-bg.jpg);
background-size: cover;
}
.turntable-title{
2022-09-13 10:26:15 +00:00
width: 6.43rem;
2022-09-02 15:59:41 +00:00
height: 2.17rem;
padding: .5rem 0 .45rem;
margin: 0 auto;
}
.turntable-title>img{
width: 100%;
}
.turntable-bg{
width: 6.73rem;
height: 7.69rem;
margin: 0 auto;
position: relative;
}
.lamp{
width: 5.6rem;
height: 5.6rem;
position: absolute;
left: 50%;
top: .59rem;
z-index: 1;
transform: translateX(-50%);
animation: lamp-opacity .3s linear alternate infinite;
}
@keyframes lamp-opacity {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.turntable{
width: 4.4rem;
height: 4.4rem;
position: absolute;
left: 50%;
top: 1.2rem;
margin-left: -2.2rem;
z-index: 9;
}
.pointer{
width: 1.92rem;
height: 2.06rem;
position: absolute;
left: 50%;
top: 2.34rem;
transform: translateX(-50%);
z-index: 99;
}
.turntable-bg img{
width: 100%;
}
/* 结果提示 */
.result-tips{
display: none;
width: 5.4rem;
padding: .5rem;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
z-index: 999;
}
.result-tips.show{
display: block;
}
.tips-msg{
text-align: center;
padding: .46rem 0;
}
.tips-btn{
justify-content: center;
align-items: center;
width: 3.64rem;
height: .98rem;
margin: .1rem auto 0;
}
2022-09-02 08:10:54 +00:00
/* 商户展示 */
2022-09-02 15:59:41 +00:00
.search {
2022-09-02 03:23:25 +00:00
justify-content: space-between;
align-items: center;
2022-09-02 08:10:54 +00:00
width: calc(100% - .5rem);
height: .86rem;
margin: .3rem auto 0;
}
2022-09-14 05:01:51 +00:00
.search-form{
2022-09-21 03:31:10 +00:00
justify-content: space-between;
width: 100%;
}
.search-select-bg{
width: 1.94rem;
border: .02rem solid #868686;
position: relative;
}
.search-select{
width: 100%;
height: 100%;
padding: 0 .3rem;
color: #868686;
}
.search-select-bg>img{
display: block;
width: .14rem;
height: .3rem;
position: absolute;
top: 50%;
right: .15rem;
transform: translateY(-50%);
}
.search-input-bg{
align-items: center;
width: calc(100% - 2.1rem);
2022-09-14 05:01:51 +00:00
}
.search-input {
width: 100%;
2022-09-02 08:10:54 +00:00
line-height: .8rem;
2022-09-21 03:31:10 +00:00
border-radius: .25rem 0 0 .25rem;
border: .02rem solid #868686;
border-right: 0;
padding: 0 .3rem;
2022-09-14 02:41:54 +00:00
-webkit-appearance: none;
2022-09-21 03:31:10 +00:00
color: #868686;
2022-09-02 08:10:54 +00:00
}
2022-09-02 15:59:41 +00:00
2022-09-02 08:10:54 +00:00
.search-input::-webkit-input-placeholder {
color: #868686;
}
2022-09-02 15:59:41 +00:00
2022-09-14 02:41:54 +00:00
.search-input::-webkit-search-cancel-button{
-webkit-appearance: none;
}
2022-09-21 03:31:10 +00:00
.search-btn{
justify-content: center;
align-items: center;
width: .96rem;
height: 100%;
border-radius: 0 .25rem .25rem 0;
}
.search-btn>img {
2022-09-02 08:10:54 +00:00
width: .4rem;
height: .4rem;
2022-09-21 03:31:10 +00:00
filter: grayscale(100%) brightness(100);
2022-09-02 08:10:54 +00:00
}
/* 商户列表 */
2022-09-02 15:59:41 +00:00
.business-list {
2022-09-02 08:10:54 +00:00
padding: 0 .25rem .3rem;
}
2022-09-02 15:59:41 +00:00
.business-list .item {
2022-09-02 08:10:54 +00:00
justify-content: space-between;
border: .04rem solid #ffb285;
padding: .18rem;
margin-top: .3rem;
}
2022-09-02 15:59:41 +00:00
.business-list .item .img {
2022-09-02 08:10:54 +00:00
width: 1.9rem;
height: 1.9rem;
overflow: hidden;
}
2022-09-02 15:59:41 +00:00
.business-list .item .img img {
2022-09-02 03:23:25 +00:00
width: 100%;
2022-09-02 08:10:54 +00:00
min-height: 1.9rem;
2022-09-02 03:23:25 +00:00
}
2022-09-02 15:59:41 +00:00
.business-list .item .txt {
2022-09-02 08:10:54 +00:00
width: calc(100% - 2.15rem);
2022-09-02 03:23:25 +00:00
}
2022-09-02 15:59:41 +00:00
.business-list .item .txt>a {
2022-09-02 08:10:54 +00:00
display: block;
height: 1.4rem;
2022-09-02 03:23:25 +00:00
}
2022-09-02 08:10:54 +00:00
2022-09-02 15:59:41 +00:00
.business-list .item .txt p {
2022-09-02 08:10:54 +00:00
margin-top: .1rem;
2022-09-02 03:23:25 +00:00
}
2022-09-02 08:10:54 +00:00
2022-09-12 05:52:42 +00:00
.business-tips{
text-align: center;
margin-top: 20px;
}
2022-09-02 15:59:41 +00:00
.navigation-btn {
2022-09-02 08:10:54 +00:00
justify-content: center;
align-items: center;
width: 1.9rem;
height: .5rem;
}
2022-09-03 10:14:57 +00:00
/* 商家详情 */
.detail-info{
justify-content: space-between;
align-items: center;
padding: .3rem .5rem;
border-top: .16rem solid #ffd6ac;
border-bottom: .16rem solid #ffd6ac;
}
.detail-info>.cover{
width: 1.3rem;
height: 1.3rem;
overflow: hidden;
}
.detail-info>.cover img{
width: 100%;
min-height: 1.3rem;
}
.detail-info>.txt{
width: calc(100% - 1.65rem);
}
.detail-info>.txt p{
margin-top: .15rem;
}
/* 标题 */
.detail-title{
padding: .2rem .4rem;
margin-top: .2rem;
}
/* 介绍 */
.detail{
padding: 0 .4rem;
}
.detail img{
max-width: 100%;
margin: .1rem auto;
}
/* 地址 */
.address{
padding: 0 .4rem;
}
.addr-map{
width: 100%;
height: 4rem;
}
.addr-txt{
margin: .3rem 0;
}
.addr-txt .item{
justify-content: space-between;
align-items: center;
width: 100%;
height: .64rem;
}
.addr-txt .item p{
width: calc(100% - 0.48rem);
}
.addr-txt .item span{
justify-content: center;
align-items: center;
width: .38rem;
height: .38rem;
}
2022-09-02 08:10:54 +00:00
/* 我的 */
2022-09-02 15:59:41 +00:00
.my-info-bg {
2022-09-02 08:10:54 +00:00
align-items: center;
width: 100%;
height: 3.85rem;
background-image: url(../images/my-bg.jpg);
background-size: 100%;
}
2022-09-02 15:59:41 +00:00
.my-info {
2022-09-02 03:23:25 +00:00
width: 100%;
text-align: center;
2022-09-02 08:10:54 +00:00
}
2022-09-02 15:59:41 +00:00
.my-info .cover {
2022-09-02 08:10:54 +00:00
justify-content: center;
align-items: center;
width: 1.9rem;
height: 1.9rem;
margin: 0 auto;
2022-09-02 15:59:41 +00:00
overflow: hidden;
2022-09-02 08:10:54 +00:00
}
2022-09-02 15:59:41 +00:00
.my-info .cover img {
2022-09-02 08:10:54 +00:00
max-width: 100%;
2022-09-02 15:59:41 +00:00
max-height: 100%;
2022-09-02 08:10:54 +00:00
}
2022-09-02 15:59:41 +00:00
.my-info .nick-name {
2022-09-02 08:10:54 +00:00
margin: .12rem 0;
2022-09-02 03:23:25 +00:00
}
2022-09-02 08:10:54 +00:00
/* 内容 */
2022-09-02 15:59:41 +00:00
.my-content {
2022-09-02 08:10:54 +00:00
padding: 0 .5rem .3rem;
margin-top: .12rem;
2022-09-02 03:23:25 +00:00
}
2022-09-02 15:59:41 +00:00
.my-content .item {
2022-09-02 08:10:54 +00:00
justify-content: space-between;
align-items: center;
width: 100%;
height: .92rem;
border-bottom: .02rem solid #d6d6d6;
2022-09-02 03:23:25 +00:00
}
2022-09-02 15:59:41 +00:00
.my-content .item>span {
2022-09-02 08:10:54 +00:00
justify-content: center;
width: .6rem;
}
2022-09-02 15:59:41 +00:00
.my-content .item>p {
2022-09-02 08:10:54 +00:00
width: calc(100% - .74rem);
}
2022-09-02 15:59:41 +00:00
.my-content .item>img {
2022-09-02 08:10:54 +00:00
width: .14rem;
}
/* 绑定手机号 */
2022-09-02 15:59:41 +00:00
.bind-content {
2022-09-02 08:10:54 +00:00
padding: 0 .4rem;
}
2022-09-02 15:59:41 +00:00
.bind-phone-title {
2022-09-02 08:10:54 +00:00
margin: .7rem 0;
text-align: center;
}
2022-09-02 15:59:41 +00:00
.phone-input {
2022-09-02 08:10:54 +00:00
width: 100%;
height: .76rem;
border-bottom: .02rem solid #d6d6d6;
}
2022-09-02 15:59:41 +00:00
2022-09-02 08:10:54 +00:00
.phone-input::-webkit-input-placeholder {
color: #000000;
}
2022-09-02 15:59:41 +00:00
.bind-btn {
2022-09-02 08:10:54 +00:00
justify-content: center;
align-items: center;
width: 5.6rem;
height: .96rem;
margin: .7rem auto 0;
2022-09-02 15:59:41 +00:00
}
/* 待使用/已核销卡券 */
.card-list {
padding: 0 .2rem .3rem;
margin-top: .15rem;
}
.card-list .item {
justify-content: space-between;
align-items: center;
width: 100%;
padding: .3rem .35rem .3rem .25rem;
margin-top: .35rem;
box-shadow: 0 0 .16rem rgba(243, 91, 0, .17);
}
.card-list .item>.info {
width: calc(100% - 1.12rem);
}
2022-09-03 10:14:57 +00:00
.card-list-business .item{
padding: .3rem .25rem;
}
.card-list-business .item>.info {
width: 100%;
}
.card-list-business .item>.info .txt{
min-width: 3.78rem;
}
.card-list-business .item>.info .copy{
justify-content: space-between;
}
.card-list-business .item .copy-btn>em{
display: block;
width: 0;
height: 0;
overflow: hidden;
position: fixed;
top: -5rem;
right: -5rem;
}
/* 复制成功提示 */
.copy-tips{
display: none;
padding: .15rem .3rem;
position: fixed;
left: 50%;
top: 50%;
z-index: 999;
transform: translate(-50%,-50%);
}
.copy-tips.show{
display: block;
}
2022-09-02 15:59:41 +00:00
.card-list .item>.info .price {
margin-right: .3rem;
2022-09-13 07:43:39 +00:00
letter-spacing: -0.1rem;
2022-09-02 15:59:41 +00:00
}
.card-list .item>.info .price span {
display: inline-block;
width: .4rem;
height: .4rem;
2022-09-13 07:43:39 +00:00
margin-left: .04rem;
2022-09-02 15:59:41 +00:00
text-align: center;
line-height: .4rem;
2022-09-13 07:43:39 +00:00
letter-spacing: 0;
2022-09-02 15:59:41 +00:00
}
.card-list .item>.info .txt>span {
display: block;
}
.card-list .item>.info .txt>p {
margin-top: .1rem;
}
.card-list .item>.info .used-txt>span {
line-height: 1.2;
}
.card-list .item>.info .used-txt>p {
margin-top: .03rem;
}
.card-list .item>.line {
width: .02rem;
height: 1.64rem;
margin-right: .3rem;
background-color: #dedede;
}
.card-btn {
justify-content: center;
align-items: center;
width: .8rem;
height: 1.64rem;
padding: 0 .25rem;
text-align: center;
}
/* 核销 */
.pull-bg {
display: none;
width: 7.5rem;
height: 100%;
background-color: rgba(0, 0, 0, .3);
position: fixed;
left: 50%;
top: 0;
z-index: 666;
transform: translateX(-50%);
}
.pull-bg.show{
display: block;
}
.card-window {
display: none;
width: 6.5rem;
padding: .48rem .48rem .6rem;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 999;
}
.card-window.show{
display: block;
}
.window-title {
text-align: center;
}
.card-code {
width: 2.8rem;
margin: .48rem auto;
}
.card-code>img {
width: 100%;
}
.code-btn{
justify-content: center;
align-items: center;
height: .98rem;
}
2022-09-03 10:14:57 +00:00
/* 扫码 */
#qr-canvas{
width: 6rem;
height: 6rem;
position: fixed;
left: 50%;
top: 50%;
z-index: 9;
transform: translate(-50%,-50%);
2022-09-12 05:52:42 +00:00
}
/* 导航弹窗 */
.navigation-box{
width: 7.5rem;
height: 0;
border-radius: .3rem .3rem 0 0;
box-shadow: 0 0 .5rem rgba(0, 0, 0, .3);
position: fixed;
left: 50%;
bottom: 0;
z-index: 9999;
transform: translateX(-50%);
overflow: hidden;
}
.navigation-box.show{
2022-09-13 00:44:56 +00:00
height: auto;
2022-09-12 05:52:42 +00:00
}
.navigation-box .item{
line-height: 1rem;
text-align: center;
border-bottom: .02rem solid #e1e1e1;
}
.navigation-box .item:last-child{
border: 0;
2022-09-03 10:14:57 +00:00
}