jiangping
2024-07-26 2faa6546a9f9ddb29f81cbc9770fc25b95703695
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,8 +54,8 @@
      } = this.data
      let that = this
      getContentShareImg({
        articleId: `${info.id}&${path}&${wx.getStorageSync('member').id}`,
        type: '1',
        articleId: `${info.id}_${path}`,
        type: '0',
        // pageUrl: path,
        imgurl: info.coverImage,
      }).then(res => {
@@ -83,11 +81,27 @@
              that.setData({
                isShowPoster: false
              })
              wx.showToast({
                title: '保存成功',
                icon: 'success',
                duration: 2000
              wx.setClipboardData({
                data:  '          >>精品案例<<\n'
                      +'  🥇精益求精,品质生活🥇\n'
                      +'汇集全国优秀设计师获奖案例\n'
                      +'👉各种风格灵感案例上万套👈\n'
                      +'  总有一套能打动您,适合您',
                success: function (res) {
                  wx.getClipboardData({
                    success: function (res) {
                      wx.showToast({
                        title: '文案已复制成功,去分享吧'
                      })
                    }
                  })
                }
              })
              // wx.showToast({
              //   title: '保存成功',
              //   icon: 'success',
              //   duration: 2000
              // })
            }
          })
@@ -97,6 +111,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)