weui样式的六六哥赞赏程序 当面付版本

[复制链接]

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×

[i=s] 本帖最后由 梦淡如非 于 2024-10-8 10:51 编辑 [/i]<br /> <br />

演示地址 https://shop.naigou.cn

用 66 哥的程序改的样式原帖子 https://www.3bbs.cn/thread-173-1-1.html

把下面的代码直接替换原程序的 index.php 文件即可。

<?php 
include_once 'config.php';
include_once 'pay/lib/data.php';
include_once 'query/paylog.php';
include_once 'site_config.php';
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo $site_config['title'] ?></title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://res.wx.qq.com/t/wx_fed/weui-source/res/2.6.16/weui.css">
    <link rel="stylesheet" href="https://res.wx.qq.com/t/wx_fed/weui-source/res/2.6.16/weui.min.css">
    <style>
        /* 在大屏幕上应用 */
        @media (min-width: 768px) {
            .weui-form {
                max-width: 600px;
                margin: auto;
                padding: 20px;
            }
        }

        .weui-btn_disabled {
            pointer-events: none;
            opacity: 0.5;
        }
    </style>
</head>

<body>
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-3"></div>
            <div class="col-md-6">
                <div class="weui-form">
                    <div class="weui-form__bd">
                        <!-- 头像&公告开始 -->
                        <div class="weui-form__text-area">
                            <img src="https://ttimg.cn/logo.png" class="rounded-circle" width="88" height="88">
                            <h2 class="weui-form__title"><?php echo $site_config['name'] ?></h2>
                            <div class="weui-form__desc"><?php echo $site_config['qqinfo'] ?></div>
                        </div>
                        <!-- 金额输入框 -->
                        <div class="weui-cells__group weui-cells__group_form">
                            <div class="weui-cells__title">赞赏一下</div>
                            <div class="weui-cells">
                                <form action="/pay/query.php?action=pay" method="post">
                                    <div class="weui-cell weui-cell_active">
                                        <div class="weui-cell__hd"><span class="weui-label">金额</span></div>
                                        <div class="weui-cell__bd">
                                            <input type="number" class="weui-input" name="money" placeholder="大爷,赞赏多少您说了算。" required>
                                        </div>
                                    </div>
                                    <div class="weui-cell weui-cell_active">
                                        <div class="weui-cell__hd"><span class="weui-label">留言</span></div>
                                        <div class="weui-cell__bd">
                                            <input type="text" class="weui-input" name="des" placeholder="有啥想说的吗?" required>
                                        </div>
                                    </div>
                                    <div class="weui-cell weui-cell_active">
                                        <div class="weui-cell__bd">
                                            <input type="submit" class="weui-btn weui-btn_primary g-recaptcha" value="确定" />
                                        </div>
                                    </div>
                                    <div class="weui-form__control-area">
                                        <div class="weui-panel__hd">赞助记录 <span style="font-size: 0.8em;"> 总赞助:<?php echo $paynums['nums']; ?>元</span></div>
                                        <?php foreach($arr as $key => $c) {
                                        $isMatched = preg_match('/^\d{2}|[A-Za-z0-9]{2}/', $c['ip_url'], $matches);
                                        $c['ip_url'] = $matches[0]."💰💰💰";
                                    ?>
                                    <li>
                                        <p><?php echo $c['pay_date'] ?></p>
                                        <p>网友<?php echo $c['ip_url'] ?>送了我:<?php echo $c['goods'] ?> <span>¥<?php echo $c['money'] ?></span></p>
                                    </li>
                                    <?php };?>
                                        </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="./style/js/jquery-3.2.1.min.js"></script>
    <script src="./style/js/layer/layer.js"></script>
    <?php
    if($_GET['success']==200){
    ?>
    <script>
        layer.open({
            title: '向大佬表示特别感谢',
            content: '感谢大佬请我吃东西🤩,祝大佬一直暴富啊💵',
            time: 10000,
            yes: function(index, layero) {
                var url = window.location.href;
                var valiable = url.split("?")[0];
                window.history.pushState({}, 0, valiable);
                layer.close(index);
            },
            end: function(index, layero) {
                var url = window.location.href;
                var valiable = url.split("?")[0];
                window.history.pushState({}, 0, valiable);
                layer.close(index);
            }
        });
    </script>
    <?php
    };
    ?>
    <?php
    if($_GET['erro']==400){
    ?>
    <script>
        layer.open({
            title: '请不要乱改东西',
            content: '请不要乱改东西,还有请文明一点OK?',
            time: 10000,
            yes: function(index, layero) {
                var url = window.location.href;
                var valiable = url.split("?")[0];
                window.history.pushState({}, 0, valiable);
                layer.close(index);
            },
            end: function(index, layero) {
                var url = window.location.href;
                var valiable = url.split("?")[0];
                window.history.pushState({}, 0, valiable);
                layer.close(index);
            }
        });
    </script>
    <?php
    };
    ?>
</body>

</html>
全部回复0 显示全部楼层
暂无回复,精彩从你开始!

快速回帖

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关于楼主

超级版主
  • 主题

    592
  • 回答

    194
  • 积分

    1767
虚位以待,此位置招租

商务推广

    网盘拉新-短剧推广 此位置招租 此位置招租 此位置招租 此位置招租 此位置招租 此位置招租 此位置招租 此位置招租 此位置招租