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

63 lines
2.6 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 wx:for="{{managementMenus}}" wx:key="title" class="menu-row" data-url="{{item.url}}" bindtap="go">
<view class="menu-mark">{{item.mark}}</view>
<view class="menu-copy">
<text class="menu-title">{{item.title}}</text>
<text class="menu-desc">{{item.desc}}</text>
</view>
<text class="arrow">›</text>
</view>
</view>
</view>
<view class="menu-section">
<text class="section-title">设置与帮助</text>
<view class="menu-card">
<view wx:for="{{settingMenus}}" wx:key="title" class="menu-row {{item.disabled ? 'disabled' : ''}}" data-url="{{item.url}}" bindtap="go">
<view class="menu-mark">{{item.mark}}</view>
<view class="menu-copy">
<text class="menu-title">{{item.title}}</text>
<text class="menu-desc">{{item.desc}}</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>