- 新增许愿树页面(Canvas绘制、许愿条展示) - 新增许愿详情页面 - 新增许愿创建弹窗(免费/付费两种模式) - 新增网络请求封装 utils/request.js - 新增Go后端项目结构(Gin + Inertia.js) - 新增用户、订单、许愿数据模型 - 新增数据库迁移脚本 - 更新.gitignore补全忽略规则 - 更新.env.local配置(robot=2, 版本1.0.1) - 添加secrets目录说明文档
47 lines
1.5 KiB
Plaintext
47 lines
1.5 KiB
Plaintext
<view class="container">
|
|
<view class="loading" wx:if="{{loading}}">
|
|
<text>加载中...</text>
|
|
</view>
|
|
|
|
<view class="wish-detail" wx:else>
|
|
<view class="wish-card {{wish.type}}">
|
|
<view class="wish-header">
|
|
<image class="avatar" src="{{wish.user.avatar || '/images/default-avatar.png'}}" mode="aspectFill"></image>
|
|
<view class="user-info">
|
|
<text class="nickname">{{wish.user.nickname}}</text>
|
|
<text class="time">{{wish.createdAt}}</text>
|
|
</view>
|
|
<view class="wish-badge" wx:if="{{wish.type === 'paid'}}">
|
|
<text>VIP</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="wish-content">
|
|
<text>{{wish.content}}</text>
|
|
</view>
|
|
|
|
<view class="wish-footer">
|
|
<view class="wish-type">
|
|
<text class="type-tag {{wish.type}}">{{wish.type === 'paid' ? '付费许愿' : '免费许愿'}}</text>
|
|
</view>
|
|
<view class="wish-actions">
|
|
<button class="btn-action" bindtap="onShare">
|
|
<text class="icon">📤</text>
|
|
<text>分享</text>
|
|
</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 相关推荐 -->
|
|
<view class="recommend-section">
|
|
<view class="section-title">更多愿望</view>
|
|
<view class="recommend-list">
|
|
<view class="recommend-item" wx:for="{{[1,2,3]}}" wx:key="*this">
|
|
<text class="recommend-text">愿所有美好如期而至</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|