feat(uniapp): 对齐钱包余额页面黑金尊享卡片与收支明细卡片流
这个提交包含在:
@@ -0,0 +1,75 @@
|
|||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
let passed = 0;
|
||||||
|
let failed = 0;
|
||||||
|
|
||||||
|
function assert(condition, testName, detail = '') {
|
||||||
|
if (condition) {
|
||||||
|
console.log(` [PASS] ${testName}`);
|
||||||
|
passed++;
|
||||||
|
} else {
|
||||||
|
console.error(` [FAIL] ${testName} - ${detail}`);
|
||||||
|
failed++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("========================================================");
|
||||||
|
console.log(" 钱包余额页面对齐黑金卡片与流水卡片流规格测试");
|
||||||
|
console.log("========================================================\n");
|
||||||
|
|
||||||
|
// 1. 验证 money.vue 存在性
|
||||||
|
const moneyVuePath = path.resolve(__dirname, '../uniapp/pages/user/wallet/money.vue');
|
||||||
|
assert(fs.existsSync(moneyVuePath), 'money.vue 文件存在');
|
||||||
|
const content = fs.readFileSync(moneyVuePath, 'utf-8');
|
||||||
|
|
||||||
|
// 2. 验证黑金尊享卡片结构
|
||||||
|
assert(
|
||||||
|
content.includes('asset-card') && content.includes('money-hero'),
|
||||||
|
'包含黑金资产卡片与核心大字数结构',
|
||||||
|
'未升级为 asset-card 结构'
|
||||||
|
);
|
||||||
|
|
||||||
|
// 3. 验证余额与充值按钮
|
||||||
|
assert(
|
||||||
|
content.includes('userInfo.money') &&
|
||||||
|
content.includes('/pages/pay/recharge') &&
|
||||||
|
content.includes('充值'),
|
||||||
|
'包含余额展示与充值跳转入口',
|
||||||
|
'缺少余额绑定或充值入口'
|
||||||
|
);
|
||||||
|
|
||||||
|
// 4. 验证金额显隐切换
|
||||||
|
assert(
|
||||||
|
content.includes('showMoney') &&
|
||||||
|
(content.includes('cicon-eye') || content.includes('cicon-eye-off')),
|
||||||
|
'支持余额明文/掩码显隐切换',
|
||||||
|
'缺少显隐切换逻辑'
|
||||||
|
);
|
||||||
|
|
||||||
|
// 5. 验证流水列表卡片流升级
|
||||||
|
assert(
|
||||||
|
content.includes('log-card'),
|
||||||
|
'收支明细升级为独立 log-card 卡片流',
|
||||||
|
'仍采用普通边框单行列表'
|
||||||
|
);
|
||||||
|
|
||||||
|
// 6. 验证总收入与总支出统计
|
||||||
|
assert(
|
||||||
|
content.includes('pagination.income') && content.includes('pagination.expense'),
|
||||||
|
'包含当前筛选周期总收入与总支出统计',
|
||||||
|
'缺少收支统计'
|
||||||
|
);
|
||||||
|
|
||||||
|
// 7. 移除失效的 wallet_card_bg.png 依赖
|
||||||
|
assert(
|
||||||
|
!content.includes('wallet_card_bg.png'),
|
||||||
|
'移除对失效旧背景图 wallet_card_bg.png 的硬编码依赖',
|
||||||
|
'仍依赖旧版失效背景图'
|
||||||
|
);
|
||||||
|
|
||||||
|
console.log("\n--------------------------------------------------------");
|
||||||
|
console.log(`测试执行结果: 通过 ${passed} 项, 失败 ${failed} 项`);
|
||||||
|
console.log("========================================================");
|
||||||
|
|
||||||
|
process.exit(failed === 0 ? 0 : 1);
|
||||||
@@ -1,356 +1,633 @@
|
|||||||
<template>
|
<template>
|
||||||
<s-layout class="wallet-wrap" title="钱包">
|
<s-layout class="money-wrap" title="钱包">
|
||||||
<!-- 钱包卡片 -->
|
<!-- 顶部黑金尊享资产卡片 -->
|
||||||
<view class="header-box ss-flex ss-row-center ss-col-center">
|
<view class="header-box">
|
||||||
<view class="card-box ui-BG-Main ui-Shadow-Main">
|
<view class="asset-card">
|
||||||
<view class="card-head ss-flex ss-col-center">
|
<!-- 卡片顶栏 -->
|
||||||
<view class="card-title ss-m-r-10">钱包余额(元)</view>
|
<view class="card-top ss-flex ss-row-between ss-col-center">
|
||||||
<view
|
<view class="top-tag ss-flex ss-col-center">
|
||||||
@tap="state.showMoney = !state.showMoney"
|
<text class="tag-badge">现金资产</text>
|
||||||
class="ss-eye-icon"
|
<text class="top-title">账户钱包余额</text>
|
||||||
:class="state.showMoney ? 'cicon-eye' : 'cicon-eye-off'"
|
</view>
|
||||||
></view>
|
<view
|
||||||
</view>
|
class="eye-btn ss-flex ss-col-center"
|
||||||
<view class="ss-flex ss-row-between ss-col-center ss-m-t-64">
|
@tap="state.showMoney = !state.showMoney"
|
||||||
<view class="money-num">{{ state.showMoney ? userInfo.money : '*****' }}</view>
|
>
|
||||||
<button class="ss-reset-button topup-btn" @tap="sheep.$router.go('/pages/pay/recharge')">
|
<text class="eye-btn-text">{{ state.showMoney ? '隐藏金额' : '显示金额' }}</text>
|
||||||
充值
|
<text
|
||||||
</button>
|
class="ss-m-l-6"
|
||||||
</view>
|
:class="state.showMoney ? 'cicon-eye' : 'cicon-eye-off'"
|
||||||
</view>
|
></text>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
<su-sticky>
|
|
||||||
<!-- 统计 -->
|
<!-- 余额核心大字数 -->
|
||||||
<view class="filter-box ss-p-x-30 ss-flex ss-col-center ss-row-between">
|
<view class="money-hero ss-flex ss-col-bottom ss-row-between">
|
||||||
<uni-datetime-picker
|
<view class="hero-left ss-flex ss-col-bottom">
|
||||||
v-model="state.data"
|
<text class="hero-symbol">¥</text>
|
||||||
type="daterange"
|
<text class="hero-num">{{ state.showMoney ? (userInfo.money || '0.00') : '*****' }}</text>
|
||||||
@change="onChangeTime"
|
<text class="hero-unit">元</text>
|
||||||
:end="state.today"
|
</view>
|
||||||
>
|
<button
|
||||||
<button class="ss-reset-button date-btn">
|
class="ss-reset-button topup-btn ss-flex ss-row-center ss-col-center"
|
||||||
<text>{{ dateFilterText }}</text>
|
@tap="sheep.$router.go('/pages/pay/recharge')"
|
||||||
<text class="cicon-drop-down ss-seldate-icon"></text>
|
>
|
||||||
</button>
|
<text class="cicon-moneybag ss-m-r-6"></text>
|
||||||
</uni-datetime-picker>
|
<text>充值</text>
|
||||||
|
</button>
|
||||||
<view class="total-box">
|
</view>
|
||||||
<view class="ss-m-b-10">总收入¥{{ state.pagination.income.toFixed(2) }}</view>
|
|
||||||
<view>总支出¥{{ (-state.pagination.expense).toFixed(2) }}</view>
|
<!-- 动态指示胶囊 -->
|
||||||
</view>
|
<view class="rate-capsule ss-flex ss-row-between ss-col-center">
|
||||||
</view>
|
<view class="capsule-left ss-flex ss-col-center">
|
||||||
<su-tabs
|
<text class="capsule-dot"></text>
|
||||||
:list="tabMaps"
|
<text class="capsule-text">线上充值与消费余额 · 下单直接抵扣</text>
|
||||||
@change="onChange"
|
</view>
|
||||||
:scrollable="false"
|
<text class="capsule-tag">即时可用</text>
|
||||||
:current="state.currentTab"
|
</view>
|
||||||
></su-tabs>
|
|
||||||
</su-sticky>
|
<!-- 底部数据栏:当前周期总收入 / 总支出 -->
|
||||||
<s-empty v-if="state.pagination.total === 0" text="暂无数据" icon="/static/data-empty.png" />
|
<view class="card-footer ss-flex ss-row-between ss-col-center">
|
||||||
<!-- 钱包记录 -->
|
<view class="footer-metric">
|
||||||
<view v-if="state.pagination.total > 0">
|
<text class="metric-label">周期总收入</text>
|
||||||
<view
|
<view class="metric-val-wrap ss-flex ss-col-bottom">
|
||||||
class="wallet-list ss-flex border-bottom"
|
<text class="currency-symbol">¥</text>
|
||||||
v-for="item in state.pagination.data"
|
<text class="metric-val">{{ state.showMoney ? (state.pagination.income || 0).toFixed(2) : '***' }}</text>
|
||||||
:key="item.id"
|
</view>
|
||||||
>
|
</view>
|
||||||
<view class="list-content">
|
<view class="footer-metric">
|
||||||
<view class="title-box ss-flex ss-row-between ss-m-b-20">
|
<text class="metric-label">周期总支出</text>
|
||||||
<text class="title ss-line-1"
|
<view class="metric-val-wrap ss-flex ss-col-bottom">
|
||||||
>{{ item.event_text }}{{ item.memo ? '-' + item.memo : '' }}</text
|
<text class="currency-symbol">¥</text>
|
||||||
>
|
<text class="metric-val">{{ state.showMoney ? (-state.pagination.expense || 0).toFixed(2) : '***' }}</text>
|
||||||
<view class="money">
|
</view>
|
||||||
<text v-if="item.amount >= 0" class="add">+{{ item.amount }}</text>
|
</view>
|
||||||
<text v-else class="minus">{{ item.amount }}</text>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<text class="time">{{ item.createtime }}</text>
|
|
||||||
</view>
|
<!-- 吸顶筛选与 Tabs -->
|
||||||
</view>
|
<su-sticky>
|
||||||
</view>
|
<view class="filter-box ss-p-x-30 ss-flex ss-col-center ss-row-between">
|
||||||
<uni-load-more
|
<uni-datetime-picker
|
||||||
v-if="state.pagination.total > 0"
|
v-model="state.date"
|
||||||
:status="state.loadStatus"
|
type="daterange"
|
||||||
:content-text="{
|
@change="onChangeTime"
|
||||||
contentdown: '上拉加载更多',
|
:end="state.today"
|
||||||
}"
|
>
|
||||||
/>
|
<button class="ss-reset-button date-btn ss-flex ss-col-center">
|
||||||
</s-layout>
|
<text class="cicon-calendar ss-m-r-8"></text>
|
||||||
</template>
|
<text>{{ dateFilterText }}</text>
|
||||||
|
<text class="cicon-drop-down ss-m-l-6"></text>
|
||||||
<script setup>
|
</button>
|
||||||
import { computed, watch, reactive } from 'vue';
|
</uni-datetime-picker>
|
||||||
import { onLoad, onReachBottom } from '@dcloudio/uni-app';
|
|
||||||
import sheep from '@/sheep';
|
<view class="stats-summary ss-flex ss-col-center">
|
||||||
import dayjs from 'dayjs';
|
<view class="stat-tag income ss-m-r-12">
|
||||||
import _ from 'lodash';
|
入 +¥{{ (state.pagination.income || 0).toFixed(2) }}
|
||||||
|
</view>
|
||||||
const headerBg = sheep.$url.css('/assets/addons/shopro/uniapp/user/wallet_card_bg.png');
|
<view class="stat-tag expense">
|
||||||
|
出 -¥{{ (-state.pagination.expense || 0).toFixed(2) }}
|
||||||
const pagination = {
|
</view>
|
||||||
data: [],
|
</view>
|
||||||
current_page: 1,
|
</view>
|
||||||
total: 1,
|
<su-tabs
|
||||||
last_page: 1,
|
:list="tabMaps"
|
||||||
expense: 0,
|
@change="onChange"
|
||||||
income: 0,
|
:scrollable="false"
|
||||||
};
|
:current="state.currentTab"
|
||||||
// 数据
|
></su-tabs>
|
||||||
const state = reactive({
|
</su-sticky>
|
||||||
showMoney: false,
|
|
||||||
date: [],
|
<!-- 列表标题区 -->
|
||||||
currentTab: 0,
|
<view class="section-header ss-flex ss-row-between ss-col-center">
|
||||||
pagination,
|
<view class="section-title-wrap ss-flex ss-col-center">
|
||||||
loadStatus: '',
|
<view class="title-bar"></view>
|
||||||
today: '',
|
<text class="section-title">收支明细</text>
|
||||||
});
|
</view>
|
||||||
|
<text class="section-subtitle">实时流水入账</text>
|
||||||
const tabMaps = [
|
</view>
|
||||||
{
|
|
||||||
name: '全部',
|
<!-- 空状态 -->
|
||||||
value: 'all',
|
<view class="empty-wrap" v-if="state.pagination.total === 0">
|
||||||
},
|
<s-empty text="暂无收支明细" icon="/static/data-empty.png" />
|
||||||
{
|
</view>
|
||||||
name: '收入',
|
|
||||||
value: 'income',
|
<!-- 流水卡片列表 -->
|
||||||
},
|
<view class="list-container" v-if="state.pagination.total > 0">
|
||||||
{
|
<view
|
||||||
name: '支出',
|
class="log-card"
|
||||||
value: 'expense',
|
v-for="item in state.pagination.data"
|
||||||
},
|
:key="item.id"
|
||||||
];
|
>
|
||||||
const userInfo = computed(() => sheep.$store('user').userInfo);
|
<view class="log-top ss-flex ss-row-between ss-col-center">
|
||||||
|
<view class="log-title-box ss-flex ss-col-center">
|
||||||
const dateFilterText = computed(() => {
|
<view
|
||||||
if (state.date[0] === state.date[1]) {
|
class="coin-icon ss-flex ss-row-center ss-col-center"
|
||||||
return state.date[0];
|
:class="item.amount >= 0 ? 'income' : 'expense'"
|
||||||
} else {
|
>
|
||||||
return state.date.join('~');
|
<text :class="item.amount >= 0 ? 'cicon-wallet' : 'cicon-order'"></text>
|
||||||
}
|
</view>
|
||||||
});
|
<view class="log-main-info">
|
||||||
|
<text class="log-title">{{ item.event_text }}{{ item.memo ? ' · ' + item.memo : '' }}</text>
|
||||||
async function getLogList(page = 1, list_rows = 8) {
|
<text class="log-date">{{ item.createtime }}</text>
|
||||||
state.loadStatus = 'loading';
|
</view>
|
||||||
let res = await sheep.$api.user.wallet.log({
|
</view>
|
||||||
type: 'money',
|
<view class="log-amount ss-flex ss-col-center">
|
||||||
tab: tabMaps[state.currentTab].value,
|
<text v-if="item.amount >= 0" class="amount-plus">+</text>
|
||||||
list_rows,
|
<text class="amount-num" :class="item.amount >= 0 ? 'income-num' : 'expense-num'">
|
||||||
page,
|
{{ item.amount }}
|
||||||
date: appendTimeHMS(state.date),
|
</text>
|
||||||
});
|
<text class="amount-unit">元</text>
|
||||||
if (res.code === 1) {
|
</view>
|
||||||
let list = _.concat(state.pagination.data, res.data.list.data);
|
</view>
|
||||||
state.pagination = {
|
</view>
|
||||||
...res.data.list,
|
</view>
|
||||||
data: list,
|
|
||||||
income: res.data.income,
|
<!-- 加载更多 -->
|
||||||
expense: res.data.expense,
|
<uni-load-more
|
||||||
};
|
v-if="state.pagination.total > 0"
|
||||||
if (state.pagination.current_page < state.pagination.last_page) {
|
:status="state.loadStatus"
|
||||||
state.loadStatus = 'more';
|
:content-text="{
|
||||||
} else {
|
contentdown: '上拉加载更多',
|
||||||
state.loadStatus = 'noMore';
|
}"
|
||||||
}
|
/>
|
||||||
}
|
</s-layout>
|
||||||
}
|
</template>
|
||||||
onLoad(async (options) => {
|
|
||||||
state.today = dayjs().format('YYYY-MM-DD');
|
<script setup>
|
||||||
state.date = [state.today, state.today];
|
import { computed, reactive } from 'vue';
|
||||||
getLogList();
|
import { onLoad, onPullDownRefresh, onReachBottom } from '@dcloudio/uni-app';
|
||||||
});
|
import sheep from '@/sheep';
|
||||||
|
import dayjs from 'dayjs';
|
||||||
function onChange(e) {
|
import _ from 'lodash';
|
||||||
state.pagination = pagination;
|
|
||||||
state.currentTab = e.index;
|
const pagination = {
|
||||||
getLogList();
|
data: [],
|
||||||
}
|
current_page: 1,
|
||||||
|
total: 1,
|
||||||
function onChangeTime(e) {
|
last_page: 1,
|
||||||
state.date[0] = e[0];
|
expense: 0,
|
||||||
state.date[1] = e[e.length - 1];
|
income: 0,
|
||||||
state.pagination = pagination;
|
};
|
||||||
getLogList();
|
|
||||||
}
|
const state = reactive({
|
||||||
|
showMoney: true,
|
||||||
function appendTimeHMS(arr) {
|
date: [],
|
||||||
return [arr[0] + ' 00:00:00', arr[1] + ' 23:59:59'];
|
currentTab: 0,
|
||||||
}
|
pagination,
|
||||||
|
loadStatus: '',
|
||||||
onReachBottom(() => {
|
today: '',
|
||||||
if (state.loadStatus !== 'noMore') {
|
});
|
||||||
getLogList(state.pagination.current_page + 1);
|
|
||||||
}
|
const tabMaps = [
|
||||||
});
|
{
|
||||||
</script>
|
name: '全部',
|
||||||
|
value: 'all',
|
||||||
<style lang="scss" scoped>
|
},
|
||||||
// 钱包
|
{
|
||||||
.header-box {
|
name: '收入',
|
||||||
background-color: $white;
|
value: 'income',
|
||||||
padding: 30rpx;
|
},
|
||||||
|
{
|
||||||
.card-box {
|
name: '支出',
|
||||||
width: 100%;
|
value: 'expense',
|
||||||
min-height: 300rpx;
|
},
|
||||||
padding: 40rpx;
|
];
|
||||||
background-size: 100% 100%;
|
|
||||||
border-radius: 30rpx;
|
const userInfo = computed(() => sheep.$store('user').userInfo || {});
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
const dateFilterText = computed(() => {
|
||||||
z-index: 1;
|
if (!state.date || state.date.length === 0) return '选择日期';
|
||||||
box-sizing: border-box;
|
if (state.date[0] === state.date[1]) {
|
||||||
|
return state.date[0];
|
||||||
&::after {
|
} else {
|
||||||
content: '';
|
return `${state.date[0]} ~ ${state.date[1]}`;
|
||||||
display: block;
|
}
|
||||||
width: 100%;
|
});
|
||||||
height: 100%;
|
|
||||||
z-index: 2;
|
async function getLogList(page = 1, list_rows = 10) {
|
||||||
position: absolute;
|
state.loadStatus = 'loading';
|
||||||
top: 0;
|
try {
|
||||||
left: 0;
|
const res = await sheep.$api.user.wallet.log({
|
||||||
background: v-bind(headerBg) no-repeat;
|
type: 'money',
|
||||||
pointer-events: none;
|
tab: tabMaps[state.currentTab].value,
|
||||||
}
|
list_rows,
|
||||||
|
page,
|
||||||
.card-head {
|
date: appendTimeHMS(state.date),
|
||||||
color: $white;
|
});
|
||||||
font-size: 30rpx;
|
if (res?.code === 1) {
|
||||||
}
|
const list = page === 1 ? res.data.list.data : _.concat(state.pagination.data, res.data.list.data);
|
||||||
|
state.pagination = {
|
||||||
.ss-eye-icon {
|
...res.data.list,
|
||||||
font-size: 40rpx;
|
data: list,
|
||||||
color: $white;
|
income: res.data.income || 0,
|
||||||
}
|
expense: res.data.expense || 0,
|
||||||
|
};
|
||||||
.money-num {
|
state.loadStatus = state.pagination.current_page < state.pagination.last_page ? 'more' : 'noMore';
|
||||||
font-size: 70rpx;
|
return;
|
||||||
line-height: 70rpx;
|
}
|
||||||
font-weight: 500;
|
} catch (e) {}
|
||||||
color: $white;
|
state.loadStatus = 'noMore';
|
||||||
font-family: OPPOSANS;
|
}
|
||||||
}
|
|
||||||
|
onLoad(async () => {
|
||||||
.reduce-num {
|
state.today = dayjs().format('YYYY-MM-DD');
|
||||||
font-size: 26rpx;
|
state.date = [state.today, state.today];
|
||||||
font-weight: 400;
|
sheep.$store('user').getInfo();
|
||||||
color: $white;
|
getLogList(1);
|
||||||
}
|
});
|
||||||
|
|
||||||
.topup-btn {
|
onPullDownRefresh(async () => {
|
||||||
width: 120rpx;
|
await sheep.$store('user').getInfo();
|
||||||
height: 60rpx;
|
await getLogList(1);
|
||||||
line-height: 60rpx;
|
uni.stopPullDownRefresh();
|
||||||
border-radius: 30px;
|
});
|
||||||
font-size: 26rpx;
|
|
||||||
font-weight: 500;
|
function onChange(e) {
|
||||||
background-color: $white;
|
state.pagination = { ...pagination, data: [] };
|
||||||
color: var(--ui-BG-Main);
|
state.currentTab = e.index;
|
||||||
}
|
getLogList(1);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
function onChangeTime(e) {
|
||||||
// 筛选
|
state.date[0] = e[0];
|
||||||
|
state.date[1] = e[e.length - 1];
|
||||||
.filter-box {
|
state.pagination = { ...pagination, data: [] };
|
||||||
height: 114rpx;
|
getLogList(1);
|
||||||
background-color: $bg-page;
|
}
|
||||||
|
|
||||||
.total-box {
|
function appendTimeHMS(arr) {
|
||||||
font-size: 24rpx;
|
if (!arr || arr.length < 2) return undefined;
|
||||||
font-weight: 500;
|
return [`${arr[0]} 00:00:00`, `${arr[1]} 23:59:59`];
|
||||||
color: $dark-9;
|
}
|
||||||
}
|
|
||||||
|
onReachBottom(() => {
|
||||||
.date-btn {
|
if (state.loadStatus !== 'noMore') {
|
||||||
background-color: $white;
|
getLogList(state.pagination.current_page + 1);
|
||||||
line-height: 54rpx;
|
}
|
||||||
border-radius: 27rpx;
|
});
|
||||||
padding: 0 20rpx;
|
</script>
|
||||||
font-size: 24rpx;
|
|
||||||
font-weight: 500;
|
<style lang="scss" scoped>
|
||||||
color: $dark-6;
|
.money-wrap {
|
||||||
|
min-height: 100vh;
|
||||||
.ss-seldate-icon {
|
background-color: #f7f8fa;
|
||||||
font-size: 50rpx;
|
}
|
||||||
color: $dark-9;
|
|
||||||
}
|
/* 顶部资产区域 */
|
||||||
}
|
.header-box {
|
||||||
}
|
padding: 24rpx 30rpx 10rpx;
|
||||||
|
|
||||||
.tabs-box {
|
.asset-card {
|
||||||
background: $white;
|
width: 100%;
|
||||||
border-bottom: 2rpx solid #eeeeee;
|
box-sizing: border-box;
|
||||||
}
|
padding: 36rpx 32rpx 30rpx;
|
||||||
|
border-radius: 28rpx;
|
||||||
// tab
|
background: linear-gradient(138deg, #20222a 0%, #15161a 52%, #2c2419 100%);
|
||||||
.wallet-tab-card {
|
box-shadow: 0 16rpx 36rpx rgba(18, 19, 23, 0.18), inset 0 1rpx 0 rgba(247, 219, 168, 0.28);
|
||||||
.tab-item {
|
border: 1rpx solid rgba(235, 197, 131, 0.26);
|
||||||
height: 80rpx;
|
position: relative;
|
||||||
position: relative;
|
overflow: hidden;
|
||||||
|
|
||||||
.tab-title {
|
&::before {
|
||||||
font-size: 30rpx;
|
content: '';
|
||||||
}
|
position: absolute;
|
||||||
|
right: -60rpx;
|
||||||
.cur-tab-title {
|
top: -60rpx;
|
||||||
font-weight: $font-weight-bold;
|
width: 240rpx;
|
||||||
}
|
height: 240rpx;
|
||||||
|
background: radial-gradient(circle, rgba(235, 197, 131, 0.16) 0%, rgba(235, 197, 131, 0) 70%);
|
||||||
.tab-line {
|
border-radius: 50%;
|
||||||
width: 60rpx;
|
pointer-events: none;
|
||||||
height: 6rpx;
|
}
|
||||||
border-radius: 6rpx;
|
|
||||||
position: absolute;
|
.card-top {
|
||||||
left: 50%;
|
position: relative;
|
||||||
transform: translateX(-50%);
|
z-index: 2;
|
||||||
bottom: 2rpx;
|
|
||||||
background-color: var(--ui-BG-Main);
|
.top-tag {
|
||||||
}
|
.tag-badge {
|
||||||
}
|
font-size: 20rpx;
|
||||||
}
|
color: #2a2012;
|
||||||
|
background: linear-gradient(90deg, #f7dfa6 0%, #e2be78 100%);
|
||||||
// 钱包记录
|
padding: 4rpx 14rpx;
|
||||||
.wallet-list {
|
border-radius: 8rpx;
|
||||||
padding: 30rpx;
|
font-weight: 600;
|
||||||
background-color: #ffff;
|
margin-right: 12rpx;
|
||||||
|
}
|
||||||
.head-img {
|
|
||||||
width: 70rpx;
|
.top-title {
|
||||||
height: 70rpx;
|
font-size: 26rpx;
|
||||||
border-radius: 50%;
|
color: rgba(255, 255, 255, 0.85);
|
||||||
background: $gray-c;
|
font-weight: 400;
|
||||||
}
|
letter-spacing: 1rpx;
|
||||||
|
}
|
||||||
.list-content {
|
}
|
||||||
justify-content: space-between;
|
|
||||||
align-items: flex-start;
|
.eye-btn {
|
||||||
flex: 1;
|
padding: 6rpx 18rpx;
|
||||||
|
background: rgba(255, 255, 255, 0.08);
|
||||||
.title {
|
border: 1rpx solid rgba(235, 197, 131, 0.3);
|
||||||
font-size: 28rpx;
|
border-radius: 24rpx;
|
||||||
color: $dark-3;
|
|
||||||
width: 400rpx;
|
.eye-btn-text {
|
||||||
}
|
font-size: 22rpx;
|
||||||
|
color: #f2cf8f;
|
||||||
.time {
|
}
|
||||||
color: $gray-c;
|
|
||||||
font-size: 22rpx;
|
.cicon-eye,
|
||||||
}
|
.cicon-eye-off {
|
||||||
}
|
font-size: 24rpx;
|
||||||
|
color: #f2cf8f;
|
||||||
.money {
|
}
|
||||||
font-size: 28rpx;
|
}
|
||||||
font-weight: bold;
|
}
|
||||||
font-family: OPPOSANS;
|
|
||||||
.add {
|
/* 核心数值展示 */
|
||||||
color: var(--ui-BG-Main);
|
.money-hero {
|
||||||
}
|
margin-top: 24rpx;
|
||||||
|
position: relative;
|
||||||
.minus {
|
z-index: 2;
|
||||||
color: $dark-3;
|
|
||||||
}
|
.hero-left {
|
||||||
}
|
.hero-symbol {
|
||||||
}
|
font-size: 36rpx;
|
||||||
</style>
|
font-weight: 700;
|
||||||
|
color: #ffffff;
|
||||||
|
margin-right: 6rpx;
|
||||||
|
margin-bottom: 6rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-num {
|
||||||
|
font-size: 64rpx;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #ffffff;
|
||||||
|
line-height: 1.1;
|
||||||
|
font-family: OPPOSANS, DIN, -apple-system, sans-serif;
|
||||||
|
letter-spacing: 1rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-unit {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #f4d397;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-left: 12rpx;
|
||||||
|
margin-bottom: 6rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.topup-btn {
|
||||||
|
height: 56rpx;
|
||||||
|
padding: 0 28rpx;
|
||||||
|
background: linear-gradient(90deg, #f7dfa6 0%, #e2be78 100%);
|
||||||
|
border-radius: 28rpx;
|
||||||
|
color: #3b2b10;
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
box-shadow: 0 6rpx 16rpx rgba(226, 190, 120, 0.28);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 胶囊指示栏 */
|
||||||
|
.rate-capsule {
|
||||||
|
margin-top: 24rpx;
|
||||||
|
background: rgba(244, 211, 151, 0.1);
|
||||||
|
border: 1rpx solid rgba(244, 211, 151, 0.22);
|
||||||
|
border-radius: 12rpx;
|
||||||
|
padding: 14rpx 20rpx;
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
|
||||||
|
.capsule-left {
|
||||||
|
.capsule-dot {
|
||||||
|
width: 10rpx;
|
||||||
|
height: 10rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: #eabf76;
|
||||||
|
margin-right: 12rpx;
|
||||||
|
box-shadow: 0 0 8rpx #eabf76;
|
||||||
|
}
|
||||||
|
|
||||||
|
.capsule-text {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #fce8bf;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.capsule-tag {
|
||||||
|
font-size: 20rpx;
|
||||||
|
color: #f7d598;
|
||||||
|
opacity: 0.85;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 底部收支汇总栏 */
|
||||||
|
.card-footer {
|
||||||
|
margin-top: 26rpx;
|
||||||
|
padding-top: 22rpx;
|
||||||
|
border-top: 1rpx solid rgba(255, 255, 255, 0.08);
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
|
||||||
|
.footer-metric {
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
|
.metric-label {
|
||||||
|
font-size: 22rpx;
|
||||||
|
color: rgba(255, 255, 255, 0.55);
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 6rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-val-wrap {
|
||||||
|
.currency-symbol {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #f4d397;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-right: 2rpx;
|
||||||
|
margin-bottom: 2rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-val {
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #f4d397;
|
||||||
|
font-family: OPPOSANS, DIN, -apple-system, sans-serif;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 筛选区域 */
|
||||||
|
.filter-box {
|
||||||
|
height: 104rpx;
|
||||||
|
background-color: #ffffff;
|
||||||
|
border-bottom: 1rpx solid #f1f2f5;
|
||||||
|
|
||||||
|
.date-btn {
|
||||||
|
background-color: #f7f8fa;
|
||||||
|
height: 60rpx;
|
||||||
|
line-height: 60rpx;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
padding: 0 24rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #374151;
|
||||||
|
font-weight: 500;
|
||||||
|
|
||||||
|
.cicon-calendar {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #9ca3af;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cicon-drop-down {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #9ca3af;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats-summary {
|
||||||
|
.stat-tag {
|
||||||
|
font-size: 22rpx;
|
||||||
|
font-family: OPPOSANS;
|
||||||
|
padding: 4rpx 14rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
|
||||||
|
&.income {
|
||||||
|
background-color: #e6f9f0;
|
||||||
|
color: #10b981;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.expense {
|
||||||
|
background-color: #fef2f2;
|
||||||
|
color: #ef4444;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 列表标题区 */
|
||||||
|
.section-header {
|
||||||
|
padding: 30rpx 32rpx 16rpx;
|
||||||
|
|
||||||
|
.section-title-wrap {
|
||||||
|
.title-bar {
|
||||||
|
width: 6rpx;
|
||||||
|
height: 28rpx;
|
||||||
|
border-radius: 4rpx;
|
||||||
|
background: linear-gradient(180deg, #dfb775 0%, #ba8938 100%);
|
||||||
|
margin-right: 14rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #22252a;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-subtitle {
|
||||||
|
font-size: 22rpx;
|
||||||
|
color: #999ea6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-wrap {
|
||||||
|
padding: 60rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 卡片流列表 */
|
||||||
|
.list-container {
|
||||||
|
padding: 0 30rpx 20rpx;
|
||||||
|
|
||||||
|
.log-card {
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
padding: 26rpx 28rpx;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
box-shadow: 0 4rpx 16rpx rgba(35, 42, 60, 0.04);
|
||||||
|
border: 1rpx solid #f0f1f5;
|
||||||
|
|
||||||
|
.log-top {
|
||||||
|
.log-title-box {
|
||||||
|
.coin-icon {
|
||||||
|
width: 64rpx;
|
||||||
|
height: 64rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin-right: 18rpx;
|
||||||
|
|
||||||
|
&.income {
|
||||||
|
background: linear-gradient(135deg, #e6f9f0 0%, #c9f4de 100%);
|
||||||
|
.cicon-wallet {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #10b981;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.expense {
|
||||||
|
background: linear-gradient(135deg, #fef2f2 0%, #fde2e2 100%);
|
||||||
|
.cicon-order {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #ef4444;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.log-main-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
.log-title {
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #23272e;
|
||||||
|
margin-bottom: 6rpx;
|
||||||
|
max-width: 380rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.log-date {
|
||||||
|
font-size: 22rpx;
|
||||||
|
color: #9ea4af;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.log-amount {
|
||||||
|
.amount-plus {
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #b58028;
|
||||||
|
margin-right: 2rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.amount-num {
|
||||||
|
font-size: 34rpx;
|
||||||
|
font-weight: 700;
|
||||||
|
font-family: OPPOSANS, DIN, -apple-system, sans-serif;
|
||||||
|
|
||||||
|
&.income-num {
|
||||||
|
color: #b58028;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.expense-num {
|
||||||
|
color: #1f2937;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.amount-unit {
|
||||||
|
font-size: 22rpx;
|
||||||
|
color: #6b7280;
|
||||||
|
margin-left: 4rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户