xjc 2 years ago
parent
commit
880f7f97a5
1 changed files with 4 additions and 3 deletions
  1. 4 3
      pages/today/today.js

+ 4 - 3
pages/today/today.js

@@ -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