liukangdong
2024-07-30 1a6905045d38bb50b0c6554c3440bdfd339c8d23
wechat_jiaxuan/pages/detailDis/case.js
@@ -9,23 +9,22 @@
    origin: '',
    showShare: false
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    var app = getApp().globalData
    this.setData({
      bottomLift: app.bottomLift
    })
    if(options.origin && options.origin == 'b'){
      this.setData({ origin: 'b' })
    }
  onLoadLogin(options){
    this.getDetail(options.id, options.userId || '')
    actionDo({
      actionType: 'view',
      id: options.id
    })
  },
  onLoad(options) {
    var app = getApp().globalData
    this.setData({
      bottomLift: app.bottomLift
    })
    if(options.origin && options.origin == 'b'){
      this.setData({ origin: 'b' })
    }
    const member = wx.getStorageSync('member')
    this.setData({id: options.id, member})
  },
@@ -46,13 +45,13 @@
    console.log('点击了分享');
    actionDo({ actionType: 'share', id: this.data.info.id })
  },
  // onShareAppMessage: function () {
  //   // let { productDetail, userInfo } = this.data
  //   return {
  //     title: productDetail.title,
  //     path: '/pages/index/index?id=' + productDetail.id + '&shareuserid=' + userInfo.id + '&type=0'
  //   }
  // },
  onShareAppMessage: function () {
    let { info } = this.data
    console.log('点击了分享')
    return {
      path: '/pages/detailDis/case?id=' + info.id + '&userId=' + info.users.id
    }
  },
  handleAction(e){
    const actionType = e.currentTarget.dataset.code
    const { info } = this.data
@@ -143,11 +142,4 @@
  onReachBottom() {
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {
  }
})