<template>
    <view class="container">
        <!-- 导航栏 -->
        <view class="nav-bar">
            <view class="nav-left" @click="navBack">
                <image class="back-icon" src="/static/icons/chevron_right_dark.svg" style="transform: rotate(180deg);"></image>
            </view>
            <text class="nav-title">订单消息</text>
            <view class="nav-right"></view>
        </view>
        <view class="nav-placeholder"></view>

        <view class="msg-group">
            <view class="date-label">2099-12-28</view>
            
            <!-- 消息卡片 1 -->
            <view class="msg-card">
                <view class="card-header">
                    <text class="card-title">站长手动派单</text>
                    <view class="red-dot"></view>
                </view>
                <view class="card-body">
                    <text class="msg-text">你收到一个新订单，请及时查看并接单。</text>
                </view>
                <view class="card-footer">
                    <text class="order-id">订单: 2099091503521</text>
                    <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
                </view>
            </view>

            <!-- 消息卡片 2 -->
            <view class="msg-card">
                <view class="card-header">
                    <text class="card-title">系统自动派单</text>
                </view>
                <view class="card-body">
                    <text class="msg-text">你收到一个新订单，请及时查看并接单。</text>
                </view>
                <view class="card-footer">
                    <text class="order-id">订单: 2099091503523</text>
                    <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
                </view>
            </view>
        </view>

        <view class="msg-group">
            <view class="date-label">2099-12-27</view>
            
            <!-- 消息卡片 3 -->
            <view class="msg-card">
                <view class="card-header">
                    <text class="card-title">系统取消派单</text>
                </view>
                <view class="card-body">
                    <text class="msg-text">订单由于超时未接单已被系统取消。</text>
                </view>
                <view class="card-footer">
                    <text class="order-id">订单: 2099091503111</text>
                    <image class="arrow-icon" src="/static/icons/chevron_right.svg"></image>
                </view>
            </view>
        </view>

    </view>
</template>

<script>
export default {
    methods: {
        navBack() {
            uni.navigateBack();
        }
    }
}
</script>

<style>
page {
    background-color: #F5F6FA;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 88rpx;
    padding-top: var(--status-bar-height);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30rpx;
    box-sizing: border-box;
    z-index: 100;
}
.nav-placeholder {
    height: calc(88rpx + var(--status-bar-height));
}
.back-icon {
    width: 40rpx;
    height: 40rpx;
}
.nav-title {
    font-size: 34rpx;
    font-weight: bold;
    color: #333;
}
.nav-right { width: 40rpx; }

.msg-group {
    padding: 20rpx 30rpx;
}
.date-label {
    text-align: center;
    font-size: 24rpx;
    color: #ccc;
    margin: 20rpx 0;
}
.msg-card {
    background-color: #fff;
    border-radius: 16rpx;
    padding: 30rpx;
    margin-bottom: 20rpx;
    box-shadow: 0 4rpx 10rpx rgba(0,0,0,0.02);
}
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16rpx;
}
.card-title {
    font-size: 28rpx;
    font-weight: bold;
    color: #333;
}
.red-dot {
    width: 12rpx;
    height: 12rpx;
    background-color: #FF3B30;
    border-radius: 50%;
    margin-left: 10rpx;
}
.card-body {
    margin-bottom: 24rpx;
    padding-bottom: 24rpx;
    border-bottom: 1rpx solid #f5f5f5;
}
.msg-text {
    font-size: 26rpx;
    color: #666;
    line-height: 1.5;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-id {
    font-size: 24rpx;
    color: #999;
}
.arrow-icon {
    width: 24rpx;
    height: 24rpx;
    opacity: 0.3;
}
</style>
