dever 4 years ago
parent
commit
adc820ffc7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/community/y-DiaryItem/y-DiaryItem.vue

+ 2 - 2
lib/community/y-DiaryItem/y-DiaryItem.vue

@@ -5,7 +5,7 @@
 				<view class="cu-item">
 					<image :src="item.user.avatar" mode="widthFix" class="cu-avatar round lg" @click="Dever.viewPic([item.user.avatar], item.user.avatar)"></image>
 					<view class="content flex-sub">
-						<view>{{ item.user.username }}<text v-if="item.user.title" style="margin-left:10rpx">({{item.user.title}})</text><text v-if="item.user.author" style="margin-left:10rpx">[{{item.user.author}}]</text></view>
+						<view><text v-if="item.user.author" style="margin-right:10rpx;color: #00B3FF;">[{{item.user.author}}]</text>{{ item.user.username }}<text v-if="item.user.title" style="margin-left:10rpx">({{item.user.title}})</text></view>
 						<view class="text-gray text-sm flex justify-between">
 							{{ item.cdate_string }}
 						</view>
@@ -47,7 +47,7 @@
 				<view class="cu-item" v-for="(v, k) in item.child" :key="k">
 					<image :src="v.user.avatar" mode="widthFix" class="cu-avatar round"></image>
 					<view class="content">
-						<view class="text-grey">{{v.user.username}}<text v-if="v.user.title" style="margin-left:10rpx">({{v.user.title}})</text></view>
+						<view class="text-grey"><text v-if="v.user.author" style="margin-right:10rpx;">[{{v.user.author}}]</text>{{v.user.username}}<text v-if="v.user.title" style="margin-left:10rpx">({{v.user.title}})</text></view>
 						<view class="text-content text-df text-content-margin">
 							<text class="text-grey" v-if="v.to_uid > 0">回复@{{v.to_user.username}}:</text> {{v.content}}
 						</view>