Files
JayuCloud/JC-Salon-WeChat/pages/profile/index.wxml
T
xiaowang 1482bda1fa
自动发布开发环境 Nacos 配置 / publish (push) Successful in 27s
小程序浮层动作项按钮化并统一按钮样式
2026-11-07 00:38:22 +08:00

65 lines
3.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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" binderror="onProfileAvatarError"></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>
<view wx:if="{{identityRole}}" class="role-switch">
<text class="role-chip {{activeRole === 'manager' ? 'is-active' : ''}}" data-role="manager" bindtap="switchRole">店长</text>
<text class="role-chip {{activeRole === 'artist' ? 'is-active' : ''}}" data-role="artist" bindtap="switchRole">美甲师</text>
</view>
<text wx:else 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>
<button class="profile-logout" bindtap="logout">退出登录</button>
<action-modal id="actionModal" />
</view>