<template>
|
|
<view class="page">
|
|
<navbar title="佣金"
|
|
bgColor="#A3D250"
|
|
color="#fff"
|
|
leftClick
|
|
@leftClick="$utils.navigateBack" />
|
|
|
|
<view class="bg"/>
|
|
|
|
<view class="price">
|
|
<view class="title">
|
|
我的佣金(元)
|
|
</view>
|
|
<view class="num">
|
|
16666
|
|
</view>
|
|
</view>
|
|
|
|
<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">{{ type[item.type] }}{{ item.money }}</view>
|
|
<view class="tips">已到账</view>
|
|
</view>
|
|
</template>
|
|
</uv-cell>
|
|
</uv-cell-group>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import mixinsList from '@/mixins/list.js'
|
|
export default {
|
|
mixins : [mixinsList],
|
|
data() {
|
|
return {
|
|
mixinsListApi : 'getWaterPageList',
|
|
type : ['+', '-'],
|
|
state : ['审核中', '成功', '失败'],
|
|
}
|
|
},
|
|
onShow() {
|
|
this.$store.commit('getUserInfo')
|
|
this.$store.commit('getRiceInfo')
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.page{
|
|
.bg{
|
|
background-color: $uni-color;
|
|
height: 160rpx;
|
|
position: absolute;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: -1;
|
|
border-bottom-left-radius: 30rpx;
|
|
border-bottom-right-radius: 30rpx;
|
|
}
|
|
|
|
.price{
|
|
background-color: #fff;
|
|
padding: 40rpx;
|
|
margin: 20rpx;
|
|
border-radius: 20rpx;
|
|
.title{
|
|
color: #777;
|
|
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{
|
|
color: #f40;
|
|
font-size: 32rpx;
|
|
font-weight: 900;
|
|
}
|
|
.tips{
|
|
font-size: 22rpx;
|
|
color: #aaa;
|
|
margin-top: 10rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|