xjc 2 years ago
parent
commit
b4d61961d0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      pages/today/today.js
  2. 1 1
      pages/today/today.wxml

+ 1 - 1
pages/today/today.js

@@ -240,7 +240,7 @@ Page({
     })
   },
   zan(){
-    $api.zan({record_id:this.data.record_id}).then(res=>{
+    $api.zan({record_id:this.data.record_id,match_id:this.data.id}).then(res=>{
       if(res.data.code == 0){
         this.getzan()
         this.setData({

+ 1 - 1
pages/today/today.wxml

@@ -69,7 +69,7 @@
 
 <view class="tab">
     <view  data-id='0' class="{{page==0?'act':''}}">评论 {{comment_count}}</view>
-    <view  data-id='1' class="{{page==1?'act':''}}" bindtap="zan">点赞 {{zan_count?zan_count:0}}</view>
+    <view  data-id='1' class="{{page==1?'act':''}}" >点赞 {{zan_count?zan_count:0}}</view>
 </view>
 <view class="content" wx:if='{{comment_list}}'>
   <view class="list" wx:for="{{comment_list}}">