From af9f7ad7d711f0562e4394449a117da20f808fc2 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 24 七月 2024 16:44:40 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 wechat_staff/components/detailFooter/index.js |   27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/wechat_staff/components/detailFooter/index.js b/wechat_staff/components/detailFooter/index.js
index de45c6d..ff58f51 100644
--- a/wechat_staff/components/detailFooter/index.js
+++ b/wechat_staff/components/detailFooter/index.js
@@ -1,10 +1,11 @@
-// components/detailFooter/index.js
+import { getContentShareImg } from '../../api/index'
 Component({
   /**
    * 缁勪欢鐨勫睘鎬у垪琛�
    */
   properties: {
-
+    info: Object,
+    path: String,
   },
 
   /**
@@ -21,6 +22,28 @@
     })
   },
   methods: {
+    handleEnjoy() {
+      const { info } = this.data
+      this.triggerEvent('enjoy', {
+        type: 'enjoy', flag: !info.isEnjoy
+      })
+    },
+    handleCollec() {
+      const { info } = this.data
+      this.triggerEvent('enjoy', {
+        type: 'collec', flag: !info.isCollection
+      })
+    },
+    handleDown() {
+      const { info, path } = this.data
+      getContentShareImg({
+        articleId: info.id,
+        type: '1',
+        pageUrl: path,
+        imgurl: info.coverImage,
+
+      })
+    },
     openShare() {
       console.log('鐐瑰嚮鎵撳紑');
       this.setData({ showShare: true })

--
Gitblit v1.9.3