足球活动demo

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>足球投票</title>

    <!-- 定义App端H5 -->
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <style type="text/css">
        * {
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            /* list-style: none; */
            text-decoration: none;
            padding: 0;
            margin: 0;
        }

        ::-webkit-input-placeholder {
            color: #F2F2F2;
            background-image: url('./index4.jpg');

        }

        .Img1 {
            width: 100%;
        }

        .oDiv2 {
            position: fixed;
            bottom: 50px;
            width: 30%;
            background-color: azure;
            border-radius: 8px;
            right: 30px;
            /* display: none; */
        }

        .Img2 {
            display: inline-block;
            width: 20px;
            height: 20px;
        }

        .sP1 {
            display: inline-block;
            height: 20px;
            margin-left: 5px;
        }

        .oDiv3 {
            /* display: none; */
            width: 90%;
            margin: auto;
            background-color: #003592;
            position: relative;
            /* vertical-align:middle; */
            /* top:50% */
        }

        .sP2 {
            color: #f2F2f2;
            text-align: center;
            padding: 15px 0;
        }

        .Img3 {
            position: absolute;
            right: 5px;
            top: 5px;
        }

        .oDiv4 {
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            justify-content: center;
            align-items: center;
            display: none;
        }

        .Input1 {
            display: block;
            width: 70%;
            height: 40px;
            background-image: url('./index4.jpg');
            margin: auto;
            color: #F2F2F2;
        }

        .obtn1 {
            width: 70px;
            margin: 15px auto;
            text-align: center;
            height: 40px;
            display: block;
            /* padding: 8px 15px; */
            background-color: #F2F2F2;
            color: #104198;
        }
    </style>


</head>

<body>

    <div class="oDiv1">
        <a href="#">
            <img class="Img1" src="./index.jpg">
        </a>
        <div class="oDiv2">
            <img class="Img2" src="./index1.jpg">
            <p class="sP1">点我竞猜</p>
        </div>

        <div class="oDiv4">
            <div class="oDiv3">
                <p class="sP2">今日竞猜</p>
                <img class="Img3" src="./index3.jpg">
                <input class="Input1" type="text" placeholder="你支持的球队?" maxlength="15">
                <button class="obtn1">提交</button>
            </div>
        </div>

    </div>

    <script src="http://lib.sinaapp.com/js/jquery/2.0.2/jquery-2.0.2.min.js"></script>

    <script type="text/javascript">
        $(document).ready(function () {
            $(".oDiv2").click(function () {
                $(".oDiv4").css("display", "flex")
            })
            $(".Img3").click(function () {
                $(".oDiv4").css("display", "none")
            })
            $(".obtn1").click(function () {
                var name = $(".Input1").val();

                $.ajax({
                    url: "http://dev.flm158.com/api/house/Broker/CreateFeedback",
                    type: "post",
                    async: false,
                    data: JSON.stringify(
                        {
                            "Content": name
                        }
                    ),

                    contentType: "json",
                    headers: {
                        "Authorization": "Bearer " + "8qkV5xukUl4UjFilnYkqkBnO2kUz5UmwE6LYyQOeoymnuajJBsG3IP+/0vEimU="
                    },
                    success: function (data) {

                       alert("提交成功!")
                    }
                });


            })
        })
    </script>
</body>

</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值