已对接6个接口

准备回复订单详情页面
This commit is contained in:
xk_guohonglei
2020-08-22 09:55:17 +08:00
parent 85e6ba710e
commit b68df95618
24 changed files with 4443 additions and 234 deletions

View File

@@ -1,25 +1,27 @@
<template>
<view class="flex price-list">
<view class="flex-sub">
<view class="basis-xs">
</view>
<view class="solid-right basis-xs" v-for="(item,index) in price" :key="index">
<view class="text-center">
</view>
<view class="flex-treble text-center solid-right">
<view class="strong font-16 oil-main-color">
5.81
</view>
<view class="radius text-center oil-card-price main-color-border">
<text class="oil-free">
</text>
<text class="free-money">
七毛
</text>
</view>
<view class="">
星油油价
<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>
</view>
</view>
<view class="flex-treble text-center solid-right">
<!-- <view class="flex-treble text-center solid-right">
<view class="strong font-16 color-wjy">
5.81
</view>
@@ -50,18 +52,34 @@
<view class="">
老吕油价
</view>
</view>
</view> -->
</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'
}
}
}
}
</script>