|
|
- <template>
- <view class="page">
- <navbar title="收支明细"
- bgColor="#A3D250"
- color="#fff"
- leftClick
- @leftClick="$utils.navigateBack" />
-
- <view class="bg"/>
-
- <view class="cell">
- <view class="cell-top">收支明细</view>
- <view class="cell-box"
- :key="index"
- v-for="(item,index) in list">
- <uv-cell-group>
- <uv-cell
- :title="item.title"
- :label="item.createTime"
- :center="true">
- <template #value>
- <view class="cell-text">
-
- <view class="price-text"
- v-if="item.type">{{ type[item.type] }}{{ item.money }}</view>
-
- <view class="price-text add"
- v-else>{{ type[item.type] }}{{ item.money }}</view>
-
- <view class="tips">{{ state[item.state] }}</view>
- </view>
- </template>
- </uv-cell>
- </uv-cell-group>
- </view>
- </view>
-
- </view>
- </template>
-
- <script>
- import mixinsList from '@/mixins/list.js'
- import { mapState } from 'vuex'
- export default {
- mixins : [mixinsList],
- data() {
- return {
- mixinsListApi : 'getWaterPageList',
- list : [],
- type : ['+', '-'],
- state : ['未到账', '已到账'],
- }
- },
- computed: {
- ...mapState(['userInfo', 'riceInfo']),
- },
- onShow() {
- this.$store.commit('getUserInfo')
- this.$store.commit('getRiceInfo')
- },
- methods: {
-
- }
- }
- </script>
-
- <style scoped lang="scss">
- .page{
- .bg{
- background-color: $uni-color;
- height: 300rpx;
- position: absolute;
- left: 0;
- width: 100%;
- z-index: -1;
- border-bottom-left-radius: 30rpx;
- border-bottom-right-radius: 30rpx;
- }
-
- .price{
- color: #FFFFFF;
- padding: 40rpx;
- .title{
- color: #eee;
- font-size: 28rpx;
- }
- .num{
- font-size: 50rpx;
- font-weight: 900;
- margin-top: 10rpx;
- }
- }
-
- .cell {
- margin: 20rpx;
- background-color: #FFFFFF;
- border-radius: 16rpx;
-
-
- .cell-top {
- padding: 40rpx 34rpx;
- color: #474747;
- font-size: 34rpx;
- font-weight: 600;
- position: relative;
- &::after{
- content: '';
- display: block;
- position: absolute;
- left: 55rpx;
- bottom: 38rpx;
- height: 10rpx;
- width: 120rpx;
- background: linear-gradient(to right, #fff, $uni-color);
- }
- }
- .cell-text{
- text-align: right;
- .price-text{
- font-size: 32rpx;
- font-weight: 900;
- }
- .add{
- color: #f40;
- }
- .tips{
- font-size: 22rpx;
- color: #aaa;
- margin-top: 10rpx;
- }
- }
- }
- }
- </style>
|