2026-06-04 16:39:06 +08:00
|
|
|
|
<view class="page">
|
|
|
|
|
|
<view class="card profile-card">
|
2026-07-22 18:03:28 +08:00
|
|
|
|
<view class="profile-card-head">
|
|
|
|
|
|
<view wx:if="{{userInfo.displayAvatar || shopCoverImage}}" class="shop-logo image-avatar">
|
|
|
|
|
|
<image src="{{userInfo.displayAvatar || shopCoverImage}}" mode="aspectFill"></image>
|
2026-07-20 01:22:37 +08:00
|
|
|
|
</view>
|
2026-07-22 18:03:28 +08:00
|
|
|
|
<view wx:else class="shop-logo">我</view>
|
2026-06-27 01:46:44 +08:00
|
|
|
|
<view class="profile-copy">
|
2026-07-22 18:03:28 +08:00
|
|
|
|
<view class="profile-title-row">
|
|
|
|
|
|
<text class="profile-name">{{userInfo.nickname || shopName}}</text>
|
|
|
|
|
|
<text class="role-badge">{{roleText}}</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="profile-meta-row">
|
|
|
|
|
|
<text class="profile-meta-label">登录账号</text>
|
|
|
|
|
|
<text class="profile-meta-value">{{userInfo.account || '未设置'}}</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="profile-meta-row">
|
|
|
|
|
|
<text class="profile-meta-label">手机号</text>
|
|
|
|
|
|
<text class="profile-meta-value">{{userInfo.phone || userInfo.contactPhone || phone || '未绑定'}}</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="shop-summary">
|
|
|
|
|
|
<text>当前所属店铺</text>
|
|
|
|
|
|
<view>{{shopName}}</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="profile-summary-grid">
|
|
|
|
|
|
<view class="profile-summary-item">
|
|
|
|
|
|
<text>身份</text>
|
|
|
|
|
|
<view>{{roleText}}</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="profile-summary-item">
|
|
|
|
|
|
<text>店铺</text>
|
|
|
|
|
|
<view>{{shopName}}</view>
|
2026-06-27 01:46:44 +08:00
|
|
|
|
</view>
|
2026-06-04 16:39:06 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<view class="section menu-list card">
|
2026-07-16 14:55:48 +08:00
|
|
|
|
<view wx:for="{{menus}}" wx:key="title" class="menu-row {{item.danger ? 'danger-row' : ''}}" data-url="{{item.url}}" data-action="{{item.action}}" bindtap="go">
|
|
|
|
|
|
<text>{{item.action === 'logout' && loggingOut ? '退出中...' : item.title}}</text>
|
|
|
|
|
|
<text wx:if="{{item.action !== 'logout'}}" class="arrow">›</text>
|
2026-06-04 16:39:06 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|