This commit is contained in:
zhaofang
2022-11-16 15:13:56 +08:00
parent 4c5a4f817f
commit fa3e8d362b
4 changed files with 6 additions and 13 deletions

View File

@@ -7,7 +7,7 @@
</view>
<view class="who-name">
<view class="name-info">
{{at.sysCreateBy}} <view class="who-time">{{at.sysCreateTime}}</view>
{{at.sysCreateBy}} <view class="who-time">{{at.sysCreateTime.split(' ')[0]}}</view>
</view>
<view class="info-text">
<text class="name-text-at">@</text>

View File

@@ -94,7 +94,7 @@
<u-popup :show="inputShow" @close="closeInput" :round="16">
<view>
<view style="padding: 60upx 30upx;">
<view><u--textarea confirmType="done" style="border: none;background: #F4F4F4;" :height="50" v-model="inputValue" placeholder="请输入内容" count ></u--textarea></view>
<view><u--textarea confirmType="done" style="border: none;background: #F4F4F4;" :height="50" v-model="inputValue" :placeholder="'回复 '+this.replyInfo.replyName" count ></u--textarea></view>
<view style="width:160upx;padding-top: 10px;line-height: 80upx;float: right;">
<view style="padding: 20upx;margin-top: 20upx;"><u-button style="padding: 2upx 30upx;height: 52upx;background: #87B3FF;border-color: #87B3FF;" @click="submitReply()" type="primary" text="发布"></u-button></view>
</view>

View File

@@ -58,7 +58,7 @@
<view style="padding: 40upx 44upx 32upx 22upx;">
<view ><u--textarea style="border: none;background: #F4F4F4;" :height="50" v-model="inputValue" placeholder="写下您的评论(140字以内),可以@作者哦~" count ></u--textarea></view>
<view style="padding-top: 10px;line-height: 80upx;display: flex;float: right;">
<view @click="usersClick()">@</view>
<!-- <view @click="usersClick()">@</view> -->
<view style="padding:20upx;"><u-button @click="submit" style="padding: 2upx 30upx;height: 52upx;background: #87B3FF;border-color: #87B3FF;" type="primary" text="发布"></u-button></view>
</view>
</view>

View File

@@ -186,7 +186,7 @@
<u--textarea style="border: none;background: #F4F4F4;" :height="50" v-model="answercontent" :placeholder="placeholder" count maxlength="200"></u--textarea>
</view>
<view style="padding: 0 10px 40upx 0;display: flex;justify-content: flex-end;">
<text v-if="replyLevel=='one'" @click="askQuestioner">@</text>
<!-- <text v-if="replyLevel=='one'" @click="askQuestioner">@</text> -->
<u-button style="padding: 10upx 30upx;height: 52upx;background: #87B3FF;border-color: #87B3FF;margin: 0 40upx 0 40upx;width: 200upx;" @click="submitReply" type="primary" size="small" :text="replyLevel=='one'? '提交回答':'提交回复'"></u-button>
</view>
</view>
@@ -276,10 +276,10 @@ export default {
computed: {
...mapGetters(['userInfo']),
placeholder(){
let txt='写下您的答案(200字以内),可以@提问者哦~';
let txt='写下你的回答吧···';
if(this.curItem && this.curItem.id){
//if(this.curItem.clevel>1){
txt='请写下您的回复(200字以内)';
txt=`回复 ${this.curItem.sysCreateBy}`;
//}
}
return txt;
@@ -362,7 +362,6 @@ export default {
uni.showLoading({title:'加载中...'})
let $this=this;
apiQa.detail(id).then(res => {
console.log(res,'res')
setTimeout(function(){ uni.hideLoading() },100);
if (res.status == 200) {
//处理图片
@@ -513,7 +512,6 @@ export default {
return item.content;
},
changeIsAll(item) {
//console.log(item,'isall');
item.isAll=!item.isAll;
},
messageSave(refId,title,sendName,acceptName,acceptId,typeText){
@@ -549,7 +547,6 @@ export default {
uni.showToast({title:"设置成功" ,duration: 2000})
this.btnsShow=false
this.answerList=[]
//console.log("我经过这里面美哟")
this.getAnswerList(this.questionId)
let event = {
key: "AnswerBest",//设置为最佳答案
@@ -793,9 +790,6 @@ export default {
this.curParentId='';
this.answercontent='';
this.loadUserInfos([res.result],[res.result.sysCreateAid]);
//console.log(this.curItem,'this.curItem');
//console.log(this.curParent,'this.curParent');
//if(this.curItem.id)
if(this.curItem.clevel<3){
if(!this.curItem.answers){
this.curItem.answers=[];
@@ -851,7 +845,6 @@ export default {
this.answerList[index].isPraise=true;
this.answerList[index].praises++;
this.$refs.interactToast.show({message:'点赞成功',type:'success'});
//console.log(this.answerList[index],'content)')
this.messageSave(this.answerList[index].id,this.answerList[index].content,this.userInfo.name,this.answerList[index].sysCreateBy,this.answerList[index].sysCreateAid,'点赞了我的');
}else{