rent_sure.html 10.1 KB
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title>确认租赁</title>
    <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/common/sure_lease.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/weui.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/myweui.css">
    <script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="__TMPL__/public/assets/js/weui.js"></script>
    <script src="__TMPL__/public/assets/js/myweui.js"></script>
    <script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
    <style>
        .shuru {
            width: 2rem;
            outline: none;
        }

        .beizhu_title {
            display: inline-block;
            vertical-align: top;
            margin-top: 0.08rem;
        }

        textarea {
            outline: none;
            margin: 0 auto;
            margin-top: 0.1rem;
            margin-left: 0.1rem;
            margin-right: 0.1rem;
            line-height: 0.35rem;
        }

        .beizhu_content {
            display: inline-block;
            border-radius: 0.1rem;
            border: 0.01rem solid #EBEBEB;
        }
        textarea {
            resize: none;
        }
    </style>
</head>

<body>
<div class="container">
    <div class="address_box">
        <div class="local_box">
            <img class="location_img" src="__TMPL__/public/assets/images/time.png" alt="">
            <span class="date_content start_date">{$time.start_time}</span>
            <span class="date_content end_date">~{$time.end_time}</span>
            <span class="time_end">共{$time.time_num}天</span>
        </div>
        <div class="user_box">
            <img class="head_img" src="__TMPL__/public/assets/images/head_img.png" alt="">
            <p class="user_name">
                <input class="shuru" type="text" maxlength="5" placeholder="请填写姓名">
            </p>
            <p class="user_phone">
                <input class="shuru" type="number" max="11" onkeyup="this.value = this.value.slice(0,11)" placeholder="请填写手机号">
            </p>
        </div>
    </div>
    <div class="con_warp">
        <p class="buy_message"> 购买租赁</p>
        <ul class="con_list_ul">
            <li class="con_list_li">
                <img class="con_list_img" src="__TMPL__/public/assets/images/5653ceba1a219@2x.png" alt="">
                <div class="goods_box">
                    <p class="goods_title">HO56C手动轮椅车</p>
                    <span class="goods_content">体积更小轻松放入汽车后备箱</span>
                    <p class="goods_money">¥2000.00/天</p>
                    <span class="goods_nums">  X1</span>
                </div>
            </li>
        </ul>
        <div class="join">
            <!--<img class="subtract_img" src="__TMPL__/public/assets/images/item_reduce.png  " alt="">-->
            <p>X1 </p>
            <!--<img class="add_img" src="__TMPL__/public/assets/images/item_add.png" alt="">-->
        </div>
        <p class="buy_message"> 租赁数量 </p>
    </div>
    <div class="peisong">
        <p class="take_it"> 选择自提点 <span>A自提点(有货)<img src="__TMPL__/public/assets/images/youjiantou1.png" alt=""></span></p>
        <div class="peisong_box">
            <p> 押金
                <a href="{:url('Rent/free')}">
                <p class="cash_p">
                    <img src="__TMPL__/public/assets/images/about_us.png" alt="">
                    <span class="yajin">申请免押金</span>
                </p>
                </a>
                <span class="moneys">¥8.00</span>
            </p>
        </div>
        <div class="beizhu_box">
            <p class="beizhu_title"> 备注信息: </p>
            <p class="beizhu_content">
                <textarea name="" id="" cols="35" rows="3" placeholder="12312"></textarea>
            </p>
        </div>
    </div>
    <div class="xiaoji_box">
        <p class="xiaoji">共一件商品 &emsp;小计 : ¥2000.00</p>
    </div>
    <div class="zhifu">
        <div class=" pay_method">
            <div class="method_choose">
                <p class="wx_pay pay_item"> 微信支付<span><img class="hand" src="__TMPL__/public/assets/images/hand.png" alt="">推荐使用</span> </p>
                <p class="ali_pay pay_item"> 支付宝支付 </p>
            </div>
            <div class="methood_pic">
                <img class="sure sure_item" src="__TMPL__/public/assets/images/sure.png" alt="">
                <img class="cancel sure_item" src="__TMPL__/public/assets/images/sure_1.png" alt="">
            </div>
        </div>
    </div>
</div>
<footer class="footer">
    <div class="buycar_box">
        <p> 微信支付</p>
        <span class="buycar_box_money">¥2000.00</span>
    </div>
    <p class="footer_buycar">前往支付</p>
</footer>
</div>
<script src="__TMPL__/public/assets/js/picker.min.js"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/common.js" type="text/javascript" charset="utf-8"></script>
<script>
    // $(document).ready(function() {
    //     get_main_content();
    //
    //
    //     //初始化时间
    //     var local_month = new Date().getMonth() + 1,
    //         local_day = new Date().getDate();
    //     next_local_day = new Date().getDate() + 2;
    //     var $menu_box = $('.content_body .con_title>li');
    //     $('.start_date').text(local_month + '月' + local_day + '日');
    //     $('.end_date').text('~' + local_month + '月' + next_local_day + '日');
    //
    // })
    //
    // function get_main_content() {
    //
    // }
    // var first_time, next_time;
    // // 开始时间
    // document.querySelector('.start_date').addEventListener('click', function() {
    //     weui.datePicker({
    //         start: new Date(),
    //         end: '2030-12-29',
    //         /**
    //          * https://zh.wikipedia.org/wiki/Cron
    //          * cron 表达式后三位
    //          * 示例:
    //          *  * * *                每天
    //          *  5 * *                每个月的5日
    //          *  1-10 * *             每个月的前10日
    //          *  1,5,10 * *           每个月的1号、5号、10号
    //          *  *\/2 * *             每个月的 1、3、5、7...日,注意写的时候斜杠“/”前面没有反斜杠“\”,这是因为是注释所以需要转义
    //          *  * 2 0                2月的每个周日
    //          *  * * 0,6              每个周末
    //          *  * * 3                每周三
    //          */
    //
    //         defaultValue: [new Date().getFullYear(), new Date().getMonth() + 1, new Date().getDate()],
    //         onChange: function(result) {
    //             console.log(result);
    //         },
    //         onConfirm: function(result) {
    //             $('.start_date').text(result[1] + '月' + result[2] + '日')
    //             first_time = new Date(result[0] + '-' + result[1] + '-' + result[2]);
    //
    //             console.log(first_time);
    //             setTimeout(get_nextTime(), 1500)
    //         },
    //         id: 'datePicker'
    //     });
    // });
    // //结束时间
    // function get_nextTime() {
    //     document.querySelector('.end_date').addEventListener('click', function() {
    //         weui.datePicker({
    //             start: new Date(),
    //             end: '2030-12-29',
    //             /**
    //              * https://zh.wikipedia.org/wiki/Cron
    //              * cron 表达式后三位
    //              * 示例:
    //              *  * * *                每天
    //              *  5 * *                每个月的5日
    //              *  1-10 * *             每个月的前10日
    //              *  1,5,10 * *           每个月的1号、5号、10号
    //              *  *\/2 * *             每个月的 1、3、5、7...日,注意写的时候斜杠“/”前面没有反斜杠“\”,这是因为是注释所以需要转义
    //              *  * 2 0                2月的每个周日
    //              *  * * 0,6              每个周末
    //              *  * * 3                每周三
    //              */
    //
    //             defaultValue: [new Date().getFullYear(), new Date().getMonth() + 1, new Date().getDate()],
    //             onChange: function(result) {
    //                 console.log(result);
    //             },
    //             onConfirm: function(result) {
    //                 $('.end_date').text('~' + result[1] + '月' + result[2] + '日')
    //                 next_time = new Date(result[0] + '-' + result[1] + '-' + result[2]);
    //                 nYlts = parseInt((Math.abs(next_time - first_time) / 1000 / 60 / 60 / 24) + 1);
    //                 $('.time_end').text('共' + nYlts + '天')
    //                 console.log(nYlts);
    //             },
    //             id: 'datePicker'
    //         });
    //     });
    // }

    // 支付选择
    // 微信
    $('.sure').click(function () {
        $('.sure').attr('src','__TMPL__/public/assets/images/sure.png');
        $('.cancel').attr('src','__TMPL__/public/assets/images/sure_1.png');
    })
    // 支付宝
    $('.cancel').click(function () {
        $('.cancel').attr('src','__TMPL__/public/assets/images/sure.png');
        $('.sure').attr('src','__TMPL__/public/assets/images/sure_1.png');
    })
    //前往支付
    $('.footer_buycar').on('click', function() {
        window.location.href = "take_it.html"
    })
    //申请免押金
    $('.cash_p').on('click', function() {
        window.location.href = "deposit_free.html"
    })
    //选择自提点
    $('.take_it').on('click', function() {
        window.location.href = "take_it.html"
    })
</script>
</body>

</html>