第一次上传
This commit is contained in:
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../common/vendor.js"),t=require("../../../utils/store.js");Math||o();const o=()=>"../../../components/SectionCard.js",r={__name:"index",setup(o){const r=t.useAppStore();e.onShow((()=>{!function(){let t=null;e.wx$1.createInterstitialAd&&(t=e.wx$1.createInterstitialAd({adUnitId:"adunit-0abc32053b19a4e9"}),t.onLoad((()=>{})),t.onError((e=>{console.error("插屏广告加载失败",e)})),t.onClose((()=>{})));setTimeout((()=>{t&&t.show().catch((e=>{console.error("插屏广告显示失败",e)}))}),2280)}()}));const s=e.computed((()=>"dark"===r.state.settings.theme?"theme-dark":""));return(t,o)=>({a:e.p({title:"关于应用",subtitle:"面向日常收支记录、预算控制与月度复盘的轻量工具"}),b:e.p({title:"隐私与数据",subtitle:""}),c:e.n(s.value)})}},s=e._export_sfc(r,[["__scopeId","data-v-5d1e9385"]]);wx.createPage(s);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "关于与隐私",
|
||||
"usingComponents": {
|
||||
"section-card": "../../../components/SectionCard"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['app-page', 'data-v-5d1e9385', c]}}"><view class="surface-card page-hero data-v-5d1e9385"><text class="hero-kicker data-v-5d1e9385">ABOUT</text><text class="hero-title data-v-5d1e9385">关于与隐私</text><text class="hero-desc data-v-5d1e9385">查看应用定位、数据说明与发布前应补齐的正式信息。</text><view class="hero-tags data-v-5d1e9385"><text class="hero-tag soft data-v-5d1e9385">发布说明</text></view></view><ad-custom class="data-v-5d1e9385" unit-id="adunit-64707ea333329399"></ad-custom><section-card wx:if="{{a}}" class="data-v-5d1e9385" u-s="{{['d']}}" u-i="5d1e9385-0" bind:__l="__l" u-p="{{a}}"><view class="about-card surface-strong data-v-5d1e9385"><text class="app-name data-v-5d1e9385">账单小管家</text><text class="about-text data-v-5d1e9385">定位为轻量、无广告的本地记账工具,适合学生、情侣、合租和个人日常记账场景。</text></view></section-card><section-card wx:if="{{b}}" class="data-v-5d1e9385" u-s="{{['d']}}" u-i="5d1e9385-1" bind:__l="__l" u-p="{{b}}"><view class="info-list data-v-5d1e9385"><view class="info-item surface-strong data-v-5d1e9385"><text class="info-title data-v-5d1e9385">本地存储</text><text class="info-text data-v-5d1e9385">账单、预算、分类、账户和设置默认保存在当前设备本地。</text></view><view class="info-item surface-strong data-v-5d1e9385"><text class="info-title data-v-5d1e9385">本地昵称</text><text class="info-text data-v-5d1e9385">昵称仅保存在当前设备,用于个人页展示和首字头像。</text></view><view class="info-item surface-strong data-v-5d1e9385"><text class="info-title data-v-5d1e9385">数据迁移</text><text class="info-text data-v-5d1e9385">如需换机迁移,可在“备份与恢复”中导出 JSON 并在新设备恢复。</text></view></view></section-card></view>
|
||||
@@ -0,0 +1 @@
|
||||
.page-hero.data-v-5d1e9385{padding:30rpx;background:linear-gradient(145deg,rgba(16,42,67,.96),rgba(31,111,95,.88) 60%,rgba(212,108,67,.82));color:#fff}.hero-kicker.data-v-5d1e9385,.hero-desc.data-v-5d1e9385,.hero-tag.soft.data-v-5d1e9385{color:rgba(255,255,255,.76)}.hero-kicker.data-v-5d1e9385{font-size:20rpx;letter-spacing:4rpx}.hero-title.data-v-5d1e9385{display:block;margin-top:12rpx;font-size:44rpx;font-weight:700}.hero-desc.data-v-5d1e9385{display:block;margin-top:14rpx;font-size:24rpx;line-height:1.7}.hero-tags.data-v-5d1e9385{display:flex;flex-wrap:wrap;gap:14rpx;margin-top:22rpx}.hero-tag.data-v-5d1e9385{padding:12rpx 18rpx;border-radius:999rpx;background:rgba(255,255,255,.16);font-size:22rpx}.about-card.data-v-5d1e9385,.info-item.data-v-5d1e9385,.tips-card.data-v-5d1e9385{padding:26rpx;border-radius:28rpx}.app-name.data-v-5d1e9385,.info-title.data-v-5d1e9385{display:block;font-size:31rpx;font-weight:700;color:var(--text-primary)}.app-version.data-v-5d1e9385{display:block;margin-top:10rpx;font-size:23rpx;color:var(--brand)}.about-text.data-v-5d1e9385,.info-text.data-v-5d1e9385,.tip-line.data-v-5d1e9385{display:block;margin-top:12rpx;font-size:24rpx;line-height:1.8;color:var(--text-secondary)}.info-list.data-v-5d1e9385{display:flex;flex-direction:column;gap:16rpx}.tip-row.data-v-5d1e9385{display:flex;align-items:flex-start;gap:16rpx;padding:10rpx 0}.tip-index.data-v-5d1e9385{width:56rpx;font-size:24rpx;font-weight:700;color:var(--brand)}
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const t=require("../../../common/vendor.js"),e=require("../../../utils/store.js");Math||a();const a=()=>"../../../components/SectionCard.js",n={__name:"index",setup(a){const n=e.useAppStore(),o=t.ref(""),s=t.computed((()=>"dark"===n.state.settings.theme?"theme-dark":""));function i(){!function(e){const a=(new Date).toLocaleString();if(void 0!==t.wx$1&&t.wx$1.getFileSystemManager){const o=`${t.wx$1.env.USER_DATA_PATH}/bill-helper-backup.json`;t.wx$1.getFileSystemManager().writeFile({filePath:o,data:e,encoding:"utf8",success:()=>{n.markBackup(a),t.index.showModal({title:"备份成功",content:`文件已生成:${o}`,showCancel:!1})},fail:()=>{t.index.setClipboardData({data:e})}})}else n.markBackup(a),t.index.setClipboardData({data:e})}(n.exportBackup())}function l(){if(o.value.trim())try{n.importBackup(o.value),o.value="",t.index.showToast({title:"备份恢复成功",icon:"none"})}catch(e){t.index.showToast({title:"备份内容无效",icon:"none"})}else t.index.showToast({title:"请先粘贴备份内容",icon:"none"})}function c(){t.index.setClipboardData({data:n.exportBackup()})}function r(){t.index.showModal({title:"清空全部数据",content:"确认删除当前设备中的账单、预算和设置吗?此操作不可撤销。",success:({confirm:e})=>{e&&(n.resetAll(),t.index.showToast({title:"本地数据已清空",icon:"none"}))}})}return t.onShow((()=>{!function(){let e=null;t.wx$1.createInterstitialAd&&(e=t.wx$1.createInterstitialAd({adUnitId:"adunit-0abc32053b19a4e9"}),e.onLoad((()=>{})),e.onError((t=>{console.error("插屏广告加载失败",t)})),e.onClose((()=>{})));setTimeout((()=>{e&&e.show().catch((t=>{console.error("插屏广告显示失败",t)}))}),2280)}()})),(e,a)=>t.e({a:t.t(t.unref(n).state.settings.lastBackupAt?"最近已备份":"尚未备份"),b:t.t(t.unref(n).state.settings.lastBackupAt?"可继续备份":"建议先备份"),c:t.o(i),d:t.unref(n).state.settings.lastBackupAt},t.unref(n).state.settings.lastBackupAt?{e:t.t(t.unref(n).state.settings.lastBackupAt)}:{},{f:t.p({title:"导出备份",subtitle:"将账单、预算和设置导出为 JSON 文件,便于迁移设备或手动保存"}),g:o.value,h:t.o((t=>o.value=t.detail.value)),i:t.o((t=>o.value="")),j:t.o(l),k:t.p({title:"恢复备份",subtitle:"粘贴之前导出的 JSON 内容,恢复后将覆盖当前设备数据"}),l:t.o(c),m:t.o(r),n:t.p({title:"数据操作",subtitle:"谨慎执行不可撤销的本地清理操作"}),o:t.n(s.value)})}},o=t._export_sfc(n,[["__scopeId","data-v-15765fe6"]]);wx.createPage(o);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "备份与恢复",
|
||||
"usingComponents": {
|
||||
"section-card": "../../../components/SectionCard"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['app-page', 'data-v-15765fe6', o]}}"><view class="surface-card page-hero data-v-15765fe6"><text class="hero-kicker data-v-15765fe6">BACKUP</text><text class="hero-title data-v-15765fe6">备份与恢复</text><text class="hero-desc data-v-15765fe6">导出本地 JSON 备份,恢复时覆盖当前设备数据,适合换机或手动留档。</text><view class="hero-tags data-v-15765fe6"><text class="hero-tag data-v-15765fe6">本地文件</text><text class="hero-tag soft data-v-15765fe6">{{a}}</text></view></view><ad-custom class="data-v-15765fe6" unit-id="adunit-64707ea333329399"></ad-custom><section-card wx:if="{{f}}" class="data-v-15765fe6" u-s="{{['d']}}" u-i="15765fe6-0" bind:__l="__l" u-p="{{f}}"><view class="hero-panel surface-strong data-v-15765fe6"><view class="data-v-15765fe6"><text class="panel-title data-v-15765fe6">安全备份当前数据</text><text class="panel-desc data-v-15765fe6">所有数据均为本地文件,不会自动上传服务器。</text></view><view class="status-chip data-v-15765fe6">{{b}}</view></view><view class="action-row single-row data-v-15765fe6"><view class="primary-button data-v-15765fe6" bindtap="{{c}}">导出备份</view></view><text wx:if="{{d}}" class="tiny-text info-line data-v-15765fe6">最近备份:{{e}}</text></section-card><section-card wx:if="{{k}}" class="data-v-15765fe6" u-s="{{['d']}}" u-i="15765fe6-1" bind:__l="__l" u-p="{{k}}"><view class="input-shell textarea-shell data-v-15765fe6"><block wx:if="{{r0}}"><textarea class="data-v-15765fe6" placeholder="请粘贴备份 JSON" value="{{g}}" bindinput="{{h}}"></textarea></block></view><view class="action-row data-v-15765fe6"><view class="ghost-button data-v-15765fe6" bindtap="{{i}}">清空内容</view><view class="primary-button data-v-15765fe6" bindtap="{{j}}">开始恢复</view></view></section-card><section-card wx:if="{{n}}" class="data-v-15765fe6" u-s="{{['d']}}" u-i="15765fe6-2" bind:__l="__l" u-p="{{n}}"><view class="menu-list data-v-15765fe6"><view class="menu-item surface-strong data-v-15765fe6" bindtap="{{l}}"><view class="data-v-15765fe6"><text class="menu-title data-v-15765fe6">复制备份内容</text></view><text class="status-chip data-v-15765fe6">复制</text></view><view class="menu-item surface-strong danger-shell data-v-15765fe6" bindtap="{{m}}"><view class="data-v-15765fe6"><text class="menu-title negative data-v-15765fe6">清空全部数据</text></view><text class="danger-text data-v-15765fe6">执行</text></view></view></section-card></view>
|
||||
@@ -0,0 +1 @@
|
||||
.page-hero.data-v-15765fe6{padding:30rpx;background:linear-gradient(145deg,rgba(16,42,67,.96),rgba(61,102,178,.92));color:#fff}.hero-kicker.data-v-15765fe6,.hero-desc.data-v-15765fe6,.hero-tag.soft.data-v-15765fe6{color:rgba(255,255,255,.76)}.hero-kicker.data-v-15765fe6{font-size:20rpx;letter-spacing:4rpx}.hero-title.data-v-15765fe6{display:block;margin-top:12rpx;font-size:44rpx;font-weight:700}.hero-desc.data-v-15765fe6{display:block;margin-top:14rpx;font-size:24rpx;line-height:1.7}.hero-tags.data-v-15765fe6{display:flex;flex-wrap:wrap;gap:14rpx;margin-top:22rpx}.hero-tag.data-v-15765fe6,.status-chip.data-v-15765fe6{padding:12rpx 18rpx;border-radius:999rpx;background:rgba(255,255,255,.16);font-size:22rpx}.hero-panel.data-v-15765fe6,.menu-item.data-v-15765fe6,.action-row.data-v-15765fe6{display:flex;align-items:center;gap:16rpx}.hero-panel.data-v-15765fe6,.menu-item.data-v-15765fe6{padding:26rpx;border-radius:28rpx}.hero-panel.data-v-15765fe6{justify-content:space-between}.panel-title.data-v-15765fe6,.menu-title.data-v-15765fe6{display:block;font-size:31rpx;font-weight:700;color:var(--text-primary)}.panel-desc.data-v-15765fe6,.status-chip.data-v-15765fe6{background:var(--brand-soft);color:var(--brand)}.action-row.data-v-15765fe6{margin-top:18rpx}.single-row .primary-button.data-v-15765fe6,.action-row .ghost-button.data-v-15765fe6,.action-row .primary-button.data-v-15765fe6{flex:1}.info-line.data-v-15765fe6{display:block;margin-top:16rpx}.textarea-shell.data-v-15765fe6{align-items:flex-start;min-height:280rpx;padding:20rpx 24rpx}.textarea-shell textarea.data-v-15765fe6{min-height:240rpx}.menu-list.data-v-15765fe6{display:flex;flex-direction:column;gap:16rpx}.menu-item.data-v-15765fe6{justify-content:space-between}.danger-shell.data-v-15765fe6{border:1rpx solid rgba(210,85,67,.12)}.danger-text.data-v-15765fe6{font-size:24rpx;color:var(--danger)}
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../common/vendor.js"),t=require("../../../utils/store.js");Math||i();const i=()=>"../../../components/SectionCard.js",n={__name:"index",setup(i){const n=t.useAppStore(),s=e.computed((()=>"dark"===n.state.settings.theme?"theme-dark":"")),o=[{index:"01",title:"先设置月预算",desc:"进入预算页设置总预算与分类预算,首页会同步显示剩余额度。"},{index:"02",title:"用首页快捷记账",desc:"首页支持支出/收入快速录入,也能通过常用分类一键记账。"},{index:"03",title:"到账单页做筛选",desc:"账单页支持按月份、账户、金额区间和关键词精确筛选。"},{index:"04",title:"每月查看报表",desc:"报表页可导出 CSV,并查看支出结构、近 7 日趋势和月度对比。"}],a=[{q:"账单数据保存在哪里?",a:"默认仅保存在当前设备的本地存储中,不会自动上传云端。"},{q:"换手机后如何迁移?",a:"先进入“备份与恢复”导出 JSON 备份,再在新设备粘贴恢复。"},{q:"为什么预算进度显示超出 100%?",a:"这代表本月支出已经超过预算,条形进度会封顶,但文字会继续显示真实比例。"},{q:"昵称可以怎么修改?",a:"进入“我的-账户资料”后可直接修改本地昵称,留空时默认显示为“用户”。"}];function d(t){e.index.navigateTo({url:t})}return e.onShow((()=>{!function(){let t=null;e.wx$1.createInterstitialAd&&(t=e.wx$1.createInterstitialAd({adUnitId:"adunit-0abc32053b19a4e9"}),t.onLoad((()=>{})),t.onError((e=>{console.error("插屏广告加载失败",e)})),t.onClose((()=>{})));setTimeout((()=>{t&&t.show().catch((e=>{console.error("插屏广告显示失败",e)}))}),2280)}()})),(t,i)=>({a:e.f(o,((t,i,n)=>({a:e.t(t.index),b:e.t(t.title),c:e.t(t.desc),d:t.title}))),b:e.p({title:"快速上手",subtitle:"初次使用建议先完成下面 4 个动作"}),c:e.f(a,((t,i,n)=>({a:e.t(t.q),b:e.t(t.a),c:t.q}))),d:e.p({title:"常见问题",subtitle:""}),e:e.o((e=>d("/pages/home/index"))),f:e.o((e=>d("/pages/budget/index"))),g:e.o((e=>d("/pages/stats/index"))),h:e.o((e=>d("/pages/mine/backup/index"))),i:e.p({title:"功能入口",subtitle:"需要操作时可直接跳转到对应模块"}),j:e.n(s.value)})}},s=e._export_sfc(n,[["__scopeId","data-v-7f3520d8"]]);wx.createPage(s);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "使用帮助",
|
||||
"usingComponents": {
|
||||
"section-card": "../../../components/SectionCard"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['app-page', 'data-v-7f3520d8', j]}}"><view class="surface-card page-hero data-v-7f3520d8"><text class="hero-kicker data-v-7f3520d8">GUIDE</text><text class="hero-title data-v-7f3520d8">使用帮助</text><text class="hero-desc data-v-7f3520d8">通过上手步骤、常见问题和快捷入口,快速熟悉整个记账流程。</text><view class="hero-tags data-v-7f3520d8"><text class="hero-tag data-v-7f3520d8">4 个步骤</text><text class="hero-tag soft data-v-7f3520d8">FAQ 指南</text></view></view><ad-custom class="data-v-7f3520d8" unit-id="adunit-64707ea333329399"></ad-custom><section-card wx:if="{{b}}" class="data-v-7f3520d8" u-s="{{['d']}}" u-i="7f3520d8-0" bind:__l="__l" u-p="{{b}}"><view class="step-list data-v-7f3520d8"><view wx:for="{{a}}" wx:for-item="item" wx:key="d" class="step-item surface-strong data-v-7f3520d8"><text class="step-index data-v-7f3520d8">{{item.a}}</text><view class="step-body data-v-7f3520d8"><text class="step-title data-v-7f3520d8">{{item.b}}</text><text class="step-desc data-v-7f3520d8">{{item.c}}</text></view></view></view></section-card><section-card wx:if="{{d}}" class="data-v-7f3520d8" u-s="{{['d']}}" u-i="7f3520d8-1" bind:__l="__l" u-p="{{d}}"><view class="faq-list data-v-7f3520d8"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" class="faq-item surface-strong data-v-7f3520d8"><text class="faq-question data-v-7f3520d8">{{item.a}}</text><text class="faq-answer data-v-7f3520d8">{{item.b}}</text></view></view></section-card><section-card wx:if="{{i}}" class="data-v-7f3520d8" u-s="{{['d']}}" u-i="7f3520d8-2" bind:__l="__l" u-p="{{i}}"><view class="entry-grid data-v-7f3520d8"><view class="entry-item surface-strong data-v-7f3520d8" bindtap="{{e}}"><text class="entry-title data-v-7f3520d8">首页记账</text></view><view class="entry-item surface-strong data-v-7f3520d8" bindtap="{{f}}"><text class="entry-title data-v-7f3520d8">预算设置</text></view><view class="entry-item surface-strong data-v-7f3520d8" bindtap="{{g}}"><text class="entry-title data-v-7f3520d8">查看报表</text></view><view class="entry-item surface-strong data-v-7f3520d8" bindtap="{{h}}"><text class="entry-title data-v-7f3520d8">备份恢复</text></view></view></section-card></view>
|
||||
@@ -0,0 +1 @@
|
||||
.page-hero.data-v-7f3520d8{padding:30rpx;background:linear-gradient(145deg,rgba(16,42,67,.96),rgba(127,86,217,.9));color:#fff}.hero-kicker.data-v-7f3520d8,.hero-desc.data-v-7f3520d8,.hero-tag.soft.data-v-7f3520d8{color:rgba(255,255,255,.76)}.hero-kicker.data-v-7f3520d8{font-size:20rpx;letter-spacing:4rpx}.hero-title.data-v-7f3520d8{display:block;margin-top:12rpx;font-size:44rpx;font-weight:700}.hero-desc.data-v-7f3520d8{display:block;margin-top:14rpx;font-size:24rpx;line-height:1.7}.hero-tags.data-v-7f3520d8{display:flex;flex-wrap:wrap;gap:14rpx;margin-top:22rpx}.hero-tag.data-v-7f3520d8{padding:12rpx 18rpx;border-radius:999rpx;background:rgba(255,255,255,.16);font-size:22rpx}.step-list.data-v-7f3520d8,.faq-list.data-v-7f3520d8{display:flex;flex-direction:column;gap:16rpx}.step-item.data-v-7f3520d8,.faq-item.data-v-7f3520d8{padding:24rpx;border-radius:28rpx}.step-item.data-v-7f3520d8{display:flex;gap:18rpx}.step-index.data-v-7f3520d8{width:74rpx;font-size:30rpx;font-weight:700;color:var(--brand)}.step-body.data-v-7f3520d8{flex:1}.step-title.data-v-7f3520d8,.faq-question.data-v-7f3520d8,.entry-title.data-v-7f3520d8{display:block;font-size:29rpx;font-weight:700;color:var(--text-primary)}.step-desc.data-v-7f3520d8,.faq-answer.data-v-7f3520d8{display:block;margin-top:10rpx;font-size:24rpx;line-height:1.75;color:var(--text-secondary)}.entry-grid.data-v-7f3520d8{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16rpx}.entry-item.data-v-7f3520d8{display:flex;align-items:center;justify-content:center;padding:28rpx 20rpx;border-radius:28rpx;text-align:center}
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../utils/store.js");Math||(n+s)();const n=()=>"../../components/SectionCard.js",s=()=>"../../components/AppTabBar.js",a={__name:"index",setup(n){const s=t.useAppStore(),a=e.computed((()=>"dark"===s.state.settings.theme?"theme-dark":"")),i=e.computed((()=>s.state.settings.profile.nickname||"用户")),o=e.computed((()=>(s.state.settings.profile.nickname||"用户").slice(0,1))),r=e.ref(">");function u(e){s.setTheme(e)}function p(t){e.index.navigateTo({url:t})}return(t,n)=>({a:e.t(o.value),b:e.t(i.value),c:e.t(r.value),d:e.o((e=>p("/pages/mine/profile/index"))),e:"light"===e.unref(s).state.settings.theme?1:"",f:e.o((e=>u("light"))),g:"dark"===e.unref(s).state.settings.theme?1:"",h:e.o((e=>u("dark"))),i:e.p({title:"账户概览",subtitle:"集中管理本地昵称与主题设置"}),j:e.t(r.value),k:e.o((e=>p("/pages/mine/backup/index"))),l:e.t(r.value),m:e.o((e=>p("/pages/mine/guide/index"))),n:e.t(r.value),o:e.o((e=>p("/pages/mine/about/index"))),p:e.p({title:"数据管理",subtitle:"备份、恢复和清理等高频操作统一收口"}),q:e.p({current:"mine"}),r:e.n(a.value)})}},i=e._export_sfc(a,[["__scopeId","data-v-a8ac4929"]]);wx.createPage(i);
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的",
|
||||
"usingComponents": {
|
||||
"section-card": "../../components/SectionCard",
|
||||
"app-tab-bar": "../../components/AppTabBar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['app-page', 'data-v-a8ac4929', r]}}"><section-card wx:if="{{i}}" class="data-v-a8ac4929" u-s="{{['d']}}" u-i="a8ac4929-0" bind:__l="__l" u-p="{{i}}"><view class="profile-card surface-strong data-v-a8ac4929" bindtap="{{d}}"><view class="avatar-shell data-v-a8ac4929">{{a}}</view><view class="profile-body data-v-a8ac4929"><text class="profile-name data-v-a8ac4929">{{b}}</text><text class="section-subtitle data-v-a8ac4929"></text></view><text class="arrow-text data-v-a8ac4929">{{c}}</text></view><view class="theme-row data-v-a8ac4929"><view class="{{['pill-button', 'data-v-a8ac4929', e && 'active']}}" catchtap="{{f}}">浅色</view><view class="{{['pill-button', 'data-v-a8ac4929', g && 'active']}}" catchtap="{{h}}">深色</view></view></section-card><ad-custom class="data-v-a8ac4929" unit-id="adunit-74730c6c27c95a37"></ad-custom><section-card wx:if="{{p}}" class="data-v-a8ac4929" u-s="{{['d']}}" u-i="a8ac4929-1" bind:__l="__l" u-p="{{p}}"><view class="menu-list data-v-a8ac4929"><view class="menu-item data-v-a8ac4929" bindtap="{{k}}"><view class="data-v-a8ac4929"><text class="menu-title data-v-a8ac4929">备份与恢复</text></view><text class="arrow-text data-v-a8ac4929">{{j}}</text></view><view class="menu-item data-v-a8ac4929" bindtap="{{m}}"><view class="data-v-a8ac4929"><text class="menu-title data-v-a8ac4929">使用帮助</text></view><text class="arrow-text data-v-a8ac4929">{{l}}</text></view><view class="menu-item data-v-a8ac4929" bindtap="{{o}}"><view class="data-v-a8ac4929"><text class="menu-title data-v-a8ac4929">关于与隐私</text></view><text class="arrow-text data-v-a8ac4929">{{n}}</text></view></view></section-card><app-tab-bar wx:if="{{q}}" class="data-v-a8ac4929" u-i="a8ac4929-2" bind:__l="__l" u-p="{{q}}"/></view>
|
||||
@@ -0,0 +1 @@
|
||||
.profile-card.data-v-a8ac4929,.theme-row.data-v-a8ac4929,.menu-item.data-v-a8ac4929{display:flex;align-items:center;gap:16rpx}.profile-card.data-v-a8ac4929{padding:24rpx;border-radius:24rpx}.avatar-shell.data-v-a8ac4929{width:88rpx;height:88rpx;border-radius:50%;background:var(--bg-accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:34rpx;font-weight:700}.profile-body.data-v-a8ac4929{flex:1}.profile-name.data-v-a8ac4929,.menu-title.data-v-a8ac4929{font-size:30rpx;font-weight:600;color:var(--text-primary)}.arrow-text.data-v-a8ac4929{font-size:32rpx}.theme-row.data-v-a8ac4929{margin-top:18rpx}.theme-row .pill-button.data-v-a8ac4929{flex:1}.menu-list.data-v-a8ac4929,.action-grid.data-v-a8ac4929{display:flex;flex-direction:column;gap:16rpx}.menu-item.data-v-a8ac4929{justify-content:space-between;padding:22rpx;border-radius:24rpx;background:var(--surface-muted)}
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../common/vendor.js"),t=require("../../../utils/store.js");Math||a();const a=()=>"../../../components/SectionCard.js",i={__name:"index",setup(a){const i=t.useAppStore(),n=e.computed((()=>"dark"===i.state.settings.theme?"theme-dark":"")),s=e.computed((()=>i.state.settings.profile.nickname||"用户")),o=e.computed((()=>s.value.slice(0,1))),l=e.ref(i.state.settings.profile.nickname||""),r=["昵称仅用于个人页展示和首字头像,不参与账单计算。","账单、预算和设置默认不会自动上传云端。","如需更换设备,请先在“备份与恢复”页面导出 JSON 备份。"];function u(){const t=l.value.trim();i.setProfile({authorized:!1,nickname:t,avatarUrl:""}),e.index.showToast({title:"昵称已保存",icon:"none"})}function c(){l.value="",i.setProfile({authorized:!1,nickname:"",avatarUrl:""}),e.index.showToast({title:"昵称已清空",icon:"none"})}return e.watch((()=>i.state.settings.profile.nickname),(e=>{l.value=e||""})),(t,a)=>({a:e.t(o.value),b:e.t(s.value),c:l.value,d:e.o((e=>l.value=e.detail.value)),e:e.o(c),f:e.o(u),g:e.p({title:"昵称设置",subtitle:"修改后仅用于个人页展示和首字头像,不参与账单计算"}),h:e.t(o.value),i:e.p({title:"显示与模式",subtitle:"集中展示当前账户页的生效状态"}),j:e.f(r,((t,a,i)=>({a:e.t(a+1),b:e.t(t),c:t}))),k:e.p({title:"使用提示",subtitle:"帮助用户理解昵称显示与数据边界"}),l:e.n(n.value)})}},n=e._export_sfc(i,[["__scopeId","data-v-94494afd"]]);wx.createPage(n);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "账户资料",
|
||||
"usingComponents": {
|
||||
"section-card": "../../../components/SectionCard"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['app-page', 'data-v-94494afd', l]}}"><view class="surface-card page-hero data-v-94494afd"><text class="hero-kicker data-v-94494afd">ACCOUNT</text><text class="hero-title data-v-94494afd">账户资料</text><text class="hero-desc data-v-94494afd">管理本地昵称、显示资料与本机记账模式说明。</text><view class="hero-tags data-v-94494afd"><text class="hero-tag data-v-94494afd">本地资料</text><text class="hero-tag soft data-v-94494afd">本地存储</text></view></view><section-card wx:if="{{g}}" class="data-v-94494afd" u-s="{{['d']}}" u-i="94494afd-0" bind:__l="__l" u-p="{{g}}"><view class="profile-card surface-strong data-v-94494afd"><view class="avatar-shell data-v-94494afd">{{a}}</view><view class="profile-body data-v-94494afd"><text class="profile-name data-v-94494afd">{{b}}</text><text class="profile-meta data-v-94494afd">当前昵称仅保存在本地设备,可随时修改。</text></view><view class="status-badge data-v-94494afd">本地</view></view><view class="editor-block data-v-94494afd"><view class="input-shell data-v-94494afd"><input class="data-v-94494afd" maxlength="12" placeholder="请输入昵称" value="{{c}}" bindinput="{{d}}"/></view><text class="tiny-text editor-tip data-v-94494afd">留空时页面会统一显示“用户”。</text></view><view class="action-row data-v-94494afd"><view class="ghost-button data-v-94494afd" bindtap="{{e}}">清空昵称</view><view class="primary-button data-v-94494afd" bindtap="{{f}}">保存昵称</view></view></section-card><section-card wx:if="{{i}}" class="data-v-94494afd" u-s="{{['d']}}" u-i="94494afd-1" bind:__l="__l" u-p="{{i}}"><view class="info-list data-v-94494afd"><view class="info-item surface-strong data-v-94494afd"><view class="data-v-94494afd"><text class="info-title data-v-94494afd">昵称首字头像</text><text class="info-desc data-v-94494afd">当前显示 {{h}},自动根据昵称生成</text></view><text class="info-mark data-v-94494afd">已启用</text></view><view class="info-item surface-strong data-v-94494afd"><view class="data-v-94494afd"><text class="info-title data-v-94494afd">本机记账模式</text><text class="info-desc data-v-94494afd">账单与预算默认仅保存在当前设备本地</text></view><text class="info-mark data-v-94494afd">默认</text></view></view></section-card><section-card wx:if="{{k}}" class="data-v-94494afd" u-s="{{['d']}}" u-i="94494afd-2" bind:__l="__l" u-p="{{k}}"><view class="tips-card surface-strong data-v-94494afd"><view wx:for="{{j}}" wx:for-item="tip" wx:key="c" class="tip-row data-v-94494afd"><text class="tip-index data-v-94494afd">0{{tip.a}}</text><text class="tip-line data-v-94494afd">{{tip.b}}</text></view></view></section-card></view>
|
||||
@@ -0,0 +1 @@
|
||||
.page-hero.data-v-94494afd{padding:30rpx;background:linear-gradient(145deg,rgba(16,42,67,.96),rgba(31,111,95,.92));color:#fff}.hero-kicker.data-v-94494afd,.hero-desc.data-v-94494afd,.hero-tag.soft.data-v-94494afd{color:rgba(255,255,255,.76)}.hero-kicker.data-v-94494afd{font-size:20rpx;letter-spacing:4rpx}.hero-title.data-v-94494afd{display:block;margin-top:12rpx;font-size:44rpx;font-weight:700}.hero-desc.data-v-94494afd{display:block;margin-top:14rpx;font-size:24rpx;line-height:1.7}.hero-tags.data-v-94494afd{display:flex;flex-wrap:wrap;gap:14rpx;margin-top:22rpx}.hero-tag.data-v-94494afd{padding:12rpx 18rpx;border-radius:999rpx;background:rgba(255,255,255,.16);font-size:22rpx}.profile-card.data-v-94494afd,.info-item.data-v-94494afd,.action-row.data-v-94494afd,.tip-row.data-v-94494afd{display:flex;align-items:center;gap:16rpx}.profile-card.data-v-94494afd,.tips-card.data-v-94494afd{padding:26rpx;border-radius:28rpx}.avatar-shell.data-v-94494afd{width:108rpx;height:108rpx;border-radius:32rpx;background:var(--bg-accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:40rpx;font-weight:700;box-shadow:0 18rpx 32rpx rgba(16,42,67,.16)}.profile-body.data-v-94494afd{flex:1}.profile-name.data-v-94494afd,.info-title.data-v-94494afd{display:block;font-size:31rpx;font-weight:700;color:var(--text-primary)}.profile-meta.data-v-94494afd,.info-desc.data-v-94494afd,.tip-line.data-v-94494afd{display:block;margin-top:10rpx;font-size:24rpx;line-height:1.7;color:var(--text-secondary)}.status-badge.data-v-94494afd,.info-mark.data-v-94494afd{padding:10rpx 18rpx;border-radius:999rpx;background:var(--brand-soft);font-size:22rpx;color:var(--brand)}.editor-block.data-v-94494afd{margin-top:18rpx}.editor-tip.data-v-94494afd{display:block;margin-top:12rpx}.action-row.data-v-94494afd{margin-top:18rpx}.action-row .ghost-button.data-v-94494afd,.action-row .primary-button.data-v-94494afd{flex:1}.info-list.data-v-94494afd{display:flex;flex-direction:column;gap:16rpx}.info-item.data-v-94494afd{justify-content:space-between;padding:24rpx;border-radius:26rpx}.tip-row.data-v-94494afd{align-items:flex-start;padding:12rpx 0}.tip-index.data-v-94494afd{width:56rpx;font-size:24rpx;font-weight:700;color:var(--brand)}
|
||||
Reference in New Issue
Block a user