|
@@ -161,9 +161,12 @@
|
|
|
</view>
|
|
|
<scroll-view class="comment-list-cont" v-if="comment_obj.total" scroll-y>
|
|
|
<view class="comment-list-item" v-for="(item,index) in commentList" :key="item.community_question_comment_id">
|
|
|
- <view class="comment">
|
|
|
- <text style="color: #333;">{{item.user_name}}:</text>
|
|
|
- {{item.content}}
|
|
|
+ <view class="flex comment">
|
|
|
+ <image class="avatar" :src="item.qa_avatar_url" mode="aspectFill" lazy-load="true"/>
|
|
|
+ <view>{{item.content}}</view>
|
|
|
+
|
|
|
+ <!-- <text style="color: #333;">{{item.user_name}}:</text>
|
|
|
+ {{item.content}} -->
|
|
|
</view>
|
|
|
<view class="del" v-if="select_comment_type === 2" @click="delCommentHandle(item,index)">删除该评论</view>
|
|
|
</view>
|
|
@@ -181,7 +184,6 @@
|
|
|
:show-confirm-bar="false"
|
|
|
:cursor-spacing="20"
|
|
|
class="write-ipt"
|
|
|
- @focus="checkNickHandle"
|
|
|
@blur="setWritePosition(50)"
|
|
|
/>
|
|
|
<view class="confirm-btn" @click="publishMessageHandle">发布</view>
|
|
@@ -436,8 +438,13 @@ export default {
|
|
|
console.log(val)
|
|
|
this.writeBottom = val < 50 ? 50 : val;
|
|
|
},
|
|
|
+
|
|
|
|
|
|
/* 校验昵称状态*/
|
|
|
+ /**
|
|
|
+ * 此方法不在调用(但是还是留着吧 万一哪天又要用呢)
|
|
|
+ * 改版不用再校验是否设置过昵称,老板说要和报告不一样并且要好玩,所以改成随机生成的头像昵称(当然是后端去生成)
|
|
|
+ */
|
|
|
async checkNickHandle(e) {
|
|
|
this.setWritePosition(e.detail.height);
|
|
|
|
|
@@ -723,10 +730,27 @@ page {
|
|
|
position: relative;
|
|
|
padding: 30rpx 0;
|
|
|
.comment-list-item {
|
|
|
- margin-bottom: 30rpx;
|
|
|
- padding: 0 24rpx;
|
|
|
- .comment { color: #666; }
|
|
|
- .del { color: #D80000;margin-top: 10rpx;width: 200rpx; }
|
|
|
+ margin-bottom: 30rpx;
|
|
|
+ padding: 0 24rpx;
|
|
|
+ .comment {
|
|
|
+ color: #666;
|
|
|
+ .avatar{
|
|
|
+ width: 56rpx;
|
|
|
+ height: 56rpx;
|
|
|
+ border-radius: 50%;
|
|
|
+ flex-shrink: 0;
|
|
|
+ margin-right: 20rpx;
|
|
|
+ }
|
|
|
+ view{
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .del {
|
|
|
+ color: #D80000;
|
|
|
+ margin-top: 10rpx;
|
|
|
+ margin-left: 76rpx;
|
|
|
+ width: 200rpx;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.write-wrap {
|