weui布局模仿手机端移动端微信支付h5页面代码

代码语言:html

所属分类:布局界面

代码描述:weui布局模仿手机端移动端微信支付h5页面代码

代码标签: 手机 移动 端微 支付 h5 页面

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

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
    <title>微信支付页面</title>
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/weui.min.css">
    <style>
        body {
            background-color: #f7f7f7;
        }
        body {
            padding-bottom: constant(safe-area-inset-bottom);
            padding-bottom: env(safe-area-inset-bottom);
        }
        .dwo-mt10 {
            margin-top: 10px;
        }
        .dowebok {
            padding: 8px;
        }
        .grids {
            border-radius: 10px;
            background-color: #fff;
            overflow: hidden;
        }
        .has-more {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }
        .has-more.show-more .weui-grid-more {
            display: block;
        }

        .weui-grids {
            margin-bottom: -1px;
        }
        .weui-grids:before {
            border-top: 0;
        }
        .weui-grids:after {
            border-left: 0;
        }
        .weui-grid:nth-child(3n):before {
            border-right: 0;
        }
        .weui-grid-more {
            display: none;
        }
        .grids-more {
            position: relative;
            height: 50px;
            line-height: 50px;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
            text-align: center;
            font-size: 14px;
            color: #5b6a91;
            background-color: #fff;
        }
        .grids-more:before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            top: -1px;
            height: 1px;
            border-top: 1px solid #d9d9d9;
            transform: scaleY(.5);
            transform-origin: 0 100%;
        }
        .grids-more span {
            display: inline-block;
            vertical-align: middle;
        }
        .grids-more span:after {
            content: "";
            display: inline-block;
            width: 16px;
            height: 16px;
            margin-left: 5px;
            background: url(//repo.bfw.wiki/bfwrepo/images/zhifu/arrow.png) no-repeat 0 / 16px 16px;
            vertical-align: text-top;
        }
        .grids-more .show:after {
            transform: rotate(180deg);
        }

        .grids-title {
            box-sizing: border-box;
            position: relative;
            height: 50px;
            padding: 0 15px;
            line-height: 50px;
        }
        .grids-title:after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 1px;
            border-top: 1px solid #d9d9d9;
            transform: scaleY(.5);
            transform-origin: 0 100%;
        }
        .grids-title h2 {
            font-size: 16px;
            font-weight: 400;
            color: #706f75;
        }

        .pay {
            display: flex;
            justify-content: space-between;
            height: 150px;
            border-radius: 10px;
            background-color: #3db271;
            overflow: hidden;
        }
        .pay-qrcode, .pay-wallet {
            flex: 1;
            padding-top: 30px;
            text-align: center;
            color: #fefefe;
        }
        .pay-qrcode p, .pay-wallet p {
            height: 50px;
            margin-top: 10px;
        }
        .pay-qrcode i {
            display: inline-block;
            width: 32px;
            height: 32px;
            background: url(//repo.bfw.wiki/bfwrepo/images/zhifu/qrcode.png) 50%  no-repeat;
            background-size: contain;
        }
        .pay-wallet i {
            display: inline-block;
            width: 32px;
            height: 32px;
            background: url(//repo.bfw.wiki/bfwrepo/images/zhifu/wallet.png) 50% no-repeat;
            background-size: contain;
        }
        .pay-wallet span {
            display: block;
            opacity: .5;
        }
    </style>
</head>
<body>
    <div class="wrap dowebok">
        <div class="pay dwo-pay">
            <a href="javascript:" class="pay-qrcode">
                <i></i>
                <p>
                    收付款
                </p>
            </a>
            <a href="javascript:" class="pay-wallet">
                <i></i>
                <p>
                    钱包 <span>¥125.36</span>
                </p>
            </a>
        </div>
        <div class="grids has-more dwo-mt10">
            <div class="grids-title dwo-title">
                <h2>腾讯服务</h2>
            </div>
            <div class="weui-grids">
                <a href="javascript:;" class="weui-grid">
                    <div class="weui-grid__icon">
                        <img src="//repo.bfw.wiki/bfwrepo/images/zhifu/icon1.png" alt="">
                    </div>
                    <p class="weui-grid__label">
                        信用卡还款
                    </p>
                </a>
                <a href="javascript:;" class="weui-grid">
                    <div class="weui-grid__icon">
                        <img src="//repo.bfw.wiki/bfwrepo/images/zhifu/icon2.png" alt="">
                    </div>
                    <p class="weui-grid__label">
                        微粒贷借钱
                    </p>
                </a>
                <a href="javascript:;" class="weui-grid">
                    <div class="weui-grid__icon">
                        <img src="//repo.bfw.wiki/bfwrepo/images/zhifu/icon3.png" alt="">
                    </div>
                    <p class="weui-grid__label">
                        手机充值
                    </p>
                </a>
                <a href="javascript:;" class="weui-grid">
                    <div class="weui-grid__icon">
                        <img src="//repo.bfw.wiki/bfwrepo/images/zhifu/icon4.png" alt="">
                    </div>
                    <p class="weui-grid__label">
                        理财通
                    </p>
                </a>
                <a href="javascript:;" class="weui-grid">
                    <div class="weui-grid__icon">
                        <img src="//repo.bfw.wiki/bfwrepo/images/zhifu/icon5.png" alt="">
                    </div>
                    <p class="weui-grid__label">
                        生活缴费
                    </p>
                </a>
                <a href="javascript:;" class="weui-grid">
                    <div class="weui-grid__icon">
                        <img src="//repo.bfw.wiki/bfwrepo/images/zhifu/icon6.png" alt="">
                    </div>
                    <p class="weui-grid__label">
                        Q币充值
                    </p>
                </a>
                <a href="javascript:;" class="weui-grid">
                    <div class="weui-grid__icon">
                        <img src="//repo.bfw.wiki/bfwrepo/images/zhifu/ico.........完整代码请登录后点击上方下载按钮下载查看

网友评论0