Commit 23c500e2 authored by Mac's avatar Mac

1

parent 8264cdb8
......@@ -408,7 +408,7 @@
</view>
<view style="font-size: 16px;color: #111111;display: flex;align-items: center;font-weight: bold;margin-top: 15px;">
<text>评论</text>
<text style="margin-left: 15px;">({{details.ReplyNum}})</text>
<text style="margin-left: 15px;">({{ReplyNum}})</text>
</view>
<u-empty v-if="g.length == 0" text="暂无回复" mode="list"></u-empty>
......@@ -679,6 +679,7 @@
type:1,
},
oneheight:0,
ReplyNum:0,
}
},
mounted(){
......@@ -694,6 +695,7 @@
withShareTicket: true,
menus: ["shareAppMessage", "shareTimeline"],
});
},
onLoad(options) {
console.log(options)
......@@ -701,6 +703,7 @@
this.msg.ActivityId = options.Id;
this.sendMsg.ActivityId = options.Id;
this.getActivityInfo()
this.getCount()//获取评论的总数量
}
let UserId = uni.getStorageSync('mall_UserInfo')?uni.getStorageSync('mall_UserInfo').UserId : 0;
this.sendMsg.ReplyUserId = UserId
......@@ -755,7 +758,17 @@
};
},
methods:{
getCount(){
this.request2(
{
url: '/api/AppletMiai/GetActivityDiscussCount',
data: {ActivityId:this.msg.ActivityId}
},
res => {
this.ReplyNum = res.data.totalCount
}
);
},
getActivityInfo(){
this.request2(
{
......@@ -917,15 +930,7 @@
this.ParentName='';
this.sendMsg.Content = ''
}
this.request2(
{
url: '/api/AppletMiai/GetActivityInfo',
data: {ActivityId:this.msg.ActivityId}
},
res => {
this.details.ReplyNum = res.data.ReplyNum
}
);
this.getCount()
this.initialize()
}
);
......
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