From 2c08a98f7e85ec7c9376f27a7933e75e44d672f7 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 27 八月 2024 15:52:59 +0800
Subject: [PATCH] ll
---
wechat_staff/components/detailFooter/index.js | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/wechat_staff/components/detailFooter/index.js b/wechat_staff/components/detailFooter/index.js
index 60776ff..24f4e0e 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({
/**
@@ -26,7 +27,7 @@
var app = getApp().globalData
this.setData({
bottomLift: app.bottomLift
- })
+ })
},
methods: {
handleShare() {
@@ -37,10 +38,14 @@
'/pages/consult/detail',//璧勮璇︽儏
]
const { info, path} = this.data
+ actionDo({
+ actionType: 'share',
+ id: info.id
+ })
wx.navigateToMiniProgram({
- appId: 'wxcd2b89fd2ff065f8',
+ appId: 'wx208dd1edc0be24ee',
path: `${map[path]}?origin=b&id=${info.id}&userId=${wx.getStorageSync('member').id}`,
- envVersion: 'trial'
+ envVersion: 'release'
})
},
handleEnjoy() {
@@ -52,7 +57,7 @@
flag: !info.isEnjoy
})
},
- handleCollec() {
+ handleCollec() {
const {
info
} = this.data
@@ -60,13 +65,14 @@
type: 'collec',
flag: !info.isCollection
})
+
},
handleDown() {
const {
info,
path
} = this.data
- let that = this
+
getContentShareImg({
articleId: `${info.id}_${path}`,
type: '0',
@@ -77,8 +83,7 @@
isShowPoster: true,
showShare: false,
posterUrl: res.data
- })
-
+ })
})
},
saveCard() {
@@ -128,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