getBro_f.html 3.5 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">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title></title>
    <script src="../../assets/js/fontsize.js"></script>
    <!--<link rel="stylesheet" href="../../assets/css/weui.min.css">-->
    <link rel="stylesheet" href="../../assets/css/api.css"/>
    <link rel="stylesheet" href="../../assets/css/style.css">
    <link rel="stylesheet" href="../../assets/icon/iconfont.css">
    <style>

        html {
            font-family: sans-serif;
        }

        html, body, header, section, footer, div, ul, ol, li, img, a, span, em, del, legend, center, strong, var, fieldset, form, label, dl, dt, dd, cite, input, hr, time, mark, code, figcaption, figure, textarea, h1, h2, h3, h4, h5, h6, p {
            margin: 0;
            border: 0;
            padding: 0;
            font-style: normal;
            /*touch-action: none;*/
            touch-action: manipulation
        }

        html, body {
            -webkit-touch-callout: none;
            -webkit-text-size-adjust: none;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            -webkit-user-select: none;
            background: none;
            height: 100%;
        }

        .v-modal {
            background: none;
        }

        .meal {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 100;
            background: none;
        }

        .mint-datetime-action {
            color: #fff;
            background-color: #dbb25f;
        }

        .mint-datetime-cancel {
            background-color: #fff;
            color: #424242;
        }

        .picker-slot {
            font-size: 12px;
        }
    </style>
</head>
<body>
<div id="app" v-cloak>
    <div @click="close" class="meal">
        <mt-datetime-picker
                ref="picker"
                :endDate="endDate"
                :startDate="startDate"
                type="date"
                v-model="pickerValue"
                year-format="{value}年"
                month-format="{value}月"
                date-format="{value}日"
                @confirm="choose_bro"
        >
        </mt-datetime-picker>
    </div>
</div>
</body>
</html>
<script type="text/javascript" src="../../assets/js/api.js"></script>
<script type="text/javascript" src="../../assets/js/weui.min.js"></script>
<script type="text/javascript" src="../../assets/js/public.js"></script>
<script type="text/javascript" src="../../assets/js/fastclick.js"></script>
<script>
    new FastClick(document.body);
</script>
<script type="text/javascript" src="../../assets/js/vue.min.js"></script>
<script>
    var app = new Vue({
        el: '#app',
        data: {
            pickerValue: '',
            endDate: new Date(),
            startDate: new Date()
        },
        created: function () {
            apiready = function () {
                app.$refs.picker.open();
            }
        },
        methods: {
            close: function () {
                api.closeWin();
            },
            choose_bro: function () {
                console.log(app.pickerValue)
            },
        }
    })
</script>