liukangdong
2024-07-25 6810c281306cae6e02fbbb1478d780c823d08a33
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: `${info.id}&${path}&${wx.getStorageSync('member').id}`,
        articleId: `${info.id}_${path}`,
        type: '1',
        // pageUrl: path,
        imgurl: info.coverImage,
@@ -97,6 +95,9 @@
    batchDown() {
      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)