领取优惠券前端功能实现部分源码

这段HTML代码展示了前端领取优惠券功能的实现,包括输入手机号、获取验证码、提交表单等交互元素的样式和布局,以及相关JavaScript事件处理。页面背景、按钮样式和提示信息都有详细的CSS定义。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
        <meta content="telephone=no" name="format-detection" />
        <title></title>
        <meta id="description" name="description" content="免费领取10元全场通用优惠券" />
    <link rel="stylesheet" type="text/css" href="../../css/common2.css" />
    <link rel="stylesheet" href="../../css/layer.css" />

    <style>
        html{
        height: 100%;
        }
        body{
        width: 100vw;
        height: 100%;
        background: #f6f9ff url(../../img/activity/winter_bg.png) no-repeat center;
        background-size: 100%;
        }
    .content {
        width: 100%;
        height: 100%;
        position: relative;
        z-index: 1;
      }
    .titBox{
        width: 82%;
        height: 4.5rem;
        margin: 0 auto;
        background: url(../../img/activity/winter_tit.png) no-repeat center;
        background-size: contain;
    }
    .concentBox{
        width: 90%;
        height: 1.5rem;
        font-size: 0.45rem;
        text-align: center;
        color: rgb( 41, 57, 80 );
        margin: 0 auto;
    }
    .concentBox .page_t{
        width: 90%;
        display: inline-block;
    }
        
    .concentBox p{
        font-size: 0.3rem;
 color: rgb( 76, 89, 122 );
 font-family: "PingFangSC";
}
    .winterForm{
        width: 80%;
        height: 1.5rem;
        margin: 0 auto;
    }
    input{
        border: none;
    }
    .winterForm .winterTel{
        width: 100%;
        height: 0.7rem;
        float: left;
        border-radius: 6px;
        text-indent: 20px;
        font-size: 0.28rem;
        background: url(../../img/activity/input_bg.png) repeat;
    }
    .identyfyVal{
        width: 57%;
        height: 0.7rem;
        float: left;
        border-radius: 6px;
        text-indent: 20px;
        font-size: 0.28rem;
        margin-top: 0.2rem;
        background: url(../../img/activity/input_bg.png) repeat;
    }
    .code1{
        width: 40%;
        height: 0.7rem;
        line-height: 0.7rem;
        float: right;
        text-align: center;
        border-radius: 6px;
        font-size: 0.3rem;
        margin-top: 0.2rem;
        background: url(../../img/activity/yzmbtn.png) repeat;
        color: rgb( 255, 255, 255 );
    }
    .demand{
        width: 40%;
        height: 0.9rem;line-height: 0.9rem;text-align: center;font-size: 0.35rem;
        color: #000000;
        margin: 30px auto;border-radius: 0.45rem;display: none;
        background: -webkit-gradient(linear,0% 0%, 59% 0%, from(#F9DB74), to(#F8AA1B));
    }
    .getCouponIcon{
        width: 40%;
        height: 0.9rem;line-height: 0.9rem;text-align: center;font-size: 0.35rem;
        color: #000000;
        margin: 30px auto;border-radius: 0.45rem;
        background: -webkit-gradient(linear,0% 0%, 59% 0%, from(#F9DB74), to(#F8AA1B));
        
    }
    .winterTx{
    width: 100%;
    padding-bottom: 1.5rem;
    }
    .error{
    width: 100%;
    height: 0.5rem;
    margin-top: 0.2rem;
    float: left;
    font-size: 0.3rem;
    color: red;
    padding-left: 0.1rem;
    display: none;
    }
    /*领取成功*/
   .receiveSuccess{
       width: 70%;
    height: 2rem;
    margin: 0 auto;
    border-radius: 6px;padding: 0.1rem;
    background: url(../../img/activity/input_bg.png) repeat;
   }
   .receiveSuccess .receiveCode{
       text-align: center;
       font-size: 0.4rem;
       color: #F8AA1B;
       width: 2.5rem;
       display: block;
       margin: 0.1rem auto;font-weight: 600;
   }
   .receiveSuccess p{
       text-align: center;
       font-size: 0.3rem;
       color: #000000;
   }
   .downloadBox{
       width: 40%;
    height: 0.9rem;line-height: 0.9rem;text-align: center;font-size: 0.35rem;
    color: #000000;
    margin: 20px auto;border-radius: 0.45rem;
    background: -webkit-gradient(linear,0% 0%, 59% 0%, from(#F9DB74), to(#F8AA1B));
   }
   .downLoad {
    position: fixed;
    width: 6.86rem;
    padding: 0 0.32rem;
    height: 60px;
    left: 50%;
    margin-left: -3.75rem;
    bottom: 0;
    background: #fff;
    z-index: 999;
    overflow: hidden;
    border-bottom: 1px solid rgb(231,231,231);
}
.downLoad img {
    float: left;
    width: 139px;
    height: 44px;
    margin-top: 8px;
}
.downLoad .toDownload {
    float: right;
    width: 86px;
    height: 32px;
    line-height: 32px;
    margin-top: 14px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    background: rgb(15,15,15);
}
    </style>
    </head>
    <body>
        <div class="content">
            <div class="titBox"></div>
            <div class="concentBox">
                 <img class="page_t" src="../../img/activity/yh.png"/>
                 <p>活动时间:2018.11.15-2018.12.15</p>
            </div>
       &n

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值