删除不再使用的文件和配置,优化项目结构以提升可维护性;新增环境变量配置示例,更新 Docker 和部署相关文件以支持灵活的端口设置;重构数据库连接逻辑,增强错误处理和配置管理,确保更好的兼容性和稳定性。
This commit is contained in:
@@ -1,75 +1,54 @@
|
||||
<!--关于作者-->
|
||||
<view class="page">
|
||||
<view class="nav-bar" style="padding-top: {{statusBarHeight}}px;">
|
||||
<view class="nav-back" bindtap="goBack">←</view>
|
||||
<text class="nav-title">关于作者</text>
|
||||
<view class="nav-placeholder"></view>
|
||||
<view class="nav-bar" style="height: {{navBarHeight || (statusBarHeight + 44)}}px; padding-top: {{statusBarHeight || 44}}px; box-sizing: border-box;">
|
||||
<view class="nav-inner safe-header-right">
|
||||
<view class="nav-back" bindtap="goBack">← 返回</view>
|
||||
<text class="nav-title">关于作者</text>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: {{statusBarHeight + 44}}px;"></view>
|
||||
|
||||
<view class="content">
|
||||
<!-- 作者信息卡片 -->
|
||||
<view class="author-card">
|
||||
<view class="author-avatar">{{author.avatar}}</view>
|
||||
<text class="author-name">{{author.name}}</text>
|
||||
<text class="author-title">{{author.title}}</text>
|
||||
<text class="author-bio">{{author.bio}}</text>
|
||||
|
||||
<!-- 统计数据 -->
|
||||
<view class="stats-row">
|
||||
<view class="stat-item" wx:for="{{author.stats}}" wx:key="label">
|
||||
<text class="stat-value">{{item.value}}</text>
|
||||
<text class="stat-label">{{item.label}}</text>
|
||||
</view>
|
||||
<view class="main">
|
||||
<view class="card author-card">
|
||||
<view class="author-avatar">{{authorInitial}}</view>
|
||||
<text class="author-name">{{authorInfo.name}}</text>
|
||||
<text class="author-desc">{{authorInfo.description}}</text>
|
||||
<view class="author-tags">
|
||||
<text class="tag brand">🕐 每日 {{authorInfo.liveTime}}</text>
|
||||
<text class="tag">💬 {{authorInfo.platform}}</text>
|
||||
</view>
|
||||
|
||||
<!-- 亮点标签 -->
|
||||
<view class="highlights" wx:if="{{author.highlights}}">
|
||||
<view class="highlight-tag" wx:for="{{author.highlights}}" wx:key="*this">
|
||||
<text class="tag-icon">✓</text>
|
||||
<text>{{item}}</text>
|
||||
</view>
|
||||
<view class="stats">
|
||||
<view class="stat-item" wx:for="{{stats}}" wx:key="label">
|
||||
<text class="stat-icon">{{item.icon}}</text>
|
||||
<text class="stat-value">{{item.value}}</text>
|
||||
<text class="stat-label">{{item.label}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card section">
|
||||
<text class="section-title">关于这本书</text>
|
||||
<view class="section-paras">
|
||||
<text class="section-para">"这不是一本教你成功的鸡汤书。"</text>
|
||||
<text class="section-para">这是我每天早上6点到9点,在Soul派对房和几百个陌生人分享的真实故事。</text>
|
||||
<text class="section-para brand">"社会不是靠努力,是靠洞察与选择。"</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card section">
|
||||
<text class="section-title">创业历程</text>
|
||||
<view class="timeline">
|
||||
<view class="timeline-item" wx:for="{{milestones}}" wx:key="year">
|
||||
<view class="timeline-dot-wrap">
|
||||
<view class="timeline-dot"></view>
|
||||
<view class="timeline-line" wx:if="{{index < milestones.length - 1}}"></view>
|
||||
</view>
|
||||
<view class="timeline-content">
|
||||
<text class="milestone-year">{{item.year}}</text>
|
||||
<text class="milestone-event">{{item.event}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 书籍信息 -->
|
||||
<view class="book-info-card" wx:if="{{bookInfo}}">
|
||||
<text class="card-title">📚 {{bookInfo.title}}</text>
|
||||
<view class="book-stats">
|
||||
<view class="book-stat">
|
||||
<text class="book-stat-value">{{bookInfo.totalChapters}}</text>
|
||||
<text class="book-stat-label">篇章节</text>
|
||||
</view>
|
||||
<view class="book-stat">
|
||||
<text class="book-stat-value">5</text>
|
||||
<text class="book-stat-label">大篇章</text>
|
||||
</view>
|
||||
<view class="book-stat">
|
||||
<text class="book-stat-value">¥{{bookInfo.price}}</text>
|
||||
<text class="book-stat-label">全书价格</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="parts-list">
|
||||
<view class="part-item" wx:for="{{bookInfo.parts}}" wx:key="name">
|
||||
<text class="part-name">{{item.name}}</text>
|
||||
<text class="part-chapters">{{item.chapters}}节</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 联系方式 - 引导到Soul派对房 -->
|
||||
<view class="contact-card">
|
||||
<text class="card-title">联系作者</text>
|
||||
<view class="contact-item">
|
||||
<text class="contact-icon">🎉</text>
|
||||
<view class="contact-info">
|
||||
<text class="contact-label">Soul派对房</text>
|
||||
<text class="contact-value">每天早上6-9点开播</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="contact-tip">
|
||||
<text>在Soul App搜索"创业实验"或"卡若",加入派对房直接交流</text>
|
||||
</view>
|
||||
<view class="card join-card">
|
||||
<text class="join-title">想听更多真实故事?</text>
|
||||
<text class="join-desc">每天早上6-9点,卡若在Soul派对房免费分享</text>
|
||||
<view class="btn-join" bindtap="onJoinParty">💬 加入派对群</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user