版本1.3.4
This commit is contained in:
@@ -3,12 +3,9 @@
|
||||
<template>
|
||||
<view class="cu-item radius shadow margin-bottom ">
|
||||
<!-- <image class="pay-status" :src="baseURL+'static/img/oil-unfinished.png'" alt /> -->
|
||||
<view class="cu-avatar text-sl" v-if="item.sourceType==='3'"
|
||||
:style="'background-image:url('+baseURL+'static/img/order-wjy.png)'"></view>
|
||||
<view class="cu-avatar text-sl" v-if="item.sourceType==='4'||item.sourceType==='6'"
|
||||
:style="'background-image:url('+baseURL+'static/img/order-xy.png)'"></view>
|
||||
<view class="cu-avatar text-sl" v-if="item.sourceType==='5'"
|
||||
:style="'background-image:url('+baseURL+'static/img/order-lv.png)'"></view>
|
||||
<view class="cu-avatar text-sl" v-if="item.sourceType==='3'" :style="'background-image:url('+baseURL+'static/img/order-wjy.png)'"></view>
|
||||
<view class="cu-avatar text-sl" v-if="item.sourceType==='4'||item.sourceType==='6'" :style="'background-image:url('+baseURL+'static/img/order-xy.png)'"></view>
|
||||
<view class="cu-avatar text-sl" v-if="item.sourceType==='5'" :style="'background-image:url('+baseURL+'static/img/order-lv.png)'"></view>
|
||||
<view class="content">
|
||||
<view class=" solid-bottom padding-bottom-sm">
|
||||
<view class="flex-treble" @tap="copyId(item.orderID)">
|
||||
@@ -19,18 +16,21 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class=" text-content text-df">
|
||||
{{item.oilSiteName}}
|
||||
<text class="lin-h-2">
|
||||
{{item.oilSiteName}}
|
||||
</text>
|
||||
</view>
|
||||
<view class="text-sm padding-top-sm" @tap="toDetails(item.orderID)">
|
||||
<view class="text-sm " @tap="toDetails(item.orderID)">
|
||||
<view class="flex">
|
||||
<view class="details">
|
||||
<view class="top1 text-left">
|
||||
<image class="icon icon-desc " :src="baseURL+'static/img/oil-lf.png'" alt />
|
||||
<text class="padding-left-xs padding-right-xs" v-if="item.vol">
|
||||
{{item.vol|numberFilter}}升</text>
|
||||
<text>
|
||||
|
||||
<text class="padding-left-xs padding-right-sm">
|
||||
{{item.oilName}}
|
||||
</text>
|
||||
<text class=" text-lg text-bold text-red " v-if="item.vol">
|
||||
{{item.vol|numberFilter}} L</text>
|
||||
|
||||
</view>
|
||||
<view class="bottom text-left">
|
||||
@@ -38,14 +38,13 @@
|
||||
|
||||
<text class="padding-left-xs">
|
||||
{{item.createDatetime.substring(0, 10)}}
|
||||
|
||||
</text>
|
||||
</view>
|
||||
<view class="bottom text-left">
|
||||
<image class="icon icon-desc " :src="baseURL+'static/img/mini-car.png'" alt />
|
||||
|
||||
<text class="padding-left-xs">
|
||||
加油车牌: {{item.carNo}}
|
||||
加油车牌: {{item.carNo|plateFilter}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -56,7 +55,7 @@
|
||||
{{item.createDatetime.substring(0,19)}}
|
||||
</view>
|
||||
<view>
|
||||
<text class="color-000 text-lg total-money">¥{{item.realamount|numberFilter}}</text>
|
||||
<text class="text-red text-lg text-bold total-money">¥{{amount|numberFilter}}</text>
|
||||
<view class="round pay-state light bg-olive bg-transparent text-center state-0" v-if="istate==0">
|
||||
<text class="inner-istate round">{{istate|formatStr}}</text>
|
||||
<view class="inner-border">
|
||||
@@ -109,7 +108,7 @@
|
||||
console.log(this.item.istate)
|
||||
switch (parseInt(this.item.istate)) {
|
||||
// 网页版 0:待支付, 1:已支付 ,-1:支付失败 ,-2:退款,
|
||||
//小程序 0:待支付, 1:已支付 ,-1:支付失败 ,2:已取消,3:已退款
|
||||
//小程序 1:待支付, 1:已支付 ,-1:支付失败 ,2:已取消,3:已退款
|
||||
case 1:
|
||||
return 1
|
||||
case -1:
|
||||
@@ -124,6 +123,14 @@
|
||||
} else {
|
||||
return this.item.istate
|
||||
}
|
||||
},
|
||||
amount(){
|
||||
let orderType = uni.getStorageSync('orderType')
|
||||
if (orderType == 1) {
|
||||
return this.item.sitePrice*this.item.vol
|
||||
}else{
|
||||
return this.item.realamount
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -154,6 +161,15 @@
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
plateFilter(value) {
|
||||
if (value) {
|
||||
const numBegin = value.substring(0, 2);
|
||||
const numEnd = value.substring(5);
|
||||
return numBegin + '***' + numEnd;
|
||||
} else {
|
||||
return '暂无'
|
||||
}
|
||||
},
|
||||
toT(value) {
|
||||
if (value) {
|
||||
return value / 1000
|
||||
@@ -190,6 +206,10 @@
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.lin-h-2 {
|
||||
line-height: 2.6rem;
|
||||
}
|
||||
|
||||
.cu-avatar {
|
||||
background-color: rgba(255, 255, 255, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user