123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- <template>
- <view class="user-profit">
- <view class="header-bg"></view>
- <view class="header">
- <view class="title">
- 收益明细
- </view>
- <view class="content">
- <view class="row">
- <view class="col">
- 账户余额:<text class="money">¥{{profitInfo.money}}</text>
- </view>
- <view class="col">
- 累计结算收益:<text class="money">¥{{profitInfo.total_settled_profit}}</text>
- </view>
- </view>
- <view>
- <button class="btn tixian-btn">立即提现</button>
- </view>
- </view>
- </view>
- <view class="block shouru">
- <view class="item">
- <view class="r1">结算收入</view>
- <view class="r2">¥{{profitInfo.last_month_settled_profit}}</view>
- <view class="r3">上月佣金</view>
- </view>
- <view class="item">
- <view class="r1">预估收入</view>
- <view class="r2">¥{{profitInfo.this_month_estimate_profit}}</view>
- <view class="r3">本月佣金</view>
- </view>
- <view class="item">
- <view class="r1">预估收入</view>
- <view class="r2">¥{{profitInfo.last_month_estimate_profit}}</view>
- <view class="r3">上月佣金</view>
- </view>
- </view>
- <view class="block jrsj">
- <view class="title">
- 今日数据
- </view>
- <view class="content">
- <view class="item">
- <view class="r1">付款笔数</view>
- <view class="r2">{{profitInfo.today_order_count}}</view>
- </view>
- <view class="item">
- <view class="r1">赚</view>
- <view class="r2">¥{{profitInfo.today_order_profit}}</view>
- </view>
- <view class="item">
- <view class="r1">分享赚</view>
- <view class="r2">¥{{profitInfo.today_invite_profit}}</view>
- </view>
- </view>
- </view>
- <view class="block zrsj">
- <view class="title">
- 昨日数据
- </view>
- <view class="content">
- <view class="item">
- <view class="r1">付款笔数</view>
- <view class="r2">{{profitInfo.yestoday_order_count}}</view>
- </view>
- <view class="item">
- <view class="r1">赚</view>
- <view class="r2">¥{{profitInfo.yestoday_order_profit}}</view>
- </view>
- <view class="item">
- <view class="r1">分享赚</view>
- <view class="r2">¥{{profitInfo.yestoday_invite_profit}}</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- profitInfo: {
- money: '0.00',
- total_settled_profit: '0.00',
- this_month_estimate_profit: '0.00',
- last_month_estimate_profit: '0.00',
- last_month_settled_profit: '0.00',
- today_order_count: 0,
- today_order_profit: '0.00',
- today_invite_profit: '0.00',
- yestoday_order_count: 0,
- yestoday_order_profit: '0.00',
- yestoday_invite_profit: '0.00'
- }
- }
- },
- onShow() {
- this.$http.get({
- url: "/commission/statistics",
- success: (res) => {
- this.profitInfo = res.data.data
- }
- })
- },
- methods: {
- }
- }
- </script>
- <style lang="scss" scoped>
- .user-profit {
- position: relative;
- overflow: hidden;
- }
- .header-bg {
- background: $primary-color;
- height: 100upx;
- position: absolute;
- top: 0;
- width: 100%;
- z-index: 1;
- }
- .header {
- margin: 20upx;
- background: white;
- text-align: center;
- border-radius: 20upx;
- position: relative;
- z-index: 2;
- .title {
- height: 100upx;
- font-size: 32upx;
- line-height: 100upx;
- // font-weight: bold;
- }
- .content {
- text-align: left;
- font-size: 28upx;
- padding: 20upx;
- padding-top: 0;
- color: #999999;
- }
- }
- .row {
- display: flex;
- .col {
- flex: 1;
- }
- }
- .btn.tixian-btn {
- background-color: $primary-color;
- color: white;
- font-size: 26upx;
- padding: 5upx 20upx;
- border-radius: 40upx;
- line-height: normal;
- display: inline-block;
- margin-top: 20upx;
- }
- .block {
- background: white;
- padding: 20upx;
- margin: 20upx;
- border-radius: 10upx;
- color: #999999;
- }
- .shouru {
- display: flex;
- .item {
- flex: 1;
- text-align: center;
- .r1 {
- font-size: 28upx;
- }
- .r2 {
- line-height: 100upx;
- color: #FF5D5B;
- }
- .r3 {
- font-size: 24upx;
- }
- }
- }
- .jrsj {
- .title {
- font-size: 28upx;
- border-bottom: 2upx solid #EEEEEE;
- padding-bottom: 10upx;
- }
- .content {
- display: flex;
- margin-top: 20upx;
- }
- .item {
- flex: 1;
- text-align: center;
- .r1 {
- font-size: 28upx;
- }
- .r2 {
- line-height: 100upx;
- color: #FF5D5B;
- }
- }
- }
- .zrsj {
- .title {
- font-size: 28upx;
- border-bottom: 2upx solid #EEEEEE;
- padding-bottom: 10upx;
- }
- .content {
- display: flex;
- margin-top: 20upx;
- }
- .item {
- flex: 1;
- text-align: center;
- .r1 {
- font-size: 28upx;
- }
- .r2 {
- line-height: 100upx;
- color: #FF5D5B;
- }
- }
- }
- </style>
|