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.
 
 
 

194 lines
4.8 KiB

<template>
<!-- <view style="padding: 40rpx 0px;">
<scroll-view scroll-x="true" style="width: 340px;">
<view style="width: 450px;">
<table class="table">
<thead>
<tr>
<th class="color1" style="width: 100rpx;">{{ $t("common.d8") }}</th>
<th class="color1">{{ $t("common.amout") }}</th>
<th class="color1" style="width: 150rpx;">{{ $t("common.d9") }}</th>
<th class="color1" style="width: 100rpx;">{{ $t("common.d10") }}</th>
<th class="color1" style="text-align: center;width: 180rpx;">{{ $t("common.d13") }}</th>
<th class="color1" style="text-align: center;width: 180rpx;">{{ $t("common.d15") }}</th>
</tr>
</thead>
<tbody>
<tr v-for="(item,index) in recordsList" :key="index" style="border-bottom: 1px solid #ccc;height: 140rpx;">
<td style="text-align: center;">{{item.currency}}</td>
<td style="margin-right: 20rpx;">{{item.amount}}</td>
<td style="text-align: center;">{{item.rate}}%</td>
<td v-if="item.type==1" style="text-align: center;">{{$t('common.d17')}}</td>
<td v-if="item.type==2" style="text-align: center;">{{item.day}}{{$t('exchange.f0')}}</td>
<td style="text-align: center;">{{item.financial_time}}</td>
<td style="text-align: center;">{{item.redemption_time}}</td>
</tr>
</tbody>
</table>
</view>
</scroll-view>
</view> -->
<view style="background-color: #f9f9f9;height: 100%;color: #666;">
<v-header class="nav-head" :title="$t('common.d7')"></v-header>
<scroll-view scroll-y="true" style="height: 90vh;">
<view style="padding: 0rpx 40rpx;">
<view v-for="(item,index) in recordsList" :key="index" class="recordsList_box">
<view style="width: 160rpx;">
<view>{{ $t("common.d8") }}</view>
<view>{{item.currency}}</view>
</view>
<view style="width: 200rpx;text-align: center;">
<view>{{ $t("common.amout") }}</view>
<view>{{item.amount}}</view>
</view>
<view style="width: 200rpx;text-align: right;">
<view>{{ $t("common.d9") }}</view>
<view>{{item.rate}}%</view>
</view>
<view style="width: 160rpx;margin-top: 30rpx;">
<view>{{ $t("common.d10") }}</view>
<view v-if="item.type==1">{{$t('common.d17')}}</view>
<view v-if="item.type==2">{{item.day}}{{$t('exchange.f0')}}</view>
</view>
<view style="width: 200rpx;text-align: center;margin-top: 30rpx;">
<view>{{ $t("common.d13") }}</view>
<view>{{item.financial_time}}</view>
</view>
<view style="width: 200rpx;text-align: right;margin-top: 30rpx;">
<view>{{ $t("common.d15") }}</view>
<view>{{item.redemption_time}}</view>
</view>
</view>
</view>
</scroll-view>
</view>
</template>
<script>
import Wallet from "@/api/wallet";
export default {
name: "finances-product",
props: {
},
components: {
},
watch: {
},
created() {
this.init()
},
data() {
return {
recordsList:[]
};
},
methods: {
init(){
Wallet.financial_records({status:1}).then(res => {
this.recordsList = res.data.data;
console.log(this.recordsList);
})
},
}
};
</script>
<style scoped lang="scss">
.color1{
color: #908F94;
}
tbody tr:hover{
background: #e9e9e9;
}
.jump_btn{
display: inline-block;
min-width: 160rpx;
height: 70rpx;
line-height: 66rpx;
text-align: center;
border: 1px solid #444444;
border-radius: 100rpx;
font-size: 30rpx;
padding: 0px 40rpx;
font-weight: 400;
color: #000;
box-sizing: border-box;
&:hover{
cursor: pointer;
color: #67e2da;
border: 1px solid #67e2da;
}
}
.jump_btn1{
display: inline-block;
min-width: 160rpx;
height: 70rpx;
line-height: 66rpx;
text-align: center;
color: #999999;
border: 1px solid #999999;
border-radius: 100rpx;
font-size: 30rpx;
padding: 0px 40rpx;
font-weight: 400;
box-sizing: border-box;
}
.tr_box{
display: flex;
margin: 0px 20rpx;
line-height: 100rpx;
}
.collapse_box{
width: 100%;
display: flex;
font-size: 30rpx;
font-weight: bold;
}
.collapse_box1{
display: flex;
font-size: 30rpx;
font-weight: bold;
line-height: 100rpx;
align-items: center;
justify-content: space-between;
}
.collapse_box2{
display: flex;
font-size: 30rpx;
line-height: 100rpx;
font-weight: bold;
align-items: center;
justify-content: space-between;
}
.currency_box{
display: flex;
align-items: center;
padding:40rpx 0rpx 40rpx;
justify-content: space-between;
border-bottom: 1px solid #bcbcbc;
}
.box1{
width: 26%;
padding-left: 5px;
}
.box2{
width: 25%;
}
.box4{
width: 20%;
text-align: right;
}
.recordsList_box{
display: flex;
flex-wrap: wrap;
margin:40rpx 0px;
padding: 30rpx;
border-radius: 20rpx;
background-color: #fff;
justify-content: space-between;
}
</style>