From 2faa6546a9f9ddb29f81cbc9770fc25b95703695 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 26 七月 2024 17:02:39 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 wechat_jiaxuan/pages/consult/detail.js |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/wechat_jiaxuan/pages/consult/detail.js b/wechat_jiaxuan/pages/consult/detail.js
index c1b46f0..4d390e0 100644
--- a/wechat_jiaxuan/pages/consult/detail.js
+++ b/wechat_jiaxuan/pages/consult/detail.js
@@ -7,6 +7,7 @@
   data: {
     bottomLift: 0,
     info: {},
+    detail: {},
 
     showShare: false
   },
@@ -19,11 +20,19 @@
     this.setData({
       bottomLift: app.bottomLift
     })
-    this.getDetail(options.id)
+    this.getDetail(options.id, options.userId || '')
   },
-  getDetail(id) {
-    getProductNewsInfo({ id }).then(res => {
-      this.setData({ detail: res.data })
+  handleDesign() {
+    wx.navigateTo({
+      url: '/pages/design/design',
+    })
+  },
+  getDetail(id, userId) {
+    getProductNewsInfo({ id, salesId: userId || null }).then(res => {
+      this.setData({ info: res.data })
+      wx.setNavigationBarTitle({
+        title: res.data.title
+      })
     })
   },
   openShare() {

--
Gitblit v1.9.3