liukangdong
2024-08-05 00bf17838b496e6fcfed2e521f9c27f8f0e3e3c7
wechat_staff/pages/consult/detail.js
@@ -1,4 +1,4 @@
import { shareContent, getProductNewsInfo } from '../../api/index'
import { shareContent, getProductNewsInfo, actionDo } from '../../api/index'
Page({
  /**
@@ -23,9 +23,15 @@
    this.getDetail(options.id)
  },
  handleDesign() {
    actionDo({
      actionType: 'share',
      id: this.data.info.id
    })
    console.log(`/pages/consult/detail?id=${this.data.info.id}&origin=b&userId=${wx.getStorageSync('member').id}`);
    return
    wx.navigateToMiniProgram({
      appId: 'wx208dd1edc0be24ee',
      path: `/pages/consult/detail?id=${this.data.info.id}&origin=b`,
      appId: 'wxcd2b89fd2ff065f8',
      path: `/pages/consult/detail?id=${this.data.info.id}&origin=b&userId=${wx.getStorageSync('member').id}`,
      envVersion: 'trial'
    })
  },
@@ -38,10 +44,10 @@
    })
  },
  openShare() {
    this.setData({showShare: true})
    this.setData({ showShare: true })
  },
  handleShare() {
    console.log('点击了分享');
    console.log('点击了分享')
    shareContent(this.data.info.id)
  },
  // onShareAppMessage: function () {
@@ -52,7 +58,7 @@
  //   }
  // },
  onClose() {
    this.setData({showShare: false})
    this.setData({ showShare: false })
  },
  onHide() {