Files
ttstd_family_care_miniapp/pages/profile/index.wxml
T
tongtong 9030938c84 feat(miniapp): 补齐设备功能页面与统一 UI 规范
- 新增系统设置、壁纸、图标包、设备管理、通讯录、通话、短信、相册、文件、应用、告警、信息、首页布局、账号安全、绑定手机号、法律条款等页面
- utils/api.ts 补齐设备操作、策略、壁纸、图标包等 /api/v1/client/** 接口,新增多文件上传
- 新增 utils/sse.ts 与 utils/wx-session.ts
- 「更多/进入」指示统一改为图片箭头,首卡统一 .hero-card 高度,页面首卡贴顶
- AGENTS.md 补充功能对接状态与小程序 UI 约定
2026-11-28 18:19:19 +08:00

34 lines
1.1 KiB
Plaintext

<view class="page">
<view wx:if="{{loggedIn}}" class="card info-hero hero-card" bindtap="onEditProfile">
<image wx:if="{{avatar}}" class="info-icon" src="{{avatar}}" mode="aspectFill" />
<view wx:else class="info-icon">👤</view>
<view class="info-text">
<text class="info-title">{{nickname}}</text>
<text class="info-sub">{{subtitle}}</text>
</view>
<view wx:if="{{!loggedIn}}" class="login-btn" bindtap="onLogin">登录</view>
</view>
<view class="card list-card">
<view
wx:for="{{items}}"
wx:key="key"
class="row"
data-url="{{item.url}}"
bindtap="onTap"
>
<text class="row-label">{{item.label}}</text>
<image class="chevron" src="/assets/chevron-right.png" mode="aspectFit" />
</view>
</view>
<view wx:if="{{loggedIn}}" class="card list-card">
<view class="row" bindtap="onLogout">
<text class="row-label danger">退出登录</text>
<image class="chevron" src="/assets/chevron-right.png" mode="aspectFit" />
</view>
</view>
<view class="version">v0.1.0 · 原生微信小程序</view>
</view>