From 00bf17838b496e6fcfed2e521f9c27f8f0e3e3c7 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 05 八月 2024 18:38:20 +0800
Subject: [PATCH] ‘’
---
wechat_staff/components/detailFooter/index.js | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/wechat_staff/components/detailFooter/index.js b/wechat_staff/components/detailFooter/index.js
index e997649..7991f46 100644
--- a/wechat_staff/components/detailFooter/index.js
+++ b/wechat_staff/components/detailFooter/index.js
@@ -1,5 +1,6 @@
import {
- getContentShareImg
+ getContentShareImg,
+ actionDo
} from '../../api/index'
Component({
/**
@@ -37,8 +38,12 @@
'/pages/consult/detail',//璧勮璇︽儏
]
const { info, path} = this.data
+ actionDo({
+ actionType: 'share',
+ id: info.id
+ })
wx.navigateToMiniProgram({
- appId: 'wx208dd1edc0be24ee',
+ appId: 'wxcd2b89fd2ff065f8',
path: `${map[path]}?origin=b&id=${info.id}&userId=${wx.getStorageSync('member').id}`,
envVersion: 'trial'
})
@@ -67,7 +72,7 @@
info,
path
} = this.data
- let that = this
+
getContentShareImg({
articleId: `${info.id}_${path}`,
type: '0',
@@ -78,8 +83,7 @@
isShowPoster: true,
showShare: false,
posterUrl: res.data
- })
-
+ })
})
},
saveCard() {
@@ -129,6 +133,10 @@
wx.setStorageSync('downloadConfig', {
path: this.data.path,id: this.data.info.id
})
+ actionDo({
+ actionType: 'download',
+ id: this.data.info.id
+ })
wx.navigateTo({
url: '/pages/download/index',
}, 1000)
--
Gitblit v1.9.3