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

119 lines
4.8 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 profile-page">
<view class="profile-hero">
<view class="hero-main">
<view wx:if="{{userInfo.displayAvatar || shopCoverImage}}" class="hero-avatar image-avatar">
<image src="{{userInfo.displayAvatar || shopCoverImage}}" mode="aspectFill"></image>
</view>
<view wx:else class="hero-avatar hero-avatar-empty">我</view>
<view class="hero-copy">
<view class="hero-title-row">
<text class="hero-title">{{userInfo.nickname || shopName}}</text>
<text class="role-badge">{{roleText}}</text>
</view>
<view class="shop-line" data-url="/pages/shop-settings/index" bindtap="go">
<text>{{shopName}}</text>
<text class="hero-arrow">›</text>
</view>
<view class="business-line">
<text class="status-badge {{businessStatusClass}}">{{businessStatusText}}</text>
<text class="business-hours">{{businessHoursText}}</text>
</view>
</view>
</view>
<view class="stats-card">
<view wx:for="{{dashboardStats}}" wx:key="label" class="stat-item">
<view class="stat-mark">{{item.mark}}</view>
<text class="stat-label">{{item.label}}</text>
<view class="stat-value">{{item.value}}</view>
<text wx:if="{{item.unit}}" class="stat-unit">{{item.unit}}</text>
</view>
</view>
</view>
<view class="menu-section">
<text class="section-title">我的管理</text>
<view class="menu-card">
<view class="menu-row" data-url="/pages/shop-settings/index" bindtap="go">
<view class="menu-mark">店</view>
<view class="menu-copy">
<text class="menu-title">我的店铺</text>
<text class="menu-desc">店铺信息、营业设置等</text>
</view>
<text class="arrow">›</text>
</view>
<view class="menu-row" data-url="/pages/employees/index" bindtap="go">
<view class="menu-mark">员</view>
<view class="menu-copy">
<text class="menu-title">员工管理</text>
<text class="menu-desc">员工信息、排班与权限</text>
</view>
<text class="arrow">›</text>
</view>
<view class="menu-row" data-url="/pages/customers/index" bindtap="go">
<view class="menu-mark">会</view>
<view class="menu-copy">
<text class="menu-title">会员管理</text>
<text class="menu-desc">客户管理、会员等级</text>
</view>
<text class="arrow">›</text>
</view>
<view class="menu-row" data-url="/pages/export/index" bindtap="go">
<view class="menu-mark">数</view>
<view class="menu-copy">
<text class="menu-title">经营数据</text>
<text class="menu-desc">营业统计、数据分析</text>
</view>
<text class="arrow">›</text>
</view>
</view>
</view>
<view class="menu-section">
<text class="section-title">设置与帮助</text>
<view class="menu-card">
<view class="menu-row" data-url="/pages/profile-settings/index" bindtap="go">
<view class="menu-mark">人</view>
<view class="menu-copy">
<text class="menu-title">个人资料</text>
<text class="menu-desc">头像、昵称、联系方式等</text>
</view>
<text class="arrow">›</text>
</view>
<view class="menu-row" data-url="/pages/password/index" bindtap="go">
<view class="menu-mark">安</view>
<view class="menu-copy">
<text class="menu-title">账号与安全</text>
<text class="menu-desc">修改密码、绑定手机号等</text>
</view>
<text class="arrow">›</text>
</view>
<view class="menu-row" data-url="" bindtap="go">
<view class="menu-mark">知</view>
<view class="menu-copy">
<text class="menu-title">消息通知</text>
<text class="menu-desc">系统通知与消息偏好</text>
</view>
<text class="arrow">›</text>
</view>
<view class="menu-row" data-url="/pages/about/index" bindtap="go">
<view class="menu-mark">?</view>
<view class="menu-copy">
<text class="menu-title">帮助中心</text>
<text class="menu-desc">使用帮助与常见问题</text>
</view>
<text class="arrow">›</text>
</view>
<view class="menu-row" data-url="/pages/about/index" bindtap="go">
<view class="menu-mark">关</view>
<view class="menu-copy">
<text class="menu-title">关于甲屿店务</text>
<text class="menu-desc">当前版本 1.2.0</text>
</view>
<text class="arrow">›</text>
</view>
</view>
</view>
<button class="logout-card" loading="{{loggingOut}}" disabled="{{loggingOut}}" data-action="logout" bindtap="go">{{loggingOut ? '退出中...' : '退出登录'}}</button>
</view>