feat: 重构律师列表卡片展示
- 简化筛选栏与列表快捷入口 - 为律师卡片增加 featured 布局和联系方式展示
This commit is contained in:
@@ -1,21 +1,30 @@
|
||||
<view class="lawyer-card" bindtap="handleTap">
|
||||
<view class="lawyer-card {{layoutClass}}" bindtap="handleTap">
|
||||
<image class="avatar" src="{{lawyer.avatar}}" mode="aspectFill"></image>
|
||||
|
||||
<view class="content">
|
||||
<view class="header-row">
|
||||
<text class="name">{{lawyer.name}}</text>
|
||||
<text class="title">{{lawyer.title}}</text>
|
||||
</view>
|
||||
|
||||
<text wx:if="{{showOffice}}" class="office">{{lawyer.office}}</text>
|
||||
|
||||
<view class="tags-row">
|
||||
<text class="tag" wx:for="{{specialties}}" wx:key="*this" wx:if="{{index < 3}}">{{item}}</text>
|
||||
<text class="tag-more" wx:if="{{specialties.length > 3}}">...</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="action-col">
|
||||
<text class="consult-btn">咨询</text>
|
||||
<view class="content">
|
||||
<view class="top-row">
|
||||
<view class="identity-block">
|
||||
<view class="header-row">
|
||||
<text class="name">{{lawyer.name}}</text>
|
||||
<text class="title" wx:if="{{lawyer.title}}">{{lawyer.title}}</text>
|
||||
</view>
|
||||
|
||||
<view class="contact-row" wx:if="{{contactItems.length}}">
|
||||
<text class="contact-chip" wx:for="{{contactItems}}" wx:key="*this">{{item}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="action-col">
|
||||
<text class="consult-btn">咨询</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="specialty-block">
|
||||
<text class="specialty-label" wx:if="{{isFeatured && visibleSpecialties.length}}">业务方向</text>
|
||||
<view class="tags-row">
|
||||
<text class="tag" wx:for="{{visibleSpecialties}}" wx:key="*this">{{item}}</text>
|
||||
<text class="tag-more" wx:if="{{moreSpecialtiesCount > 0}}">...</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user