'提现模块'
This commit is contained in:
93
components/property/record.vue
Normal file
93
components/property/record.vue
Normal file
@@ -0,0 +1,93 @@
|
||||
<template>
|
||||
<view>
|
||||
<block v-if="list.length > 0">
|
||||
<view class="record--item" v-for="(item, index) in list" :key="index">
|
||||
<view class="title ellipsis">{{item.hash || '-'}}</view>
|
||||
<view class="time ellipsis">{{item.block_time || '-'}}</view>
|
||||
<view class="webkit-box variation">
|
||||
<view class="ellipsis" :class="item.is_in ? 'add': 'remove'">{{item.is_in ? '+': '-'}}{{item.amount}}</view>
|
||||
<view class="symbol">{{item.assets.symbol}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-else>
|
||||
<no-list v-if='logsType === 0' name='no-record' txt="没有任何记录~" />
|
||||
<no-list v-if='logsType === 2' name='no-in' txt="没有任何收入记录~" />
|
||||
<no-list v-if='logsType === 1' name='no-out' txt="没有任何支出记录~" />
|
||||
</block>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:"property",
|
||||
props:{
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => {
|
||||
return []
|
||||
}
|
||||
},
|
||||
logsType:{
|
||||
type:Number
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.record--item{
|
||||
padding: $padding 320rpx $padding 0;
|
||||
border-bottom: solid 1rpx $border-color;
|
||||
position: relative;
|
||||
min-height: 50rpx;
|
||||
.variation{
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: $margin;
|
||||
bottom: $margin;
|
||||
width: 300rpx;
|
||||
text-align: right;
|
||||
font-weight: bold;
|
||||
&>label{
|
||||
font-size: 80%;
|
||||
}
|
||||
.symbol{
|
||||
color: $mian-color;
|
||||
font-weight: normal;
|
||||
font-size: $title-size-m;
|
||||
}
|
||||
.add{
|
||||
color: $mian-color;
|
||||
}
|
||||
.remove{
|
||||
color: $mian-color;
|
||||
}
|
||||
}
|
||||
.title{
|
||||
line-height: 50rpx;
|
||||
}
|
||||
.time{
|
||||
font-size: $title-size-m;
|
||||
color: $mian-color;
|
||||
}
|
||||
}
|
||||
// 数据空
|
||||
.record--null{
|
||||
padding-top: $padding * 3;
|
||||
text-align: center;
|
||||
color: $mian-color;
|
||||
font-size: $title-size;
|
||||
height: 50vh;
|
||||
box-sizing: border-box;
|
||||
line-height: 60rpx;
|
||||
image{
|
||||
width: 168rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user