|
1 | | -<navigator class="topic-container" url="/pages/topic/topic?id={{data.id}}"> |
2 | | - <view class="topic-header"> |
3 | | - <view style="margin-bottom: 20rpx;"> |
4 | | - <!-- 主题标签 --> |
5 | | - <topic-tag type="{{ data.tab }}"></topic-tag> |
6 | | - <view class="topic-header-right"> |
7 | | - <!-- 主题回复数 --> |
8 | | - <text style="color: #8EB63D;">{{ data.reply_count }}</text> |
9 | | - <text style="padding: 0 5rpx;">/</text> |
10 | | - <!-- 主题访问数 --> |
11 | | - <text>{{ data.visit_count }}</text> |
12 | | - <text style="padding: 0 5rpx;">·</text> |
13 | | - <!-- 主题最后一次回复的时间 --> |
14 | | - <text>{{ data.last_reply_at }}</text> |
| 1 | +<view class="topic-container"> |
| 2 | + <view class="topic-main" hover-class="navigator-hover" bindtap="fnTapJumpTopicDetail"> |
| 3 | + <view class="topic-header"> |
| 4 | + <view style="margin-bottom: 20rpx;"> |
| 5 | + <!-- 主题标签 --> |
| 6 | + <topic-tag type="{{ data.tab }}"></topic-tag> |
| 7 | + <view class="topic-header-right"> |
| 8 | + <!-- 主题回复数 --> |
| 9 | + <text style="color: #8EB63D;">{{ data.reply_count }}</text> |
| 10 | + <text style="padding: 0 5rpx;">/</text> |
| 11 | + <!-- 主题访问数 --> |
| 12 | + <text>{{ data.visit_count }}</text> |
| 13 | + <text style="padding: 0 5rpx;">·</text> |
| 14 | + <!-- 主题最后一次回复的时间 --> |
| 15 | + <text>{{ data.last_reply_at }}</text> |
| 16 | + </view> |
15 | 17 | </view> |
| 18 | + <!-- 主题标题 --> |
| 19 | + <view class="topic-title">{{ data.title }}</view> |
16 | 20 | </view> |
17 | | - <!-- 主题标题 --> |
18 | | - <view class="topic-title">{{ data.title }}</view> |
| 21 | + <!-- 主题内容 --> |
| 22 | + <view class="topic-content">{{ data.content }}</view> |
19 | 23 | </view> |
20 | | - <!-- 主题内容 --> |
21 | | - <view class="topic-content">{{ data.content }}</view> |
22 | 24 | <view class="topic-divide"></view> |
23 | | - <view class="topic-footer clear-float"> |
| 25 | + <view class="topic-footer clear-float" hover-class="navigator-hover" bindtap="fnTapJumpUserProfile"> |
24 | 26 | <view class="topic-footer-left clear-float"> |
25 | 27 | <!-- 主题作者头像 --> |
26 | | - <image class="topic-author-avatar" wx:if="{{ data.avatar_url }}" src="{{ data.avatar_url }}" /> |
| 28 | + <image class="topic-author-avatar rounded-p50" wx:if="{{ data.avatar_url }}" src="{{ data.avatar_url }}" /> |
27 | 29 | <!-- 主题作者名称 --> |
28 | 30 | <text class="topic-author-name" wx:if="{{ data.loginname }}">{{ data.loginname }}</text> |
29 | 31 | </view> |
|
33 | 35 | <text>{{ data.create_at }}</text> |
34 | 36 | </view> |
35 | 37 | </view> |
36 | | -</navigator> |
| 38 | +</view> |
0 commit comments