59 lines
2.6 KiB
Plaintext
59 lines
2.6 KiB
Plaintext
<view class="page">
|
||
<view class="card profile-card">
|
||
<view class="profile-main">
|
||
<view class="account-avatar">
|
||
<image wx:if="{{profileCard.avatar}}" src="{{profileCard.avatar}}" mode="aspectFill"></image>
|
||
<text wx:else>{{profileCard.avatarText}}</text>
|
||
</view>
|
||
<view class="profile-copy">
|
||
<text class="profile-name">{{profileCard.nickname}}</text>
|
||
<text class="profile-shop">{{profileCard.shopName}}</text>
|
||
</view>
|
||
</view>
|
||
<text class="role-badge">{{roleText}}</text>
|
||
</view>
|
||
|
||
<view class="card overview-card">
|
||
<view class="overview-head">
|
||
<text class="overview-title">店铺今日概览</text>
|
||
<text class="overview-date">{{overview.date}}</text>
|
||
</view>
|
||
<view wx:if="{{overviewLoading}}" class="overview-loading">正在加载今日数据...</view>
|
||
<view wx:else class="overview-grid">
|
||
<view class="overview-item" data-action="todayAppointments" bindtap="goOverviewAction">
|
||
<text class="overview-value">{{overview.todayAppointments}}</text>
|
||
<text class="overview-label">今日预约</text>
|
||
</view>
|
||
<view class="overview-item overview-item--warning" data-action="pendingAppointments" bindtap="goOverviewAction">
|
||
<text class="overview-value">{{overview.pendingAppointments}}</text>
|
||
<text class="overview-label">待确认预约</text>
|
||
</view>
|
||
<view class="overview-item" data-action="upcomingAppointments" bindtap="goOverviewAction">
|
||
<text class="overview-value">{{overview.upcomingAppointments}}</text>
|
||
<text class="overview-label">即将开始</text>
|
||
</view>
|
||
<view class="overview-item">
|
||
<text class="overview-value">{{overview.availableEmployees}}</text>
|
||
<text class="overview-label">今日可预约员工</text>
|
||
</view>
|
||
<view class="overview-item overview-item--warning" data-action="scheduleExceptions" bindtap="goOverviewAction">
|
||
<text class="overview-value">{{overview.scheduleExceptions}}</text>
|
||
<text class="overview-label">请假/调班待处理</text>
|
||
</view>
|
||
<view class="overview-item overview-item--status">
|
||
<view class="status-dot {{overview.shopOpen ? 'is-open' : 'is-closed'}}"></view>
|
||
<text class="overview-status">{{overview.shopStatus}}</text>
|
||
<text class="overview-label">店铺当前状态</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="section menu-list card">
|
||
<view wx:for="{{menus}}" wx:key="title" class="menu-row" data-url="{{item.url}}" bindtap="go">
|
||
<text>{{item.title}}</text>
|
||
<text class="arrow">›</text>
|
||
</view>
|
||
</view>
|
||
|
||
</view>
|