Commit 13db9de5 authored by Mac's avatar Mac

1

parent fbff1f34
......@@ -322,7 +322,7 @@
<view class="areagood" v-if=" x.commentList.length>0">
<u-icon name="comment-o" :size="30" color="#737373" style='margin-top: 2px;'></u-icon>
<view class="areagood-r">
<view v-for="(item, iq) in x.commentList" :key="iq" style="width: 100%;margin-bottom: 7px;" @click="huifu(x,i,item,iq)">
<view v-for="(item, iq) in x.commentList" :key="iq" style="width: 100%;margin-bottom: 7px;" @click="huifu(x,i,item,iq)" @longpress='longpress(x,i,item,iq)'>
<view class="text comment-list">
{{item.empName}}
<text style="color: #333333;margin: 0 3px;" v-if="item.byReplayEmpId>0">回复</text>
......@@ -337,10 +337,11 @@
</view>
</view>
</view>
<u-loadmore :status="status" :load-text="loadText" :font-size="24" :margin-top="20" :margin-bottom="20" bg-color="#FFF" />
<u-loadmore :status="status" :load-text="loadText" :font-size="24" :margin-top="20" :margin-bottom="20" bg-color="#FFF" />
<view style="width: 100%;height: 60px;"></view>
</scroll-view>
<!-- 输入框 -->
<view class="comment" v-if="focu==true" :style="{'bottom':'5px'}">
<view class="comment" v-if="focu==true" >
<input type="text" v-model="commentMsg.Content" :placeholder='placeholder' class="commentinput" :focus='focu' @focus='getfocus' @keyboardheightchange='keyboardheight'>
<view class="comment-pl" :style="{background:mainColor}" @click="addComment">评论</view>
</view>
......@@ -362,16 +363,19 @@
</view>
</u-popup>
</view>
</view>
<tabbar></tabbar>
</div>
</template>
<script>
const innerAudioContext = uni.createInnerAudioContext();
import auth from "../../components/auth/index.vue";
import auth from "../../components/auth/index.vue";
import tabbar from "@/components/tabbar/index";
export default {
components: {
auth,
auth,
tabbar
},
data() {
return {
......@@ -627,6 +631,17 @@
this.g[this.dianindex].dianshow =false;
},
longpress(x,i,item,iq){
if(x.createEmpId == this.msg.UserId){
this.user={
x:x,
i:i,
item:item,
iq:iq,
}
this.show=true
}
},
huifu(x,i,item,iq){
this.user={
x:x,
......
......@@ -69,12 +69,8 @@
{{x.createEmName}}
</view>
<view v-if="x.realtionType==1">
<view>{{x.replyName==''?'回复了':'评论了'}} <text class="text" style="margin-left: 3px;">{{x.replyName}}</text></view>
<view style="overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;">
<view>{{x.replyName!=''?'回复了':'评论了'}} <text class="text" style="margin-left: 3px;">{{x.replyName}}</text></view>
<view style="">
{{x.commentContent}}
</view>
</view>
......@@ -84,7 +80,8 @@
<view style="font-size: 11px;color: #B0B0B0;">{{x.createTime}}</view>
</view>
<view class="ftBox-right">
<view class="ftBox-right-text" style="padding: 6px;" v-if="x.fileType==0">
<view class="ftBox-right-text" style="padding: 6px;overflow: hidden;
" v-if="x.fileType==0">
{{x.content}}
</view>
<view class="ftBox-right-text" v-if="x.fileType==1">
......
......@@ -279,7 +279,7 @@
<view class="areagood" v-if=" detial.commentList.length>0">
<u-icon name="comment-o" :size="30" color="#737373" style='margin-top: 2px;'></u-icon>
<view class="areagood-r">
<view v-for="(item, iq) in detial.commentList" :key="iq" style="width: 100%;margin-bottom: 7px;" @click.stop="huifu(detial,item,iq)">
<view v-for="(item, iq) in detial.commentList" :key="iq" style="width: 100%;margin-bottom: 7px;" @click.stop="huifu(detial,item,iq)" @longpress='longpress(detial,item,iq)'>
<view class="text comment-list">
{{item.empName}}
<text style="color: #333333;margin: 0 3px;" v-if="item.byReplayEmpId>0">回复</text>
......@@ -295,8 +295,8 @@
</view>
</view>
<!-- 输入框 -->
<view class="comment" :style="{'bottom':'5px'}">
<input type="text" v-model="commentMsg.Content" :placeholder='placeholder' class="commentinput" :focus='focu' @focus='getfocus'>
<view class="comment" >
<input type="text" v-model="commentMsg.Content" :placeholder='placeholder' class="commentinput" :focus='focu' @focus='getfocus' >
<view class="comment-pl" :style="{background:mainColor}" @click.stop="addComment">评论</view>
</view>
......@@ -445,6 +445,16 @@
}
);
},
longpress(x,item,iq){
if(x.createEmpId == this.UserId){
this.user={
x:x,
item:item,
iq:iq,
}
this.show=true
}
},
huifu(x,item,iq){
this.user={
x:x,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment