- 新增系统设置、壁纸、图标包、设备管理、通讯录、通话、短信、相册、文件、应用、告警、信息、首页布局、账号安全、绑定手机号、法律条款等页面 - utils/api.ts 补齐设备操作、策略、壁纸、图标包等 /api/v1/client/** 接口,新增多文件上传 - 新增 utils/sse.ts 与 utils/wx-session.ts - 「更多/进入」指示统一改为图片箭头,首卡统一 .hero-card 高度,页面首卡贴顶 - AGENTS.md 补充功能对接状态与小程序 UI 约定
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
<view class="page">
|
|
<view class="card">
|
|
<view class="card-head">
|
|
<view class="head-icon">🎨</view>
|
|
<text class="head-title">平板已安装的图标包</text>
|
|
<view class="spacer"></view>
|
|
<view class="head-action" bindtap="onRetry">刷新</view>
|
|
</view>
|
|
|
|
<view wx:if="{{!loaded && !error}}" class="empty">加载中…</view>
|
|
<view wx:elif="{{error}}" class="empty">
|
|
<text>{{error}}</text>
|
|
<view class="secondary-btn retry" bindtap="onRetry">重试</view>
|
|
</view>
|
|
<view wx:elif="{{!entries.length}}" class="empty">设备暂无图标包</view>
|
|
<block wx:else>
|
|
<view
|
|
wx:for="{{entries}}"
|
|
wx:key="packageName"
|
|
class="list-row {{pending ? 'disabled' : ''}}"
|
|
data-index="{{index}}"
|
|
bindtap="onSelect"
|
|
>
|
|
<image
|
|
wx:if="{{item.icon}}"
|
|
class="pack-icon"
|
|
src="{{item.icon}}"
|
|
mode="aspectFit"
|
|
/>
|
|
<view wx:else class="list-icon">{{item.isOriginal ? '🧩' : '📦'}}</view>
|
|
<view class="list-body">
|
|
<text class="list-title">{{item.label}}</text>
|
|
<text wx:if="{{!item.isOriginal}}" class="list-sub">
|
|
{{item.available ? item.packageName : '图标包不可用'}}
|
|
</text>
|
|
</view>
|
|
<text wx:if="{{item.selected}}" class="pack-check">✓</text>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</view>
|