<template>
    <div>
        <van-nav-bar
                title="progress"
                left-arrow
                @click-left="back"
        />
        <div class="page">
            <ul>
                <li class="section">
                    <y-progress :percent="25"></y-progress>
                </li>
                <li class="section">
                    <y-progress :percent="50" dis-begin-swf></y-progress>
                </li>
            </ul>
        </div>
    </div>
</template>

<script>
    import {NavBar} from 'vant';
    import yProgress from '../components/yProgress'

    export default {
        components: {
            [NavBar.name]: NavBar,
            yProgress,
        },
        data:()=>{
            return {
                index:0,
                tipsShow:false
            }
        },
        methods:{
            fnClick(type){
                //yToast.success("success");
                //yToast.error("error");
                yToast.loading();
                switch (type) {
                    case 1:
                        yToast.loading("SDfsadf");
                        break;
                    case 2:
                        yToast.success();
                        break;
                    case 3:
                        yToast.error();
                        break;
                }
                setTimeout(yToast.clear,100000);
            },
            back:()=>{
                window.history.go(-1);
            }
        },
    }
</script>

<style lang="scss">
    @import "../css/base.scss";
    .page {
        padding: 10px;
    }
    .topbar_test{
        &:after{
            content:"\e602";
            font-family: "yesaway_ui";
        }
    }
</style>
