feat: 完善见素起名小程序功能
- 添加收藏锦囊功能,支持查看和删除收藏 - 实现积分系统,每日赠送5次灵感次数 - 添加静心阅读功能,阅读15秒可获得额外次数 - 实现灵感广场,展示用户分享的名字 - 添加字源溯源组件,长按汉字查看详情 - 优化空状态和结语卡片样式统一 - 添加音频控制(静音/风铃/雨落/古琴/白噪音/森林/溪流) - 优化名字生成逻辑,确保每次返回5个不重复名字 - 修复卡片翻转样式问题 - 移除首页动态提醒气泡
This commit is contained in:
@@ -6,6 +6,18 @@
|
||||
<view class="header-spacer"></view>
|
||||
</view>
|
||||
|
||||
<!-- 积分信息 - 克制地放在角落 -->
|
||||
<view class="credits-bar" bindtap="onCreditsTap">
|
||||
<view class="credits-item">
|
||||
<text class="credits-icon">✦</text>
|
||||
<text class="credits-text">今日灵感 {{creditsInfo.dailyCredits || 0}}/5</text>
|
||||
</view>
|
||||
<view class="credits-item watch-ad" wx:if="{{(creditsInfo.dailyCredits || 0) === 0 && (creditsInfo.watchedAdCount || 0) < 5}}">
|
||||
<text class="credits-icon">📖</text>
|
||||
<text class="credits-text">静心阅读 +3</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 收藏列表 -->
|
||||
<scroll-view scroll-y class="favorites-scroll" wx:if="{{favorites.length > 0}}">
|
||||
<view class="favorites-grid">
|
||||
@@ -46,4 +58,23 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 静心阅读全屏页 -->
|
||||
<view class="meditation-page {{showMeditation ? 'visible' : ''}}">
|
||||
<view class="meditation-close" bindtap="closeMeditation">×</view>
|
||||
<view class="meditation-content">
|
||||
<view class="meditation-title">静心阅读</view>
|
||||
<view class="meditation-poem" wx:if="{{meditationPoem}}">
|
||||
<text class="poem-text">{{meditationPoem.text}}</text>
|
||||
<text class="poem-author">——{{meditationPoem.author}}</text>
|
||||
</view>
|
||||
<view class="meditation-hint">静观 15 秒,心随诗远</view>
|
||||
</view>
|
||||
<view class="meditation-progress">
|
||||
<view class="progress-bar">
|
||||
<view class="progress-fill" style="width: {{meditationProgress}}%"></view>
|
||||
</view>
|
||||
<text class="progress-text">{{meditationProgress}}%</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user