|
@@ -1,44 +1,47 @@
|
|
|
<template>
|
|
|
<view class="ndetail ">
|
|
|
- <!-- 详情 -->
|
|
|
- <view class="ndbox mb12">
|
|
|
- <view class="plr15">
|
|
|
- <view class="tit">{{datainfo.communityTitle}}</view>
|
|
|
- <view class="time mb12">{{datainfo.publishTime}}</view>
|
|
|
- <view class="rich">
|
|
|
- <rich-text :nodes="communityContent" style="word-break: break-all;"></rich-text>
|
|
|
+ <image :src="nonews" v-if="datainfo.status==2" class="noimg"></image>
|
|
|
+ <block v-else>
|
|
|
+ <!-- 详情 -->
|
|
|
+ <view class="ndbox mb12">
|
|
|
+ <view class="plr15">
|
|
|
+ <view class="tit">{{datainfo.communityTitle}}</view>
|
|
|
+ <view class="time mb12">{{datainfo.publishTime}}</view>
|
|
|
+ <view class="rich">
|
|
|
+ <rich-text :nodes="communityContent" style="word-break: break-all;"></rich-text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="ndbfox flexc">
|
|
|
- <view class="flexcc ndbflist" @click="getHfFn">
|
|
|
- <image :src="nicona"></image>
|
|
|
- <view>{{datainfo.userComment}}</view>
|
|
|
- </view>
|
|
|
- <view class="flexcc ndbflist" @click="getDzFn('1')">
|
|
|
- <image :src="nicond" v-if="datainfo.isLike=='Y'"></image>
|
|
|
- <image :src="niconb" v-else></image>
|
|
|
- <view>{{datainfo.userLikes}}</view>
|
|
|
- </view>
|
|
|
- <view class="flexcc ndbflist" @click="getScFn('1')">
|
|
|
- <image :src="starb" v-if="datainfo.isStar=='Y'"></image>
|
|
|
- <image :src="niconc" v-else></image>
|
|
|
- <view>{{datainfo.userStars}}</view>
|
|
|
+ <view class="ndbfox flexc">
|
|
|
+ <view class="flexcc ndbflist" @click="getHfFn">
|
|
|
+ <image :src="nicona"></image>
|
|
|
+ <view>{{datainfo.userComment}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="flexcc ndbflist" @click="getDzFn('1')">
|
|
|
+ <image :src="nicond" v-if="datainfo.isLike=='Y'"></image>
|
|
|
+ <image :src="niconb" v-else></image>
|
|
|
+ <view>{{datainfo.userLikes}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="flexcc ndbflist" @click="getScFn('1')">
|
|
|
+ <image :src="starb" v-if="datainfo.isStar=='Y'"></image>
|
|
|
+ <image :src="niconc" v-else></image>
|
|
|
+ <view>{{datainfo.userStars}}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <view class="ndbox mb12 plr15">
|
|
|
- <view class="pltit">评论<text>({{commenttotal}})</text></view>
|
|
|
- <!-- 评论列表 -->
|
|
|
- <box-list :datainfo="commentlist" type="comment" @getZhanFn="getZhanFn" @getShouFn="getShouFn" @getDzFn="getplDzFn" @getHfFn="getplHfFn" @getDelFn="getDelFn"></box-list>
|
|
|
- </view>
|
|
|
- <!-- 评论 -->
|
|
|
- <view class="pjfbtn">
|
|
|
- <view class="flexc pjfbox">
|
|
|
- <uni-easyinput :focus="isfocus" type="textarea" autoHeight v-model="text" :inputBorder='false' placeholder="发表我的评论…" />
|
|
|
- <view class="btns" @click="getPinLunFn">发送</view>
|
|
|
+ <view class="ndbox mb12 plr15">
|
|
|
+ <view class="pltit">评论<text>({{commenttotal}})</text></view>
|
|
|
+ <!-- 评论列表 -->
|
|
|
+ <box-list :datainfo="commentlist" type="comment" @getZhanFn="getZhanFn" @getShouFn="getShouFn" @getDzFn="getplDzFn" @getHfFn="getplHfFn" @getDelFn="getDelFn"></box-list>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <loading></loading>
|
|
|
+ <!-- 评论 -->
|
|
|
+ <view class="pjfbtn">
|
|
|
+ <view class="flexc pjfbox">
|
|
|
+ <uni-easyinput :focus="isfocus" type="textarea" autoHeight v-model="text" :inputBorder='false' placeholder="发表我的评论…" />
|
|
|
+ <view class="btns" @click="getPinLunFn">发送</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <loading></loading>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -61,6 +64,7 @@
|
|
|
starb:require('@/news/static/news/starb.png'),
|
|
|
head:require('@/news/static/news/head.png'),
|
|
|
upimg:require('@/mine/static/house/up.png'),
|
|
|
+ nonews:require('@/news/static/news/nonews.png'),
|
|
|
baseUrl:config.baseUrl,
|
|
|
datainfo:{
|
|
|
|
|
@@ -106,12 +110,12 @@
|
|
|
})
|
|
|
},
|
|
|
// 删除
|
|
|
- getDelFn(data){
|
|
|
+ getDelFn(id){
|
|
|
var that=this;
|
|
|
- var info=JSON.parse(JSON.stringify(data))
|
|
|
+ // var info=JSON.parse(JSON.stringify(data))
|
|
|
// var type=info.type;
|
|
|
// var pid=info.pid;
|
|
|
- deletepl(info.id).then(res=>{
|
|
|
+ deletepl(id).then(res=>{
|
|
|
if(res.code==200){
|
|
|
this.$toast("删除成功");
|
|
|
uni.$emit('partyNewsList')
|
|
@@ -277,6 +281,7 @@
|
|
|
if(res.code==200){
|
|
|
this.$toast('评论成功,等待审核')
|
|
|
this.text='';
|
|
|
+ this.isfocus=false;
|
|
|
}
|
|
|
})
|
|
|
},
|