k94314517
2024-07-25 28c725308aaf418e9032964ffcf5ca3b0d8a1208
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 })