99 lines
3.8 KiB
Plaintext
99 lines
3.8 KiB
Plaintext
<view class="artist-page">
|
||
<view class="page-header">
|
||
<view class="back-btn" bindtap="handleBack">‹</view>
|
||
<text class="page-title">{{artistName}}</text>
|
||
<view class="header-spacer"></view>
|
||
</view>
|
||
|
||
<view wx:if="{{loading}}" class="state-box">
|
||
<text>加载中...</text>
|
||
</view>
|
||
|
||
<view wx:elif="{{loadError}}" class="state-box">
|
||
<text class="state-title">暂时无法查看个人页</text>
|
||
<text class="state-desc">{{loadError}}</text>
|
||
<view class="primary-btn" bindtap="handleRetry">重试</view>
|
||
</view>
|
||
|
||
<scroll-view wx:else scroll-y class="content-scroll">
|
||
<view class="hero">
|
||
<image class="hero-image" src="{{heroImage}}" mode="aspectFill"></image>
|
||
<view class="hero-mask"></view>
|
||
<view class="artist-card">
|
||
<image wx:if="{{profile.avatar}}" class="avatar" src="{{profile.avatar}}" mode="aspectFill"></image>
|
||
<view wx:else class="avatar placeholder">艺</view>
|
||
<view class="artist-main">
|
||
<text class="artist-name">{{artistName}}</text>
|
||
<text class="artist-desc">{{artistDesc}}</text>
|
||
<view class="shop-link" bindtap="handleOpenShop">{{shopName}}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="metrics">
|
||
<view class="metric-item">
|
||
<text>评分</text>
|
||
<text class="metric-value">{{ratingText}}</text>
|
||
</view>
|
||
<view class="metric-item">
|
||
<text>服务</text>
|
||
<text class="metric-value">{{serviceCountText}}</text>
|
||
</view>
|
||
<view class="metric-item">
|
||
<text>工时</text>
|
||
<text class="metric-value">{{workTimeText}}</text>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="section">
|
||
<view class="section-head">擅长风格</view>
|
||
<view class="tag-list" wx:if="{{styleTags.length}}">
|
||
<text class="tag" wx:for="{{styleTags}}" wx:key="*this">{{item}}</text>
|
||
</view>
|
||
<text wx:else class="empty-text">暂未设置风格标签</text>
|
||
</view>
|
||
|
||
<view class="section">
|
||
<view class="section-head">近期可预约</view>
|
||
<view class="slot-grid" wx:if="{{availability.length}}">
|
||
<view class="slot" wx:for="{{availability}}" wx:key="startTime">
|
||
<text>{{item.dateText}}</text>
|
||
<text class="slot-time">{{item.timeText}}</text>
|
||
</view>
|
||
</view>
|
||
<text wx:else class="empty-text">近期暂未放出可预约时间</text>
|
||
</view>
|
||
|
||
<view class="section">
|
||
<view class="section-head">作品</view>
|
||
<view class="work-grid" wx:if="{{works.length}}">
|
||
<view class="work-card" wx:for="{{works}}" wx:key="id" data-id="{{item.id}}" bindtap="handleOpenWork">
|
||
<image src="{{item.coverImageUrl}}" mode="aspectFill"></image>
|
||
<text class="work-title">{{item.title}}</text>
|
||
<text class="work-price">{{item.priceText}}</text>
|
||
</view>
|
||
</view>
|
||
<text wx:else class="empty-text">作品正在整理中</text>
|
||
</view>
|
||
|
||
<view class="section">
|
||
<view class="section-head">评价 {{reviews.length}}</view>
|
||
<view class="review-list" wx:if="{{reviews.length}}">
|
||
<view class="review-card" wx:for="{{reviews}}" wx:key="id">
|
||
<view class="review-top">
|
||
<image wx:if="{{item.customerAvatar}}" class="review-avatar" src="{{item.customerAvatar}}" mode="aspectFill"></image>
|
||
<view wx:else class="review-avatar placeholder">客</view>
|
||
<view class="review-meta">
|
||
<text>{{item.customerName}}</text>
|
||
<text>{{item.submittedAtText}}</text>
|
||
</view>
|
||
<text class="review-score">{{item.ratingText}}</text>
|
||
</view>
|
||
<text class="review-content">{{item.content}}</text>
|
||
</view>
|
||
</view>
|
||
<text wx:else class="empty-text">还没有公开评价</text>
|
||
</view>
|
||
</scroll-view>
|
||
</view>
|