Files
JayuCloud/JC-Salon-WeChat/pages/profile/index.wxml
T

60 lines
2.7 KiB
Plaintext
Raw Normal View History

2026-06-04 16:39:06 +08:00
<view class="page">
<view class="card profile-card">
2026-06-27 01:46:44 +08:00
<view class="profile-main">
<view class="account-avatar">
2026-11-01 00:41:51 +08:00
<image wx:if="{{profileCard.avatar}}" src="{{profileCard.avatar}}" mode="aspectFill" binderror="onProfileAvatarError"></image>
<text wx:else>{{profileCard.avatarText}}</text>
</view>
2026-06-27 01:46:44 +08:00
<view class="profile-copy">
<text class="profile-name">{{profileCard.nickname}}</text>
<text class="profile-shop">{{profileCard.shopName}}</text>
2026-06-27 01:46:44 +08:00
</view>
2026-06-04 16:39:06 +08:00
</view>
2026-06-27 01:46:44 +08:00
<text class="role-badge">{{roleText}}</text>
2026-06-04 16:39:06 +08:00
</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>
2026-10-20 18:02:49 +08:00
<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>
2026-06-04 16:39:06 +08:00
<view class="section menu-list card">
2026-10-10 17:32:26 +08:00
<view wx:for="{{menus}}" wx:key="title" class="menu-row" data-url="{{item.url}}" bindtap="go">
2026-06-04 16:39:06 +08:00
<text>{{item.title}}</text>
<text class="arrow">›</text>
</view>
</view>
<button class="profile-logout" bindtap="logout">退出登录</button>
2026-06-27 15:19:32 +08:00
2026-06-04 16:39:06 +08:00
</view>