- 添加游客模式,展示公共内容无需强制登录 - 实现游客模块展示打卡、计划、关于我们等功能介绍 - 添加产品介绍页面显示学习成长工具详情 - 优化登录流程,添加用户协议和隐私政策同意选项 - 更新角色标签将老师改为管理员,学员改为成员 - 添加注销账号功能替代退出登录 - 实现webview页面域名白名单安全验证 - 添加隐私政策和用户协议页面 - 优化页面跳转逻辑和错误提示信息 - 统一项目名称从明缘进阶场改为明缘云道场
58 lines
2.0 KiB
Plaintext
58 lines
2.0 KiB
Plaintext
<view class="page">
|
||
<block wx:if="{{loading}}">
|
||
<view class="hero hero-skeleton"></view>
|
||
<view class="grid">
|
||
<view class="module module-skeleton" wx:for="{{skeletonItems}}" wx:key="*this">
|
||
<view class="sk sk-circle"></view>
|
||
<view class="sk sk-line w-70"></view>
|
||
<view class="sk sk-line w-40"></view>
|
||
</view>
|
||
</view>
|
||
</block>
|
||
|
||
<block wx:else>
|
||
<view class="hero">
|
||
<view class="hero-chip" wx:if="{{greeting}}">{{greeting}}</view>
|
||
<view class="hero-name">{{displayName || '欢迎回来'}}</view>
|
||
<view class="hero-enc" wx:if="{{encouragement}}">{{encouragement}}</view>
|
||
<view class="hero-login-tip" wx:if="{{!displayName || displayName === '游客'}}" hover-class="btn-hover" bindtap="goLogin">
|
||
登录账号解锁完整功能 ›
|
||
</view>
|
||
</view>
|
||
|
||
<view class="error-bar" wx:if="{{error}}">
|
||
<text class="error-text">{{error}}</text>
|
||
<view class="error-retry" hover-class="link-hover" bindtap="onRetry">重试</view>
|
||
</view>
|
||
|
||
<view class="grid">
|
||
<view
|
||
class="module"
|
||
wx:for="{{modules}}"
|
||
wx:key="id"
|
||
hover-class="module-hover"
|
||
data-url="{{item.url}}"
|
||
bindtap="onModuleTap"
|
||
>
|
||
<view class="module-icon">{{item.icon}}</view>
|
||
<view class="module-label">{{item.label}}</view>
|
||
<view class="module-desc">{{item.desc}}</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 游客模式:明缘介绍 -->
|
||
<view class="intro-section" wx:if="{{introData && introData.sections}}">
|
||
<view class="intro-title">{{introData.title}}</view>
|
||
<view class="intro-card" wx:for="{{introData.sections}}" wx:key="heading">
|
||
<view class="intro-icon">{{item.icon}}</view>
|
||
<view class="intro-body">
|
||
<view class="intro-heading">{{item.heading}}</view>
|
||
<view class="intro-text">{{item.text}}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="empty" wx:if="{{modules.length === 0 && !error}}">暂无功能入口</view>
|
||
</block>
|
||
</view>
|