comfireorder.html 11.8 KB
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../assets/css/swiper-3.4.2.min.css">
    <link rel="stylesheet" href="../assets/css/weui.min.css">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_724456_vxu0otepgn8.css">
    <script type="text/javascript" src="../assets/js/fontsize.js"></script>
    <link rel="stylesheet" href="../assets/css/style.css">
    <title>订单确认</title>
    <style>
        body {
            background-color: #f7f7f7;
            padding:0 0 1rem 0;
        }

        .iconfont_box {
            display: flex;
            align-items: center;
            justify-content: center;
            margin:0 0.24rem 0 0;
            width: 0.35rem;
            height: 0.35rem;

        }
    </style>
</head>
<body>
<div class="comfire_top">
    <div class="comfire_title">请填写您的基本信息,方便我们与您联系</div>
    <div class="comfire_top_item">
        <div class="top_item_name">
            <span>姓名</span>
            <span class="must">必填</span>
        </div>
        <div class="comfire_top_input">
            <input type="text" placeholder="请输入您的真实姓名" id="name">
        </div>

    </div>
    <div class="comfire_top_item">
        <div class="top_item_name">
            <span>手机号</span>
            <span class="must">必填</span>
        </div>
        <div class="comfire_top_input">
            <input type="text" placeholder="请输入您的手机号或座机号" id="tel">
        </div>

    </div>
    <div class="comfire_top_item">
        <div class="top_item_name">
            <span>联系时间</span>
            <span class="must">必填</span>
        </div>
        <div class="comfire_top_input call_time">

            <!--<input type="datetime-local"  />-->

            <input type="data" placeholder="请选择方便联系您的时间" id="time">
            <!--<span class="iconfont icon-jiantouyou"></span>-->
        </div>
    </div>
    <div class="comfire_top_item item_text">
        <div class="top_item_name">
            <span>留言( 选填 )</span>

        </div>
        <div class="comfire_top_input">
           <textarea class="comfire_txt" maxlength="50" id="feedback_content" placeholder="请填写留言"></textarea>
            <div class="confire_zi"><span id="textLength">0</span>/<span>50</span></div>
        </div>
    </div>
    <div class="com_cell">
        <div class="com_cell_left">
            <div class="com_cell_yuan">
                <div class="mini_yuan"></div>
            </div>
            <div class="jia_server">加急服务</div>
            <div class="shuo_server">加急服务说明</div>
            <div class="iconfont icon-my_icon"></div>
        </div>

        <div class="com_p">¥200</div>
    </div>
</div>

<div class="comfire_top">
    <div class="server_tip_box">
        <div class="server_tip">
            <div>一对一简历服务</div>
            <div>+¥398</div>
        </div>
        <div class="server_tip">
            <div>加急服务</div>
            <div>+¥200</div>
        </div>
    </div>
    <div class="com_total">
        <span>合计:</span>
        <span class="com_p">¥ 599</span>
    </div>
</div>

<div class="comfire_top">
    <div class="comfire_title">请选择支付方式</div>
    <div class="pay_itembox">
        <div class="pay_item">
            <div class="pay_item_left">
                <div class="iconfont_box">
                    <div class="iconfont icon-weixinzhifu"></div>
                </div>
                <div>微信支付</div>
            </div>
            <div class="iconfont icon-icon_select" ></div>
        </div>
        <div class="pay_item">
            <div class="pay_item_left">
                <div class="iconfont_box">
                    <div class="iconfont icon-zhifubao"></div>
                </div>
                <div>支付宝支付</div>
            </div>
            <div class="iconfont icon-icon_select" ></div>
        </div>
        <div class="pay_item">
            <div class="pay_item_left">
                <div class="iconfont_box">
                    <div class="iconfont icon-balance"></div>
                </div>
                <div>账户余额</div>
            </div>
            <div class="iconfont icon-icon_select icon-icon_select_activity" ></div>
        </div>
    </div>
</div>
<div class="if_yes">
    <div class="icon_box icon_box_activity">
        <span class="iconfont icon-icon_check"></span>
    </div>
    <div>我已同意 <a class="blue" href="agree.html">《咨询服务协议》</a></div>
</div>
<div class="pay_bottom">
        <span>实付:</span>
        <span class="com_p">¥ 599</span>
    <span class="pay_btn">确认付款</span>

</div>

<!--加急服务弹框-->
<div class="server_mold">
    <div class="server_all">
        <div class="server_all_content">
            <div class="iconfont icon-close"></div>
            <div class="server_all_title">加急服务说明</div>
            <div class="server_all_main">
                1)悬赏头条仅为网络信息发布平台,任何透过悬赏头条发布的信息及其他产品或者服务均系用户自行发布,悬赏头条不担保其发布内容的真实性、准确性及可靠性。悬赏头条对其合法性概不负责,亦不承担任何法律责任;
                1)悬赏头条仅为网络信息发布平台,任何透过悬赏头条发布的信息及其他产品或者服务均系用户自行发布,悬赏头条不担保其发布内容的真实性、准确性及可靠性。悬赏头条对其合法性概不负责,亦不承担任何法律责任;
                1)悬赏头条仅为网络信息发布平台,任何透过悬赏头条发布的信息及其他产品或者服务均系用户自行发布,悬赏头条不担保其发布内容的真实性、准确性及可靠性。悬赏头条对其合法性概不负责,亦不承担任何法律责任;
                1)悬赏头条仅为网络信息发布平台,任何透过悬赏头条发布的信息及其他产品或者服务均系用户自行发布,悬赏头条不担保其发布内容的真实性、准确性及可靠性。悬赏头条对其合法性概不负责,亦不承担任何法律责任;
                1)悬赏头条仅为网络信息发布平台,任何透过悬赏头条发布的信息及其他产品或者服务均系用户自行发布,悬赏头条不担保其发布内容的真实性、准确性及可靠性。悬赏头条对其合法性概不负责,亦不承担任何法律责任;
            </div>
        </div>
        <div class="server_all_btn">确定</div>
    </div>

</div>
<!--toast-->
<div id="toast" style="display: none;">
    <div class="weui-mask_transparent"></div>
    <div class="weui-toast">

        <p class="weui-toast__content">已完成</p>
    </div>
</div>
<script type="text/javascript" src="../assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="../assets/js/swiper-3.4.2.jquery.min.js"></script>
<script type="text/javascript" src="../assets/js/weui.min.js"></script>
<script type="text/javascript" src="../assets/js/Augly_Verification.js"></script>
<script type="text/javascript" src="../assets/js/common.js"></script>
<script>
    $('.shuo_server').click(function () {
        $('.server_mold').css("display","block")
    })
    $('.icon-close').click(function () {
        $('.server_mold').css("display","none")
    })
    $('.server_all_btn').click(function () {
        $('.server_mold').css("display","none")
    })
    $('.server_mold').click(function () {
        $('.server_mold').css("display","none");
    })
    $('.server_all').click(function (event) {
        event.stopPropagation()
    })
    $('.com_cell_yuan').click(function () {
        if($(this).hasClass('com_cell_yuan_ativity')){
            $(this).removeClass('com_cell_yuan_ativity')
        }else{
            $(this).addClass('com_cell_yuan_ativity')
        }
    })
    $('.icon_box').click(function () {
        if($(this).hasClass('icon_box_activity')){
            $(this).removeClass('icon_box_activity')
        }else{
            $(this).addClass('icon_box_activity')
        }
    })
    $('.icon-icon_select').click(function () {
        $('.icon-icon_select').each(function () {
            $(this).removeClass('icon-icon_select_activity');
        });
        if($(this).hasClass('icon-icon_select_activity')){
            $(this).removeClass('icon-icon_select_activity')
        }else{
            $(this).addClass('icon-icon_select_activity')
        }
    })

    $('.pay_btn').click(function () {

        var name=$('#name').val();
        var tel=$('#tel').val();
        var time=$('#time').val();
        if(name==''){
            toast("姓名不能为空")
        }else if(tel==''){
            toast("电话号码不能为空")
        }else if(!AuglyTest_tel.test(tel)){
            toast("电话号码输入不正确")
        }else if(time==''){
            toast("请选择联系时间")
        }else if (!$('.icon_box').hasClass('icon_box_activity')) {
            toast("请同意服务条款!")
        }else{

            alert("验证通过")
        }
    })
    $('.comfire_top_input textarea').bind("input propertychange", function () {
        var l = $('#feedback_content').val().length;
        if (l < 200) {
            $('#textLength').text(l)
        } else {
            return false
        }
    });
    $('.call_time').click(function (event) {
        var call_time="";
        var call_time_val='';
        var _this = this;
        weui.datePicker({
            start: new Date(),
            end: 2030,
            defaultValue: [new Date().getFullYear(), new Date().getMonth()+1, new Date().getDate()],
            onConfirm: function(result){
               for(var i=0;i<result.length;i++){
                   call_time +=result[i].label;
                   call_time_val +=result[i].value;
               }
                console.log(result)
                console.log(call_time);
                console.log(call_time_val);
                // 二级调用:时间
                $('.ma_expect_date_picker .weui-picker').on('animationend webkitAnimationEnd', function() {
                    show_expect_time_picker(_this, result);
                });
            },
            id: 'ma_expect_date',
            className: 'ma_expect_date_picker'
        });
    });
    // -----------------------二级调用:时间
    var hours = [],
        minites = [],
        symbol = [{ label: ':', value: 0 }];
    function show_expect_time_picker(_this, date) {
        var date = date[0].label + date[1].label + date[2].label;
        if (!hours.length) {
            for (var i = 0; i< 24; i++) {
                var hours_item = {};
                hours_item.label = ('' + i).length === 1 ? '0' + i : '' + i;
                hours_item.value = i;
                hours.push(hours_item);
            }
        }
        if (!minites.length) {
            for (var j= 0; j < 60; j++) {
                var minites_item = {};
                minites_item.label = ('' + j).length === 1 ? '0' + j : '' + j;
                minites_item.value = j;
                minites.push(minites_item);
            }
        }

        weui.picker(hours, symbol, minites, {
            defaultValue: [new Date().getHours()+1, 0, 0],
            onConfirm: function(result) {
                var time = result[0].label + ':' + result[2].label;
                var expect_date = date + ' ' + time;
                // console.log(expect_date)
                // $(_this).find('.weui-cell__ft').text(expect_date);
                $('#time').val(expect_date)
            },
            id: 'ma_expect_time'
        });
    }

</script>
</body>

</html>