66 lines
2.3 KiB
Plaintext
66 lines
2.3 KiB
Plaintext
<view class="page-shell">
|
|
<view class="panel hero">
|
|
<text class="hero__eyebrow">Stable Native Architecture</text>
|
|
<text class="hero__title">玄志小程序基础骨架</text>
|
|
<text class="hero__summary">
|
|
原生小程序 + JS + npm + TDesign + 分包 + service/store 分层,保留微信原生性能和长期维护边界。
|
|
</text>
|
|
<app-button
|
|
block
|
|
text="{{isLoggedIn ? '进入业务工作台' : '前往登录页'}}"
|
|
bind:tap="handlePrimaryAction"
|
|
></app-button>
|
|
<app-button
|
|
wx:if="{{isLoggedIn}}"
|
|
block
|
|
text="清理登录态"
|
|
theme="default"
|
|
variant="outline"
|
|
bind:tap="handleLogout"
|
|
></app-button>
|
|
</view>
|
|
|
|
<view class="panel session-card">
|
|
<text class="section-title">当前会话</text>
|
|
<view class="session-card__rows">
|
|
<view class="meta-row">
|
|
<text class="session-card__label">运行环境</text>
|
|
<text class="session-card__value">{{envName}}</text>
|
|
</view>
|
|
<view class="meta-row">
|
|
<text class="session-card__label">API 地址</text>
|
|
<text class="session-card__value session-card__value--mono">{{apiBaseUrl}}</text>
|
|
</view>
|
|
<view class="meta-row">
|
|
<text class="session-card__label">登录状态</text>
|
|
<text class="session-card__value">{{sessionView.statusLabel}}</text>
|
|
</view>
|
|
<view class="meta-row">
|
|
<text class="session-card__label">当前用户</text>
|
|
<text class="session-card__value">{{sessionView.userName}}</text>
|
|
</view>
|
|
<view class="meta-row">
|
|
<text class="session-card__label">Token</text>
|
|
<text class="session-card__value session-card__value--mono">{{sessionView.tokenLabel}}</text>
|
|
</view>
|
|
<view class="meta-row meta-row--top">
|
|
<text class="session-card__label">权限</text>
|
|
<text class="session-card__value session-card__value--mono">{{sessionView.permissionsLabel}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="entry-list">
|
|
<entry-card
|
|
wx:for="{{quickEntries}}"
|
|
wx:key="actionPath"
|
|
title="{{item.title}}"
|
|
description="{{item.description}}"
|
|
badge="{{item.badge}}"
|
|
actionText="{{item.actionText}}"
|
|
actionPath="{{item.actionPath}}"
|
|
bind:action="handleEntryAction"
|
|
></entry-card>
|
|
</view>
|
|
</view>
|