123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <template>
- <view>
- <u-navbar title="车辆管理"></u-navbar>
- <!-- <view class="carNone">
- <img src="/static/img/none2.svg" alt="">
- <p>暂无绑定车辆</p>
- <view class="carNone-btn">
- 添加车牌
- </view>
- </view> -->
- <view class="car">
- <view class="car-item" @click="gotoUrl('pages/user/car/carAdd?id=')">
- <span>默认</span>
- <font>鄂D 999999</font>
- </view>
- <view class="car-btn" @click="addCar">添加车牌</view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
-
- }
- },
- methods: {
- addCar() {
- uni.navigateTo({
- url: '/pages/user/car/carDet'
- })
- }
- }
- }
- </script>
- <style>
- page{
- background: #fff;
- }
- </style>
- <style lang="scss" scoped>
- .carNone{
- display: flex;
- flex-direction: column;
- justify-content: center;
- height: calc(100vh - 44px);
- align-items: center;
- img{
- width: 256px;
- height: 256px;
- }
- p{
- margin-top: -60px;
- }
- .carNone-btn{
- font-size: 16px;
- color:#00B962;
- border: 1px solid #00B962;
- padding: 10px 70px;
- border-radius: 20px;
- margin-top: 48px;
- }
- }
- .car{
- padding: 24px;
- .car-item{
- background-color: #00B962;
- height: 80px;
- border-radius: 8px;
- position: relative;
- text-align: center;
- font{
- color:#fff;
- font-size: 36px;
- line-height:80px;
- }
- span{
- position: absolute;
- height: 24px;
- width: 48px;
- background-color: #008A4B ;
- color:#fff;
- right: 0;
- top: 0;
- text-align: center;
- line-height: 24px;
- border-radius: 0 8px 0 8px;
- }
- }
- .car-btn{
- font-size: 16px;
- color:#00B962;
- border: 1px solid #00B962;
- border-radius: 21px;
- padding: 10px 0;
- text-align: center;
- margin-top: 12px;
- }
- }
- </style>
|