jiangping
2024-07-29 d9a89d83c2048a964f16ca179feb2b7f21b9d33a
wechat_staff/pages/kefu/fond.js
@@ -91,6 +91,33 @@
      url: '/pages/kefu/select',
    })
  },
  handleShare() {
    const { enjoyList } = this.data
    let info = {}
    enjoyList.forEach(item => {
      item.list.forEach(ite => {
        if(ite.checked){
          info = ite
        }
      })
    })
    let map = [
      '/pages/detailDis/product',
      '/pages/detailDis/case',
      '/pages/detailDis/realpic'
    ]
    console.log(info.id)
    wx.navigateToMiniProgram({
      appId: 'wx208dd1edc0be24ee',
      path: map[info.joinType],
      envVersion: 'trial',
      extraData: {
        id: info.id,
        origin: 'b'
      }
    })
  },
  handleDown() {
    const { enjoyList } = this.data
    let obj = {}
@@ -104,8 +131,8 @@
    console.log('obj', obj);
    let that = this
    getContentShareImg({
      articleId: obj.id + '&' + obj.joinType,
      type: '1',
      articleId: obj.id + '_' + obj.joinType,
      type: '0',
      // pageUrl: path,
      imgurl: obj.coverImage,
    }).then(res => {
@@ -188,9 +215,10 @@
    
  },
  checkAll() {
    this.setData({checkAll:!this.data.checkAll})
    let enjoyList = wx.getStorageSync('enjoyList') || []
    enjoyList.forEach(item => {
      item.checked = !item.checked
      item.checked = this.data.checkAll
    })
    wx.setStorageSync('enjoyList', enjoyList)