ry_app/pages/asset/asset.vue

275 lines
5.5 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<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>
<!-- 资产卡片 -->
<view class="asset-card">
<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>
</view>
<view class="stat-item">
<text class="stat-label">待结算</text>
<text class="stat-value">0.00</text>
<text class="stat-tip">次日可提现</text>
</view>
</view>
<view class="card-actions">
<button class="action-btn recharge-btn">充值</button>
<button class="action-btn withdraw-btn">提现到银行卡</button>
</view>
</view>
<!-- 资金明细 -->
<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>
</view>
<view class="detail-item">
<text class="detail-text">待结算</text>
<text class="detail-amount">0.00 ></text>
</view>
<view class="detail-item">
<text class="detail-text">已提现</text>
<text class="detail-amount">0.00 ></text>
</view>
<view class="detail-item">
<text class="detail-text">现金支付</text>
<text class="detail-amount">0.00 ></text>
</view>
</view>
</view>
<!-- 银行卡区域 -->
<view class="bank-section">
<view class="bank-item">
<text class="bank-text">我的银行卡</text>
<text class="bank-status">未绑定</text>
</view>
</view>
<!-- 常见问题 -->
<view class="faq-section">
<text class="faq-text">常见问题</text>
</view>
</view>
</template>
<script setup>
const goBack = () => {
uni.navigateBack()
}
const refresh = () => {
uni.showToast({
title: '刷新成功',
icon: 'none'
})
}
</script>
<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;
}
/* 状态栏 */
.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;
}
/* 导航栏 */
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 30rpx;
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;
}
/* 资产卡片 */
.asset-card {
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;
}
.card-header {
margin-bottom: 20rpx;
}
.card-title {
font-size: 28rpx;
color: #999;
}
.asset-amount {
font-size: 72rpx;
font-weight: 700;
color: #e63946;
margin-bottom: 40rpx;
}
.asset-stats {
display: flex;
justify-content: space-around;
margin-bottom: 40rpx;
}
.stat-item {
text-align: center;
}
.stat-label {
display: block;
font-size: 26rpx;
color: #999;
margin-bottom: 8rpx;
}
.stat-value {
font-size: 32rpx;
font-weight: 500;
color: #333;
}
.stat-tip {
display: block;
font-size: 22rpx;
color: #999;
margin-top: 4rpx;
}
.card-actions {
display: flex;
gap: 20rpx;
}
.action-btn {
flex: 1;
height: 80rpx;
border-radius: 8rpx;
font-size: 28rpx;
border: none;
background-color: #e9e9e9;
color: #999;
}
.withdraw-btn {
background-color: #1677ff;
color: #fff;
}
/* 资金明细 */
.fund-section {
margin: 0 30rpx 30rpx;
background-color: #fff;
border-radius: 16rpx;
overflow: hidden;
}
.section-title {
padding: 30rpx;
font-size: 30rpx;
font-weight: 500;
color: #333;
border-bottom: 1rpx solid #f0f0f0;
}
.detail-list {
padding: 0;
}
.detail-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx;
font-size: 28rpx;
color: #333;
border-bottom: 1rpx solid #f5f5f5;
}
.detail-item.active {
/* background-color: #f0f8ff; */
/* color: #1677ff; */
}
.detail-amount {
color: #999;
}
/* 银行卡区域 */
.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;
font-size: 28rpx;
color: #333;
}
.bank-status {
color: #999;
}
/* 常见问题 */
.faq-section {
text-align: center;
padding: 20rpx;
}
.faq-text {
font-size: 26rpx;
color: #1677ff;
}
</style>