星油云站
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
1.9 KiB

4 years ago
<template>
<view class="flex price-list">
<view class="basis-xs">
4 years ago
</view>
<view class="solid-right basis-xs" v-for="(item,index) in price" :key="index">
<view class="text-center">
<view class="strong font-16 oil-main-color">
{{item.price|numberFliter}}
</view>
<view class="radius text-center oil-card-price main-color-border">
<text class="oil-free">
</text>
<text class="free-money">
{{item.free|numberFliter}}
</text>
</view>
<view class="">
星油油价
</view>
4 years ago
</view>
</view>
<!-- <view class="flex-treble text-center solid-right">
<view class="strong font-16 color-wjy">
4 years ago
5.81
</view>
<view class="radius text-center oil-card-price main-color-border border-wjy">
<text class="oil-free bg-wjy">
4 years ago
</text>
<text class="free-money color-wjy">
5.81
4 years ago
</text>
</view>
<view class="">
万金油价
</view>
</view>
<view class="flex-treble text-center " :class="isLast?'':'solid-right'">
<view class="strong font-16 color-lv ">
4 years ago
5.81
</view>
<view class="radius oil-card-price border-lv">
<text class="oil-free bg-lv">
4 years ago
</text>
<text class="free-money color-lv">
4 years ago
七毛
</text>
</view>
<view class="">
老吕油价
</view>
</view> -->
4 years ago
</view>
</template>
<script>
export default {
name: 'PriceList',
props: {
price: {
type: Array,
default () {}
}
},
data() {
return {
isLast: true
}
},
filters: {
numberFliter(value) {
value = value - 1 + 1
if (value) {
return value.toFixed(2)
} else {
return '0.00'
}
}
}
4 years ago
}
</script>
<style scoped>
.oil-card-price {
max-width: 4rem;
margin: auto;
}
.free-money {
max-width: 3rem;
font-size: 12px;
color: #FE0505;
4 years ago
line-height: 12px;
}
.navigation {
position: absolute;
right: 16px;
}
</style>