Commit 88c68fef authored by 罗林杰's avatar 罗林杰

修改bug

parent dc585fdd
...@@ -230,12 +230,14 @@ export default { ...@@ -230,12 +230,14 @@ export default {
title: '报名成功!', title: '报名成功!',
icon: 'none' icon: 'none'
}) })
this.isApplication = true
setTimeout(() => { setTimeout(() => {
this.show = false this.show = false
this.getUserInfo() this.getUserInfo()
this.getActivityDetail() this.getActivityDetail()
},500) },200)
} else if(res.data.code !== 200){ } else if(res.data.code !== 200){
this.isApplication = false
uni.showToast({ uni.showToast({
title: res.data.message, title: res.data.message,
icon: 'none' icon: 'none'
......
<template> <template>
<view style="margin-bottom: 150rpx"> <view style="padding-bottom: 150rpx">
<view> <view>
<ArticleItem @delete="deleteFn" :isTopicName="isTopicName" :info="articleInfo" @close="close" @open="open"/> <ArticleItem @delete="deleteFn" :isTopicName="isTopicName" :info="articleInfo" @close="close" @open="open"/>
</view> </view>
...@@ -13,32 +13,33 @@ ...@@ -13,32 +13,33 @@
<text>点赞 {{articleInfo.likeCount}}</text> <text>点赞 {{articleInfo.likeCount}}</text>
</view> </view>
</view> </view>
<view class="comment" v-for="info in articleInfo.articleCommentVOList" :key="info.id"> <view>
<div class="c-left"> <view class="comment" v-for="info in articleInfo.articleCommentVOList" :key="info.id">
<image :src="info.avatarUrl"></image> <div class="c-left">
</div> <image :src="info.avatarUrl"></image>
<div class="c-right" @click="()=>reply(info)">
<div class="c-name">
{{ info.memNickName }}
</div> </div>
<div class="c-comment">{{ info.content }}</div> <div class="c-right" @click="()=>reply(info)">
<div class="c-actions"> <div class="c-name">
<div class="c-time">{{ info.createDate }}</div> {{ info.memNickName }}
<div class="action-item">
<image :src="baseUrl+'/article/104.png'" @click="btnComment(info)"></image>
<text>
{{ info.commentCount }}
</text>
</div> </div>
<div class="action-item"> <div class="c-comment">{{ info.content }}</div>
<image @click="()=>praise(info)" :src="info.isLike == '0'? baseUrl+'/article/105.png': baseUrl+'/article/105-no.png'"></image> <div class="c-actions">
{{ info.likeCount }} <div class="c-time">{{ info.createDate }}</div>
<div class="action-item">
<image :src="baseUrl+'/article/104.png'" @click="btnComment(info)"></image>
<text>
{{ info.commentCount }}
</text>
</div>
<div class="action-item">
<image @click="()=>praise(info)" :src="info.isLike == '0'? baseUrl+'/article/105.png': baseUrl+'/article/105-no.png'"></image>
{{ info.likeCount }}
</div>
<view v-if="articleInfo.createBy == userId || info.userId == userId" class="action-item">
<image @click="()=>handleLongPress(info)" :src=" baseUrl+'/article/commentDelete.png'"></image>
</view>
</div> </div>
<view v-if="articleInfo.createBy == userId || info.userId == userId" class="action-item"> <view>
<image @click="()=>handleLongPress(info)" :src=" baseUrl+'/article/commentDelete.png'"></image>
</view>
</div>
<view>
<view <view
class="comment" class="comment"
v-for="(children, index) in info.childrenCommentList" v-for="(children, index) in info.childrenCommentList"
...@@ -60,11 +61,11 @@ ...@@ -60,11 +61,11 @@
<view class="c-actions"> <view class="c-actions">
<view class="c-time">{{ children.createDate }}</view> <view class="c-time">{{ children.createDate }}</view>
<view class="action-item"> <view class="action-item">
<!-- <image--> <!-- <image-->
<!-- :src="baseUrl+'/article/104.png'"--> <!-- :src="baseUrl+'/article/104.png'"-->
<!-- @click="btnComment(children)"--> <!-- @click="btnComment(children)"-->
<!-- ></image>--> <!-- ></image>-->
<!-- {{ children.replyCount }}--> <!-- {{ children.replyCount }}-->
</view> </view>
<view class="action-item"> <view class="action-item">
<image @click="()=>praise(children)" :src="children.isLike == '0' ? baseUrl+'/article/105.png': baseUrl+'/article/105-no.png'"></image> <image @click="()=>praise(children)" :src="children.isLike == '0' ? baseUrl+'/article/105.png': baseUrl+'/article/105-no.png'"></image>
...@@ -77,7 +78,8 @@ ...@@ -77,7 +78,8 @@
</view> </view>
</view> </view>
</view> </view>
</div> </div>
</view>
</view> </view>
<view class="bottom"> <view class="bottom">
<u--input <u--input
...@@ -397,6 +399,10 @@ export default{ ...@@ -397,6 +399,10 @@ export default{
deleteComment(params).then(res=>{ deleteComment(params).then(res=>{
if (res.data.code == 200){ if (res.data.code == 200){
this.getArticleDetail() this.getArticleDetail()
uni.showToast({
title: '删除成功',
icon: 'none'
})
} else { } else {
uni.showToast({ uni.showToast({
title: res.data.message, title: res.data.message,
......
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<view class="strs" v-if="userData.articleContent !== null"> <view class="strs" v-if="userData.articleContent !== null">
{{userData.articleContent ? userData.articleContent : ''}} {{userData.articleContent ? userData.articleContent : ''}}
</view> </view>
<view :class="['imgs',articleUrl.length == 2 ? 'twoTemp':'']" v-if="articleUrl !== null && articleUrl.length"> <view class="imgs" v-if="articleUrl !== null && articleUrl.length">
<image v-for="item in articleUrl" :src="item" <image v-for="item in articleUrl" :src="item"
mode="aspectFill"> mode="aspectFill">
</image> </image>
...@@ -400,12 +400,19 @@ ...@@ -400,12 +400,19 @@
targetId: id, targetId: id,
} }
addFollow(form).then(res => { addFollow(form).then(res => {
this.getIsFollowed(); if (res.data.code == 200){
this.animUrl = url; this.getIsFollowed();
this.showAnima = true; this.animUrl = url;
setTimeout(() => { this.showAnima = true;
this.showAnima = false; setTimeout(() => {
}, 500) this.showAnima = false;
}, 500)
} else {
uni.showToast({
title: res.data.message,
icon: 'none'
})
}
}) })
} }
}, },
...@@ -1099,10 +1106,11 @@ ...@@ -1099,10 +1106,11 @@
} }
.imgs{ .imgs{
display: flex; display: flex;
justify-content: space-between; justify-content: left;
padding: 30rpx 42rpx 30rpx 0rpx; padding: 30rpx 42rpx 30rpx 0rpx;
image{ image{
width: calc(33% - 10rpx); width: calc(33% - 10rpx);
margin-left: 10rpx;
height: 198rpx; height: 198rpx;
border-radius: 12rpx; border-radius: 12rpx;
} }
......
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