From a75b18a4157ab486e0b51c438ac165ab3a08e3e0 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 25 七月 2024 18:10:00 +0800
Subject: [PATCH] 代码提交

---
 wechat_jiaxuan/pages/consult/detail.js |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/wechat_jiaxuan/pages/consult/detail.js b/wechat_jiaxuan/pages/consult/detail.js
index 31af89b..4d390e0 100644
--- a/wechat_jiaxuan/pages/consult/detail.js
+++ b/wechat_jiaxuan/pages/consult/detail.js
@@ -20,11 +20,19 @@
     this.setData({
       bottomLift: app.bottomLift
     })
-    this.getDetail(options.id)
+    this.getDetail(options.id, options.userId || '')
   },
-  getDetail(id) {
-    getProductNewsInfo({ id }).then(res => {
+  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