From 28c725308aaf418e9032964ffcf5ca3b0d8a1208 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 25 七月 2024 17:13:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
wechat_staff/components/detailFooter/index.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/wechat_staff/components/detailFooter/index.js b/wechat_staff/components/detailFooter/index.js
index f2ffc03..f7dc550 100644
--- a/wechat_staff/components/detailFooter/index.js
+++ b/wechat_staff/components/detailFooter/index.js
@@ -1,8 +1,6 @@
import {
getContentShareImg
} from '../../api/index'
-const { HYEventBus } = require('hy-event-store')
-const eventBus = new HYEventBus()
Component({
/**
* 缁勪欢鐨勫睘鎬у垪琛�
@@ -56,7 +54,7 @@
} = this.data
let that = this
getContentShareImg({
- articleId: path + '&' + info.id,
+ articleId: `${info.id}_${path}`,
type: '1',
// pageUrl: path,
imgurl: info.coverImage,
@@ -95,12 +93,14 @@
})
},
batchDown() {
- setTimeout(() => {
- eventBus.emit('batchDown', [1,2,3])
- }, 1000)
+ const downloadList = this.data.info.imageurlList || []
+ wx.setStorageSync('downloadList', downloadList)
+ wx.setStorageSync('downloadConfig', {
+ path: this.data.path,id: this.data.info.id
+ })
wx.navigateTo({
url: '/pages/download/index',
- })
+ }, 1000)
},
closeCard() {
this.setData({ isShowPoster: false })
--
Gitblit v1.9.3