Files
JayuCloud/JC-Salon-WeChat/pages/profile/index.wxml
T
xiaowang 60d9bba61a 小程序页面视觉对齐二期:预约图片轮播、订单数据预览、微信用户关联与请假管理
新增预约详情作品图片轮播字段与组装;新增订单预览与未关联微信用户候选接口;补齐请假记录查询接口;订单数据预览改为四列;请假管理接入真实排班例外并支持新增;日程、我的、美甲师详情与改派选择器按设计稿微调;注册结果页与申请提交时间对齐设计稿。
2026-11-06 14:34:02 +08:00

64 lines
3.0 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>
</view>