From d9a89d83c2048a964f16ca179feb2b7f21b9d33a Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 29 七月 2024 16:28:47 +0800
Subject: [PATCH] 提交

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

diff --git a/wechat_jiaxuan/pages/consult/detail.js b/wechat_jiaxuan/pages/consult/detail.js
index 31af89b..fa9bcc2 100644
--- a/wechat_jiaxuan/pages/consult/detail.js
+++ b/wechat_jiaxuan/pages/consult/detail.js
@@ -9,6 +9,7 @@
     info: {},
     detail: {},
 
+    origin: '',
     showShare: false
   },
 
@@ -20,11 +21,22 @@
     this.setData({
       bottomLift: app.bottomLift
     })
-    this.getDetail(options.id)
+    if(options.origin && options.origin == 'b'){
+      this.setData({ origin: 'b' })
+    }
+    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