<!--
 * @Author: euzhi
 * @Description: 我的挪车记录
-->
<template>
<view class="appCotent">
<div class="myRecord">
    <div class="record__item" v-for="(vo,inx) in items" :key="inx">
        <div class="item__top">
            <div class="top__time">
                时间:{{vo.time}}
            </div>
            <div class="top__state" :class="vo.state==='微信'?'':'phone__state'">
                {{vo.state}}
            </div>
        </div>
        <div class="item__content">
            <div>
                车牌号:{{vo.carNumber}}
            </div>
            <div>
                通知类型:{{vo.type}}
            </div>
            <div>
                挪车申请人:{{vo.name}}
            </div>
        </div>
        <div class="item__btn" @click="goDetail">
            <div>
                查看详情
            </div>
        </div>
    </div>
</div>
</view>
</template>

<script>
export default {
    data() {
        return {
            items: [{
                    time: '2020-02-22 12:00:45',
                    state: '微信',
                    carNum: '京A123456',
                    type: '请求他人挪车',
                    apply: '123****6633',
                },
                {
                    date: '2020-02-22 12:00:45',
                    state: '电话',
                    carNum: '京A123456',
                    type: '请求他人挪车',
                    apply: '123****6633',
                }
            ]
        };
    },
    methods: {
    goDetail(){
               uni.navigateTo({
                url: '/pagesB/pages/move-car/recordDetail'
            }) 
        }
    },
}
</script>

<style lang="scss" scoped>
.myRecord {
    padding: 40rpx 0rpx;

    .record__item {
        background: #FFFFFF;
        box-shadow: 0rpx 0rpx 28rpx 1rpx rgba(232, 232, 232, 0.2);
        border-radius: 20rpx;
        padding: 30rpx 0;
        margin-bottom: 30rpx;

        .item__top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 40rpx;
            border-bottom: 1rpx solid rgba(0, 0, 0, .1);
            padding-bottom: 30rpx;
            margin-bottom: 30rpx;

            .top__state {
                background: #cfffe2;
                width: 70rpx;
                height: 34rpx;
                font-size: 26rpx;
                font-family: PingFang SC;
                font-weight: 500;
                color: #00AD42;
                line-height: 34rpx;
                text-align: center;
                border-radius: 4rpx;
            }

            .phone__state {
                background: #ffebd8;
                color: rgba(248, 141, 40, 1);
            }

            .top__item {
                font-size: 26rpx;
                font-family: PingFang SC;
                font-weight: 500;
                color: #666666;
            }
        }

        .item__content {
            padding: 0 40rpx;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            justify-content: space-between;

            >div {
                width: 50%;
                margin-bottom: 30rpx;

                font-size: 30rpx;
                font-family: PingFang SC;
                font-weight: 500;
                color: #333333;
            }

            >div:nth-of-type(3) {
                width: 100%;
            }
        }

        .item__btn {
            display: flex;
            justify-content: flex-end;
            padding-right: 40rpx;
 font-size: 30rpx;
                font-family: PingFang SC;
                font-weight: 500;
                color: #999999;
            >div {
                width: 180rpx;
                height: 56rpx;
                text-align: center;
                line-height: 56rpx;
                border-radius: 28rpx;
                border: 1rpx solid #DDDDDD;
                font-size: 30rpx;
                font-family: PingFang SC;
                font-weight: 500;
                color: #999999;
            }
        }
    }
}
</style>
