53 lines
2.1 KiB
Plaintext
53 lines
2.1 KiB
Plaintext
<navigation-bar title="我的" back="{{false}}" color="#f6efe7" background="#081518"></navigation-bar>
|
|
|
|
<view class="page-shell">
|
|
<view class="page-stack">
|
|
<view class="hero-panel">
|
|
<text class="hero-kicker">{{userInfo.account || '后台账号'}}</text>
|
|
<text class="hero-title">{{userInfo.nickname || '未设置昵称'}}</text>
|
|
<text class="hero-desc">当前角色:{{roleLabel}}。{{currentShopText}}</text>
|
|
</view>
|
|
|
|
<view class="surface-card">
|
|
<text class="section-title">账号信息</text>
|
|
<view class="meta-grid">
|
|
<view class="meta-item">
|
|
<text class="meta-label">账号</text>
|
|
<text class="meta-value">{{userInfo.account || '--'}}</text>
|
|
</view>
|
|
<view class="meta-item">
|
|
<text class="meta-label">权限数</text>
|
|
<text class="meta-value">{{permissionCodes.length}}</text>
|
|
</view>
|
|
<view class="meta-item">
|
|
<text class="meta-label">店铺状态</text>
|
|
<text class="meta-value">{{currentShop ? currentShop.shopName : '平台总览模式'}}</text>
|
|
</view>
|
|
<view class="meta-item">
|
|
<text class="meta-label">可登录店铺</text>
|
|
<text class="meta-value">{{shopScopeText}}</text>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{currentShop}}" class="action-row">
|
|
<button class="secondary-btn" bindtap="handleSwitchShop">切换店铺</button>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="surface-card">
|
|
<text class="section-title">常用入口</text>
|
|
<view class="list-actions">
|
|
<view class="mini-btn primary" bindtap="handleOpenOrders">查看订单</view>
|
|
<view class="mini-btn" bindtap="handleOpenManage">经营模块</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="surface-card">
|
|
<text class="section-title">退出登录</text>
|
|
<text class="section-desc">退出后会清理管理端会话、当前店铺和权限快照;再次进入需要重新登录。</text>
|
|
<view class="action-row">
|
|
<button class="danger-btn" bindtap="handleLogout">退出当前账号</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|