|
@@ -45,14 +45,14 @@ Page({
|
|
|
|
|
|
},
|
|
|
getzan(){
|
|
|
- $api.getZanCount({record_id:this.data.record_id}).then(res=>{
|
|
|
+ $api.getZanCount({record_id:this.data.record_id,match_id:this.data.id}).then(res=>{
|
|
|
this.setData({
|
|
|
zan_count:res.data.data
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
getComment(){
|
|
|
- $api.getComment({record_id:this.data.record_id}).then(res=>{
|
|
|
+ $api.getComment({record_id:this.data.record_id,match_id:this.data.id}).then(res=>{
|
|
|
if(res.data.code == 0){
|
|
|
this.setData({
|
|
|
comment_list:res.data.data.list,
|
|
@@ -216,7 +216,8 @@ Page({
|
|
|
var data={
|
|
|
record_id:this.data.record_id,
|
|
|
cotent:this.data.comment,
|
|
|
- pid:this.data.pid
|
|
|
+ pid:this.data.pid,
|
|
|
+ match_id:this.data.id
|
|
|
}
|
|
|
if(!data.cotent){
|
|
|
return
|