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.
136 lines
3.0 KiB
136 lines
3.0 KiB
<template>
|
|
<view>
|
|
<lf-nav title="余额" :showIcon="true" :spreadOut="false" bgColor="transparent" titleColor="#fff"></lf-nav>
|
|
<view class="head">
|
|
<view class="bg-left"></view>
|
|
<view class="bg-right"></view>
|
|
<view class="head-content">
|
|
<view>
|
|
<text class="lf-iconfont icon-- lf-font-50"></text>
|
|
</view>
|
|
<view class="point">
|
|
<text>78326478</text>
|
|
<text class="label">(元)</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="main">
|
|
<view class="lf-row-between lf-m-b-30">
|
|
<view class="lf-font-32 lf-color-black lf-font-bold">余额变动明细</view>
|
|
<picker mode='date' :value="date" @change="dateChange">
|
|
<view style="width: 440rpx; text-align: right;">
|
|
<text>{{ date || '2021-09-01' }}</text>
|
|
<text class="lf-iconfont icon--1 lf-m-l-10"></text>
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
<view class="item" v-for="(item, index) in 10" :key="index">
|
|
<view class="lf-row-between">
|
|
<text class="lf-font-36 lf-color-black lf-font-bold" :class="{'lf-color-price': index % 2}">{{ index % 2 ? '-250' : '+80' }}</text>
|
|
<text class="lf-font-24 lf-color-555">线上-商城内消费</text>
|
|
</view>
|
|
<view class="lf-row-between lf-m-t-20">
|
|
<text class="lf-font-24 lf-color-555">¥374.38</text>
|
|
<text class="lf-font-24 lf-color-777">2021-09-01 18:27:58</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data(){
|
|
return {
|
|
date: ''
|
|
}
|
|
},
|
|
onLoad(){
|
|
|
|
},
|
|
methods: {
|
|
dateChange(event){
|
|
this.date = event.detail.value;
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
page{
|
|
overflow-x: hidden;
|
|
}
|
|
</style>
|
|
<style lang="scss" scoped>
|
|
.head{
|
|
width: 750rpx;
|
|
// height: 512rpx;
|
|
height: 429rpx;
|
|
background: linear-gradient(90deg, #22A2A0 0%, #187B7A 100%);
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
box-sizing: border-box;
|
|
padding: 60rpx 32rpx;
|
|
color: #FFFFFF;
|
|
.bg-left{
|
|
position: absolute;
|
|
width: 196rpx;
|
|
height: 196rpx;
|
|
border-radius: 50%;
|
|
background-color: rgba(255,255,255,0.04);
|
|
left: -92rpx;
|
|
bottom: 60rpx;
|
|
}
|
|
.bg-right{
|
|
position: absolute;
|
|
width: 520rpx;
|
|
height: 520rpx;
|
|
border-radius: 50%;
|
|
background-color: rgba(255,255,255,0.04);
|
|
right: -168rpx;
|
|
top: -122rpx;
|
|
}
|
|
.head-content{
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
&>view{
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
.point{
|
|
font-size: 72rpx;
|
|
letter-spacing: 2rpx;
|
|
font-weight: bold;
|
|
word-break: break-all;
|
|
line-height: 1;
|
|
margin-top: 10rpx;
|
|
.label{
|
|
font-size: 36rpx;
|
|
font-weight: initial;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.main{
|
|
padding: 30rpx 32rpx;
|
|
width: 750rpx;
|
|
height: max-content;
|
|
box-sizing: border-box;
|
|
.item{
|
|
width: 686rpx;
|
|
height: max-content;
|
|
background: #F4F8F8;
|
|
border-radius: 10rpx;
|
|
margin-bottom: 26rpx;
|
|
padding: 30rpx;
|
|
box-sizing: border-box;
|
|
line-height: 1;
|
|
}
|
|
}
|
|
</style>
|