| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- <template>
- <view class="container">
- <!-- 每一个消息区域 -->
- <view class="box" v-for="item in imgList" :key="item.id">
- <view class="box_time">{{ item.time }}</view>
- <view class="box_info">
- <view class="info_circle" :class="{ while: item.type === false }"></view>
- <view class="info_icon">
- <img src="../../static/images/repairsImg/msg.png" />
- </view>
- <view class="info_msg">
- <view class="msg_title">{{ item.title }}</view>
- <view class="msg_order">订单号:{{ item.order }}</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- imgList: [
- {
- id: 1,
- type: false,
- title: '订单已完成请尽快确认!',
- order: '06521649496',
- time: '2023-07-07 12:25:25'
- },
- {
- id: 2,
- type: true,
- title: '请尽快确认!',
- order: '06521649496',
- time: '2023-08-07 12:25:25'
- },
- {
- id: 3,
- type: false,
- title: '已完成请尽快确认!',
- order: '06521649496',
- time: '2023-06-07 12:25:25'
- },
- {
- id: 4,
- type: false,
- title: '订单已完成请尽快确认!',
- order: '06521649496',
- time: '2023-07-07 12:25:25'
- },
- {
- id: 5,
- type: true,
- title: '请尽快确认!',
- order: '06521649496',
- time: '2023-08-07 12:25:25'
- },
- {
- id: 6,
- type: false,
- title: '已完成请尽快确认!',
- order: '06521649496',
- time: '2023-06-07 12:25:25'
- },
- {
- id: 7,
- type: false,
- title: '已完成请尽快确认!',
- order: '06521649496',
- time: '2023-06-07 12:25:25'
- }
- ]
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .container {
- width: 100vw;
- height: 100vh;
- background-color: #f2f2f2;
- overflow-y: auto;
- .box {
- margin-top: 10rpx;
- height: 194rpx;
- background-color: #fff;
- .box_time {
- height: 76rpx;
- line-height: 76rpx;
- text-align: center;
- color: #999999;
- font-size: 24rpx;
- }
- .box_info {
- display: flex;
- align-items: center;
- margin-left: 30rpx;
- .info_circle {
- width: 16rpx;
- height: 16rpx;
- border-radius: 50%;
- background-color: #d43030;
- }
- .while {
- background-color: #fff;
- }
- .info_icon {
- margin: 0 8rpx;
- width: 90rpx;
- height: 90rpx;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .info_msg {
- .msg_title {
- font-size: 32rpx;
- font-weight: bold;
- }
- .msg_order {
- margin-top: 10rpx;
- color: #808080;
- font-size: 24rpx;
- }
- }
- }
- }
- }
- </style>
|