123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <view class="container {{isDarkMode ? 'dark-mode' : ''}}">
- <view class="loading" wx:if="{{loading}}">
- <text>加载中...</text>
- </view>
- <block wx:else>
- <!-- 收入统计 -->
- <view class="income-stats">
- <view class="total-income">
- <view class="label">累计收入(元)</view>
- <view class="amount">{{incomeStats.totalIncome}}</view>
- </view>
- <view class="stats-grid">
- <view class="stats-item">
- <view class="label">今日收入(元)</view>
- <view class="amount">{{incomeStats.todayIncome}}</view>
- </view>
- <view class="stats-item">
- <view class="label">待结算(元)</view>
- <view class="amount">{{incomeStats.pendingIncome}}</view>
- </view>
- <view class="stats-item">
- <view class="label">可提现(元)</view>
- <view class="amount">{{incomeStats.withdrawable}}</view>
- </view>
- </view>
- <button class="withdraw-btn" bindtap="applyWithdraw">申请提现</button>
- </view>
- <!-- 收入明细 -->
- <view class="income-list">
- <view class="list-header">收入明细</view>
- <view class="list-content">
- <view class="income-item" wx:for="{{incomeList}}" wx:key="id">
- <view class="item-main">
- <view class="item-type">{{item.type}}</view>
- <view class="item-amount">+{{item.amount}}</view>
- </view>
- <view class="item-sub">
- <view class="item-time">{{item.createTime}}</view>
- <view class="item-status">{{item.status}}</view>
- </view>
- <view class="item-order">订单号:{{item.orderNo}}</view>
- </view>
- <view class="no-more" wx:if="{{!hasMore && incomeList.length > 0}}">
- 没有更多数据了
- </view>
- <view class="empty" wx:if="{{!loading && incomeList.length === 0}}">
- 暂无收入记录
- </view>
- </view>
- </view>
- </block>
- </view>
|