ry_app/package_a/asset/asset.vue

275 lines
5.5 KiB
Vue
Raw Normal View History

2026-01-19 16:52:24 +08:00
<template>
2026-01-19 20:44:58 +08:00
<view class="page-wrapper">
<!-- 导航栏 -->
<view class="navbar">
<view class="nav-back" @click="goBack">
<!-- <text class="back-icon"></text> -->
</view>
<view class="nav-title">收入资产</view>
<view class="nav-refresh" @click="refresh">
<text class="refresh-icon"></text>
</view>
</view>
<!-- 资产卡片 -->
2026-01-19 16:52:24 +08:00
<view class="asset-card">
2026-01-19 20:44:58 +08:00
<view class="card-header">
<text class="card-title">我的资产</text>
</view>
<view class="asset-amount">0.00</view>
<view class="asset-stats">
<view class="stat-item">
<text class="stat-label">可提现</text>
<text class="stat-value">0.00</text>
2026-01-19 16:52:24 +08:00
</view>
2026-01-19 20:44:58 +08:00
<view class="stat-item">
<text class="stat-label">待结算</text>
<text class="stat-value">0.00</text>
<text class="stat-tip">次日可提现</text>
2026-01-19 16:52:24 +08:00
</view>
</view>
2026-01-19 20:44:58 +08:00
<view class="card-actions">
<button class="action-btn recharge-btn">充值</button>
<button class="action-btn withdraw-btn">提现到银行卡</button>
</view>
2026-01-19 16:52:24 +08:00
</view>
2026-01-19 20:44:58 +08:00
<!-- 资金明细 -->
<view class="fund-section">
<view class="section-title">资金明细</view>
<view class="detail-list">
<view class="detail-item active">
<text class="detail-text">可提现</text>
<text class="detail-amount">0.00 ></text>
2026-01-19 16:52:24 +08:00
</view>
2026-01-19 20:44:58 +08:00
<view class="detail-item">
<text class="detail-text">待结算</text>
<text class="detail-amount">0.00 ></text>
2026-01-19 16:52:24 +08:00
</view>
2026-01-19 20:44:58 +08:00
<view class="detail-item">
<text class="detail-text">已提现</text>
<text class="detail-amount">0.00 ></text>
2026-01-19 16:52:24 +08:00
</view>
2026-01-19 20:44:58 +08:00
<view class="detail-item">
<text class="detail-text">现金支付</text>
<text class="detail-amount">0.00 ></text>
2026-01-19 16:52:24 +08:00
</view>
</view>
2026-01-19 20:44:58 +08:00
</view>
2026-01-19 16:52:24 +08:00
2026-01-19 20:44:58 +08:00
<!-- 银行卡区域 -->
<view class="bank-section">
<view class="bank-item">
<text class="bank-text">我的银行卡</text>
<text class="bank-status">未绑定</text>
2026-01-19 16:52:24 +08:00
</view>
</view>
<!-- 常见问题 -->
<view class="faq-section">
2026-01-19 20:44:58 +08:00
<text class="faq-text">常见问题</text>
2026-01-19 16:52:24 +08:00
</view>
</view>
</template>
<script setup>
2026-01-19 20:44:58 +08:00
const goBack = () => {
uni.navigateBack()
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
const refresh = () => {
2026-01-19 16:52:24 +08:00
uni.showToast({
2026-01-19 20:44:58 +08:00
title: '刷新成功',
2026-01-19 16:52:24 +08:00
icon: 'none'
})
}
2026-01-19 20:44:58 +08:00
</script>
2026-01-19 16:52:24 +08:00
2026-01-19 20:44:58 +08:00
<style scoped>
/* 全局重置与基础样式 */
page {
background-color: #f5f5f5;
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.page-wrapper {
min-height: 100vh;
background-color: #f5f5f5;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
/* 状态栏 */
.status-bar {
display: flex;
justify-content: space-between;
padding: 10rpx 20rpx;
font-size: 24rpx;
color: #000;
background-color: #f5f5f5;
}
.status-icons {
display: flex;
align-items: center;
gap: 4rpx;
}
.icon {
font-size: 20rpx;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
/* 导航栏 */
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
2026-01-19 16:52:24 +08:00
padding: 20rpx 30rpx;
2026-01-19 20:44:58 +08:00
background-color: #f5f5f5;
border-bottom: 1rpx solid #e5e5e5;
}
.nav-back {
width: 60rpx;
}
.back-icon {
font-size: 32rpx;
color: #333;
font-weight: 500;
}
.nav-title {
font-size: 34rpx;
font-weight: 500;
color: #333;
}
.nav-refresh {
width: 60rpx;
text-align: right;
}
.refresh-icon {
font-size: 28rpx;
color: #333;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
/* 资产卡片 */
2026-01-19 16:52:24 +08:00
.asset-card {
2026-01-19 20:44:58 +08:00
margin: 20rpx 30rpx;
padding: 40rpx 30rpx 30rpx;
background-color: #fff;
border-radius: 16rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
text-align: center;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
.card-header {
2026-01-19 16:52:24 +08:00
margin-bottom: 20rpx;
}
2026-01-19 20:44:58 +08:00
.card-title {
font-size: 28rpx;
color: #999;
}
2026-01-19 16:52:24 +08:00
.asset-amount {
2026-01-19 20:44:58 +08:00
font-size: 72rpx;
font-weight: 700;
color: #e63946;
margin-bottom: 40rpx;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
.asset-stats {
2026-01-19 16:52:24 +08:00
display: flex;
2026-01-19 20:44:58 +08:00
justify-content: space-around;
margin-bottom: 40rpx;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
.stat-item {
2026-01-19 16:52:24 +08:00
text-align: center;
}
2026-01-19 20:44:58 +08:00
.stat-label {
display: block;
2026-01-19 16:52:24 +08:00
font-size: 26rpx;
2026-01-19 20:44:58 +08:00
color: #999;
margin-bottom: 8rpx;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
.stat-value {
font-size: 32rpx;
font-weight: 500;
color: #333;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
.stat-tip {
display: block;
font-size: 22rpx;
color: #999;
margin-top: 4rpx;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
.card-actions {
2026-01-19 16:52:24 +08:00
display: flex;
gap: 20rpx;
}
2026-01-19 20:44:58 +08:00
.action-btn {
2026-01-19 16:52:24 +08:00
flex: 1;
2026-01-19 20:44:58 +08:00
height: 80rpx;
border-radius: 8rpx;
font-size: 28rpx;
2026-01-19 16:52:24 +08:00
border: none;
2026-01-19 20:44:58 +08:00
background-color: #e9e9e9;
color: #999;
}
.withdraw-btn {
background-color: #1677ff;
color: #fff;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
/* 资金明细 */
.fund-section {
margin: 0 30rpx 30rpx;
background-color: #fff;
border-radius: 16rpx;
overflow: hidden;
}
2026-01-19 16:52:24 +08:00
.section-title {
2026-01-19 20:44:58 +08:00
padding: 30rpx;
font-size: 30rpx;
font-weight: 500;
2026-01-19 16:52:24 +08:00
color: #333;
2026-01-19 20:44:58 +08:00
border-bottom: 1rpx solid #f0f0f0;
2026-01-19 16:52:24 +08:00
}
.detail-list {
2026-01-19 20:44:58 +08:00
padding: 0;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
.detail-item {
2026-01-19 16:52:24 +08:00
display: flex;
align-items: center;
2026-01-19 20:44:58 +08:00
justify-content: space-between;
padding: 30rpx;
font-size: 28rpx;
color: #333;
border-bottom: 1rpx solid #f5f5f5;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
.detail-item.active {
/* background-color: #f0f8ff; */
/* color: #1677ff; */
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
.detail-amount {
color: #999;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
/* 银行卡区域 */
.bank-section {
margin: 0 30rpx 30rpx;
background-color: #fff;
border-radius: 16rpx;
}
.bank-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx;
2026-01-19 16:52:24 +08:00
font-size: 28rpx;
2026-01-19 20:44:58 +08:00
color: #333;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
.bank-status {
2026-01-19 16:52:24 +08:00
color: #999;
}
2026-01-19 20:44:58 +08:00
/* 常见问题 */
2026-01-19 16:52:24 +08:00
.faq-section {
2026-01-19 20:44:58 +08:00
text-align: center;
padding: 20rpx;
2026-01-19 16:52:24 +08:00
}
2026-01-19 20:44:58 +08:00
.faq-text {
font-size: 26rpx;
color: #1677ff;
2026-01-19 16:52:24 +08:00
}
</style>