Commit 23c500e2 authored by Mac's avatar Mac

1

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