order.vue 3.47 KB
<template>
    <ul>
        <li class="order-item">
            <div class="order-detail">
                <div class="order-code">
                    <p>订单号:523243435</p>
                    <p>待付款</p>
                </div>
                <div class="order-goods">
                    <div class="goods-info">
                        <div class="img-box">
                            <img src="//img01.static.yohobuy.com/cms/2016/05/30/15/019bb70cdee6e05ee51eb062c009d49796.jpg" alt="">
                        </div>
                        <div class="goods-detail">
                            <p class="name">Supreme Mendini work jacket 2016年新品黑色手枪图案短2016年新品黑色手枪图案短</p>
                            <p class="size">
                                <span>颜色:黑色</span>
                                <span>尺码:XL</span>
                            </p>
                        </div>
                        <div class="goods-price">
                            <p>&yen;6289.00</p>
                            <p>×1</p>
                        </div>
                    </div>
                    <div class="goods-info">
                        <div class="img-box">
                            <img src="//img01.static.yohobuy.com/cms/2016/05/30/15/019bb70cdee6e05ee51eb062c009d49796.jpg" alt="">
                        </div>
                        <div class="goods-detail">
                            <p class="name">Supreme Mendini work jacket 2016年新品黑色手枪图案短2016年新品黑色手枪图案短</p>
                            <p class="size">
                                <span>颜色:黑色</span>
                                <span>尺码:XL</span>
                            </p>
                        </div>
                        <div class="goods-price">
                            <p>&yen;6289.00</p>
                            <p>×1</p>
                        </div>
                    </div>
                </div>
                <div class="order-option">
                    <div class="goods-total">合计: <b>&yen;15677.00</b></div>
                    <div class="options">
                        <button>取消订单</button>
                        <button class="countdown">去支付 11:58:12</button>
                    </div>
                </div>
            </div>
        </li>
    </ul>
</template>

<script>
    const $ = require('yoho-jquery');

    module.exports = {
        data() {
            return {
                page: 0,
                limit: 10,
                type: document.getElementById('')
            };
        },
        ready(){
            this.getOrderData();
        },
        methods:{
            getOrderData(){

                $.ajax({
                    url: '/home/favorite/favpaging',
                    data: {
                        page : ++ this.page,
                        limit : this.page,
                        type: this.type
                    }
                }).then(result => {
                    if(result){

                    } else {

                    }
                }).fail(() => {
                        tip('网络错误');
                });
            },
            cancelOrder(id){

            },
            deleteOrder(id){

            },
            rebuy(id){

            },
            confirmGoods(){

            },
            goBuy(){

            }
        }
    };

</script>

<style>
html,body{height:100%;}
</style>