From ebc6e7ee67f13e7aa311e737dfcb4c5caed112ee Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 15 八月 2024 18:23:57 +0800
Subject: [PATCH] ll

---
 wechat_staff/pages/consult/detail.js |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/wechat_staff/pages/consult/detail.js b/wechat_staff/pages/consult/detail.js
index f6af18d..41e3ccb 100644
--- a/wechat_staff/pages/consult/detail.js
+++ b/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() {
 

--
Gitblit v1.9.3