From 7dc29ed74ebaa8a0e66f68264d9a13f95dc3af21 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 02 八月 2024 11:09:06 +0800
Subject: [PATCH] aa

---
 wechat_staff/components/detailFooter/index.js |   48 +++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 39 insertions(+), 9 deletions(-)

diff --git a/wechat_staff/components/detailFooter/index.js b/wechat_staff/components/detailFooter/index.js
index f7dc550..6d78a1a 100644
--- a/wechat_staff/components/detailFooter/index.js
+++ b/wechat_staff/components/detailFooter/index.js
@@ -26,9 +26,23 @@
     var app = getApp().globalData
     this.setData({
       bottomLift: app.bottomLift
-    })
+    })  
   },
   methods: {
+    handleShare() {
+      let map = [
+        '/pages/detailDis/product',//浜у搧璇︽儏
+        '/pages/detailDis/case',//妗堜緥璇︽儏
+        '/pages/detailDis/realpic',//瀹炴櫙璇︽儏
+        '/pages/consult/detail',//璧勮璇︽儏
+      ]
+      const { info,  path} = this.data
+      wx.navigateToMiniProgram({
+        appId: 'wxcd2b89fd2ff065f8',
+        path: `${map[path]}?origin=b&id=${info.id}&userId=${wx.getStorageSync('member').id}`,
+        envVersion: 'trial'
+      })
+    },
     handleEnjoy() {
       const {
         info
@@ -38,7 +52,7 @@
         flag: !info.isEnjoy
       })
     },
-    handleCollec() {
+    handleCollec() { 
       const {
         info
       } = this.data
@@ -46,6 +60,7 @@
         type: 'collec',
         flag: !info.isCollection
       })
+      
     },
     handleDown() {
       const {
@@ -55,7 +70,7 @@
       let that = this
       getContentShareImg({
         articleId: `${info.id}_${path}`,
-        type: '1',
+        type: '0',
         // pageUrl: path,
         imgurl: info.coverImage,
       }).then(res => {
@@ -63,8 +78,7 @@
           isShowPoster: true,
           showShare: false,
           posterUrl: res.data
-        })
-
+        }) 
       })
     },
     saveCard() {
@@ -81,11 +95,27 @@
               that.setData({
                 isShowPoster: false
               })
-              wx.showToast({
-                title: '淇濆瓨鎴愬姛',
-                icon: 'success',
-                duration: 2000
+              wx.setClipboardData({
+                data:  '          >>绮惧搧妗堜緥<<\n'
+                      +'  馃绮剧泭姹傜簿锛屽搧璐ㄧ敓娲火煡嘰n'
+                      +'姹囬泦鍏ㄥ浗浼樼璁捐甯堣幏濂栨渚媆n'
+                      +'馃憠鍚勭椋庢牸鐏垫劅妗堜緥涓婁竾濂楌煈圽n'
+                      +'  鎬绘湁涓�濂楄兘鎵撳姩鎮紝閫傚悎鎮�',
+                success: function (res) {
+                  wx.getClipboardData({
+                    success: function (res) {
+                      wx.showToast({
+                        title: '鏂囨宸插鍒舵垚鍔燂紝鍘诲垎浜惂'
+                      })
+                    }
+                  })
+                }
               })
+              // wx.showToast({
+              //   title: '淇濆瓨鎴愬姛',
+              //   icon: 'success',
+              //   duration: 2000
+              // })
             }
           })
 

--
Gitblit v1.9.3