12345678910111213141516171819202122 |
- <!--components/userCard/userCard.wxml-->
- <view class="user-card " bind:tap="tapUserAction">
- <view class="flex flex-center" catch:tap="tapPersonalAction">
- <image class="{{layoutType== 1 ? 'user-img':'avatar'}}"
- src="{{authorInfo.avatar || '../../images/default_head.png'}}"></image>
- <view wx:if="{{layoutType== 1}}" class="flex flex-col flex-bet">
- <text class="user-name">{{authorInfo.userName}}</text>
- <text class="create-time">{{time}}</text>
- </view>
- <text wx:elif="{{layoutType== 2}}" class="name-time">{{ authorInfo.userName || "" }} · {{ time || '' }} </text>
- <view wx:else class="flex flex-center">
- <text class="user-name">{{authorInfo.userName}}</text>
- <text class="create-time">{{time}}</text>
- </view>
- </view>
- <view style="flex-shrink: 0;" wx:if="{{!isAuthor && isShowLike}}">
- <attention-btn is-attention="{{!!isLike}}" attention-id="{{authorInfo.id}}"></attention-btn>
- </view>
- <image class="more-icon" wx:if="{{isAuthor && isShowMore}}" catch:tap="tapDeleteAction" src='../../images/more.png'>
- </image>
- </view>
|