From a75b18a4157ab486e0b51c438ac165ab3a08e3e0 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 25 七月 2024 18:10:00 +0800
Subject: [PATCH] 代码提交
---
wechat_staff/components/detailFooter/index.js | 20 ++++++++------------
1 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/wechat_staff/components/detailFooter/index.js b/wechat_staff/components/detailFooter/index.js
index 996192b..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,16 +93,14 @@
})
},
batchDown() {
- console.log('鐐硅В浜嗕笅杞�');
- this.triggerEvent('down')
- setTimeout(() => {
- eventBus.emit('batchDown', [1,2,3])
- }, 1000)
- setTimeout(() => {
- wx.navigateTo({
- url: '/pages/download/index',
- }, 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