Commit 13db9de5 authored by Mac's avatar Mac

1

parent fbff1f34
...@@ -322,7 +322,7 @@ ...@@ -322,7 +322,7 @@
<view class="areagood" v-if=" x.commentList.length>0"> <view class="areagood" v-if=" x.commentList.length>0">
<u-icon name="comment-o" :size="30" color="#737373" style='margin-top: 2px;'></u-icon> <u-icon name="comment-o" :size="30" color="#737373" style='margin-top: 2px;'></u-icon>
<view class="areagood-r"> <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"> <view class="text comment-list">
{{item.empName}} {{item.empName}}
<text style="color: #333333;margin: 0 3px;" v-if="item.byReplayEmpId>0">回复</text> <text style="color: #333333;margin: 0 3px;" v-if="item.byReplayEmpId>0">回复</text>
...@@ -337,10 +337,11 @@ ...@@ -337,10 +337,11 @@
</view> </view>
</view> </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> </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'> <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 class="comment-pl" :style="{background:mainColor}" @click="addComment">评论</view>
</view> </view>
...@@ -362,16 +363,19 @@ ...@@ -362,16 +363,19 @@
</view> </view>
</u-popup> </u-popup>
</view> </view>
<tabbar></tabbar>
</div> </div>
</template> </template>
<script> <script>
const innerAudioContext = uni.createInnerAudioContext(); 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 { export default {
components: { components: {
auth, auth,
tabbar
}, },
data() { data() {
return { return {
...@@ -627,6 +631,17 @@ ...@@ -627,6 +631,17 @@
this.g[this.dianindex].dianshow =false; 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){ huifu(x,i,item,iq){
this.user={ this.user={
x:x, x:x,
......
...@@ -69,12 +69,8 @@ ...@@ -69,12 +69,8 @@
{{x.createEmName}} {{x.createEmName}}
</view> </view>
<view v-if="x.realtionType==1"> <view v-if="x.realtionType==1">
<view>{{x.replyName==''?'回复了':'评论了'}} <text class="text" style="margin-left: 3px;">{{x.replyName}}</text></view> <view>{{x.replyName!=''?'回复了':'评论了'}} <text class="text" style="margin-left: 3px;">{{x.replyName}}</text></view>
<view style="overflow: hidden; <view style="">
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;">
{{x.commentContent}} {{x.commentContent}}
</view> </view>
</view> </view>
...@@ -84,7 +80,8 @@ ...@@ -84,7 +80,8 @@
<view style="font-size: 11px;color: #B0B0B0;">{{x.createTime}}</view> <view style="font-size: 11px;color: #B0B0B0;">{{x.createTime}}</view>
</view> </view>
<view class="ftBox-right"> <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}} {{x.content}}
</view> </view>
<view class="ftBox-right-text" v-if="x.fileType==1"> <view class="ftBox-right-text" v-if="x.fileType==1">
......
...@@ -279,7 +279,7 @@ ...@@ -279,7 +279,7 @@
<view class="areagood" v-if=" detial.commentList.length>0"> <view class="areagood" v-if=" detial.commentList.length>0">
<u-icon name="comment-o" :size="30" color="#737373" style='margin-top: 2px;'></u-icon> <u-icon name="comment-o" :size="30" color="#737373" style='margin-top: 2px;'></u-icon>
<view class="areagood-r"> <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"> <view class="text comment-list">
{{item.empName}} {{item.empName}}
<text style="color: #333333;margin: 0 3px;" v-if="item.byReplayEmpId>0">回复</text> <text style="color: #333333;margin: 0 3px;" v-if="item.byReplayEmpId>0">回复</text>
...@@ -295,8 +295,8 @@ ...@@ -295,8 +295,8 @@
</view> </view>
</view> </view>
<!-- 输入框 --> <!-- 输入框 -->
<view class="comment" :style="{'bottom':'5px'}"> <view class="comment" >
<input type="text" v-model="commentMsg.Content" :placeholder='placeholder' class="commentinput" :focus='focu' @focus='getfocus'> <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 class="comment-pl" :style="{background:mainColor}" @click.stop="addComment">评论</view>
</view> </view>
...@@ -445,6 +445,16 @@ ...@@ -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){ huifu(x,item,iq){
this.user={ this.user={
x:x, 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