index.vue
3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<template>
<view class="app-container">
<up-navbar placeholder :leftIconSize="0" bgColor="transparent" />
<view class="car_list">
<view class="title">车辆管理</view>
<carCard v-for="carItem in carList" :key="carItem.carId" :carInfo="carItem">
<template #header>
<navTop :carNum="carItem.carNum" />
</template>
<template #center>
<centerLine :leftContent="carItem.carBrand" fontColor="#999" :rightContent="carItem.address"></centerLine>
</template>
<template #footer>
<centerLine></centerLine>
</template>
</carCard>
<view class="addBtn" @click="addCarInfo">登记车辆保险信息</view>
</view>
<up-popup :show="showNotice" mode="center" :safeAreaInsetBottom="false" round="20" @close="showNotice = false">
<view class="notice">
<view class="notice_title">通知公告</view>
<view class="notice_content">
1.我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告
2.我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告我是公告
3.我是公告我是公告我是公告我是公告
</view>
<view class="btn" @click="showNotice = false">确认</view>
</view>
</up-popup>
</view>
</template>
<script setup>
import { ref } from 'vue'
import carCard from '@/components/carCard.vue';
import centerLine from '@/components/centerLine.vue';
import navTop from '@/components/navTop.vue';
const showNotice = ref(true)
const carList = ref([
{ carId: 1, carNum: '桂A·66666', carBrand: '梅赛德斯奔驰', address: '广西壮族自治区 南宁市 兴宁区投保', status: 0 },
{ carId: 2, carNum: '桂A·77777', carBrand: '梅赛德斯奔驰', address: '广西壮族自治区 南宁市 兴宁区投保', status: 1 },
{ carId: 3, carNum: '桂A·77777', carBrand: '梅赛德斯奔驰', address: '广西壮族自治区 南宁市 兴宁区投保', status: 2 }
])
const addCarInfo = () => {
uni.navigateTo({
url: '/pages/carDetail/carDetail'
})
}
</script>
<style lang="scss" scoped>
.app-container{
width: 100%;
height: 100vh;
padding: 0 30rpx;
background: url('http://bxhd.crgx.net/profile/avatar/2024/09/25/bg-index_20240925113012A004.png') no-repeat;
background-size: 100% 100%;
overflow: hidden;
.car_list{
display: flex;
flex-direction: column;
gap: 20rpx;
.title{
font-size: 32rpx;
line-height: 42rpx;
color: #fff;
}
.addBtn{
width: 100%;
height: 80rpx;
line-height: 80rpx;
text-align: center;
font-size: 28rpx;
color: #3d3d3d;
font-weight: 500;
background: #FFFFFF;
box-shadow: 0rpx 8rpx 40rpx 0rpx rgba(10,22,44,0.06);
border-radius: 20rpx;
}
}
}
.notice{
position: relative;
width: 690rpx;
height: 600rpx;
background: #FFFFFF;
padding: 40rpx 30rpx 0;
border-radius: 20rpx;
overflow: hidden;
.notice_title{
text-align: center;
font-size: 36rpx;
line-height: 48rpx;
color: #3D3D3D;
margin-bottom: 40rpx;
}
.notice_content{
font-size: 28rpx;
line-height: 38rpx;
color: #999;
}
.btn{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
line-height: 100rpx;
text-align: center;
height: 100rpx;
color: #3680FE;
font-size: 28rpx;
border-top: 2rpx solid #eee;
}
}
</style>