k94314517
2024-08-15 89e7ed902461f28d6a7dd3e6c927eaf40b154f5e
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,14 +23,14 @@
    this.getDetail(options.id)
  },
  handleDesign() {
    actionDo({
      actionType: 'share',
      id: this.data.info.id
    })
    wx.navigateToMiniProgram({
      appId: 'wx208dd1edc0be24ee',
      path: '/pages/consult/detail',
      envVersion: 'trial',
      extraData: {
        id: this.data.info.id,
        origin: 'b'
      }
      path: `/pages/consult/detail?id=${this.data.info.id}&origin=b&userId=${wx.getStorageSync('member').id}`,
      envVersion: 'release'
    })
  },
  getDetail(id) {
@@ -42,10 +42,10 @@
    })
  },
  openShare() {
    this.setData({showShare: true})
    this.setData({ showShare: true })
  },
  handleShare() {
    console.log('点击了分享');
    console.log('点击了分享')
    shareContent(this.data.info.id)
  },
  // onShareAppMessage: function () {
@@ -56,7 +56,7 @@
  //   }
  // },
  onClose() {
    this.setData({showShare: false})
    this.setData({ showShare: false })
  },
  onHide() {