1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <template>
- <!-- 包月 -->
- <view class="monthly">
- <view class="monthly-list">
- <view class="monthly-list-item" v-for="(item, index) in monthlyList" :key="index">
- <view class="monthly-list-item-top">
- <view class="mlit-left">
- <view>{{item.name}}</view>
- <view>{{item.parking}}</view>
- </view>
- <view class="mlit-right" v-if="item.carType === 1">汽油车</view>
- <view class="mlit-right" v-if="item.carType === 3">新能源</view>
- </view>
- <view class="monthly-list-item-bottom">
- <view class="mlib-item">
- <view>包期</view>:
- <view>{{item.dateRange}}</view>
- </view>
- <view class="mlib-item">
- <view>剩余天数</view>:
- <view>{{item.balance}}天</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- monthlyList: [
- {
- id: 1,
- name: '贵A37W45',
- parking: '甜蜜小镇D18组团停车场',
- dateRange: '2021.04.21-2021.05.20',
- balance: '20',
- carType: 1
- },
- {
- id: 2,
- name: '贵A37W45',
- parking: '甜蜜小镇D18组团停车场',
- dateRange: '2021.04.21-2021.05.20',
- balance: '20',
- carType: 3
- },
- {
- id: 3,
- name: '贵A37W45',
- parking: '甜蜜小镇D18组团停车场',
- dateRange: '2021.04.21-2021.05.20',
- balance: '20',
- carType: 1
- }
- ]
- }
- },
- onShow () {
- this.getCarsLicenseList()
- },
- methods: {
- getCarsLicenseList () {
- this.$u.apiurl.mycarsUrl()
- .then(res => {
- console.log(res)
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- @import './monthly.scss';
- </style>
|