76 lines
2.6 KiB
Plaintext
76 lines
2.6 KiB
Plaintext
<view class="ui-rec" wx:if="{{recommendation}}">
|
|
<view class="ui-rec__header" bindtap="onViewDetail">
|
|
<ui-avatar
|
|
src="{{recommendation.avatarUrl}}"
|
|
size="xl"
|
|
verified="{{recommendation.verified}}"
|
|
reviewed="{{recommendation.reviewed}}"
|
|
default-text="{{recommendation.displayName}}"
|
|
/>
|
|
<view class="ui-rec__info">
|
|
<view class="ui-rec__name-row">
|
|
<text class="ui-rec__name">{{recommendation.displayName}}</text>
|
|
<text class="ui-rec__age">{{recommendation.age}}岁</text>
|
|
</view>
|
|
<view class="ui-rec__meta">
|
|
<text wx:if="{{recommendation.heightCm}}">{{recommendation.heightCm}}cm · </text>
|
|
<text>{{recommendation.regionName}}</text>
|
|
<text wx:if="{{recommendation.educationCode}}"> · {{recommendation.educationCode}}</text>
|
|
</view>
|
|
<view wx:if="{{recommendation.occupationCode}}" class="ui-rec__meta">
|
|
{{recommendation.occupationCode}}
|
|
</view>
|
|
<view wx:if="{{recommendation.maritalStatus || recommendation.hasChildren}}" class="ui-rec__meta">
|
|
<text wx:if="{{recommendation.maritalStatus}}">{{recommendation.maritalStatus}}</text>
|
|
<text wx:if="{{recommendation.hasChildren}}"> · 有孩</text>
|
|
</view>
|
|
<view wx:if="{{recommendation.photoUrls}}" class="ui-rec__photo-count">
|
|
{{recommendation.photoUrls.length}} 张生活照
|
|
</view>
|
|
</view>
|
|
<view
|
|
wx:if="{{recommendation.recommendationLevel}}"
|
|
class="ui-rec__level ui-rec__level--{{recommendation.recommendationLevel}}"
|
|
>
|
|
{{levelTextMap[recommendation.recommendationLevel]}}
|
|
</view>
|
|
</view>
|
|
|
|
<view
|
|
wx:if="{{recommendation.recommendationReasons && recommendation.recommendationReasons.length}}"
|
|
class="ui-rec__reasons"
|
|
>
|
|
<view class="ui-rec__reasons-title">为什么推荐给你</view>
|
|
<view
|
|
wx:for="{{recommendation.recommendationReasons}}"
|
|
wx:key="*this"
|
|
class="ui-rec__reason"
|
|
>✓ {{item}}</view>
|
|
</view>
|
|
|
|
<view wx:if="{{recommendation.intro}}" class="ui-rec__intro">
|
|
{{recommendation.intro}}
|
|
</view>
|
|
|
|
<view wx:if="{{showActions}}" class="ui-rec__actions">
|
|
<ui-button
|
|
variant="ghost"
|
|
size="md"
|
|
disabled="{{actionLoading}}"
|
|
class="ui-rec__btn-pass"
|
|
bindtap="onPass"
|
|
>不合适</ui-button>
|
|
<ui-button
|
|
variant="primary"
|
|
size="md"
|
|
loading="{{actionLoading}}"
|
|
class="ui-rec__btn-like"
|
|
bindtap="onLike"
|
|
>喜欢</ui-button>
|
|
</view>
|
|
|
|
<view class="ui-rec__more">
|
|
<text class="ui-rec__more-text" catchtap="onBlock">拉黑该用户</text>
|
|
</view>
|
|
</view>
|