jiangping
2024-07-29 d9a89d83c2048a964f16ca179feb2b7f21b9d33a
wechat_staff/components/detailFooter/index.js
@@ -29,6 +29,20 @@
    })
  },
  methods: {
    handleShare() {
      let map = [
        '/pages/detailDis/product',
        '/pages/detailDis/case',
        '/pages/detailDis/realpic',
        '/pages/consult/detail',
      ]
      const { info,  path} = this.data
      wx.navigateToMiniProgram({
        appId: 'wx208dd1edc0be24ee',
        path: `${map[path]}?origin=b&id=${info.id}&userId=${wx.getStorageSync('member').id}`,
        envVersion: 'trial'
      })
    },
    handleEnjoy() {
      const {
        info
@@ -55,7 +69,7 @@
      let that = this
      getContentShareImg({
        articleId: `${info.id}_${path}`,
        type: '1',
        type: '0',
        // pageUrl: path,
        imgurl: info.coverImage,
      }).then(res => {
@@ -81,11 +95,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
              // })
            }
          })