From 52787adceb282c1914589c7ceb252bdb03e2df36 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 02 八月 2024 11:26:12 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia
---
wechat_jiaxuan/pages/consult/detail.js | 24 ++++++++++++++----------
1 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/wechat_jiaxuan/pages/consult/detail.js b/wechat_jiaxuan/pages/consult/detail.js
index 0419117..fd00085 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,15 +21,25 @@
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 || '')
},
handleDesign() {
wx.navigateTo({
url: '/pages/design/design',
})
},
- getDetail(id) {
- getProductNewsInfo({ id }).then(res => {
+ onShareAppMessage() {
+ let { info } = this.data
+ console.log('鐐瑰嚮浜嗗垎浜�')
+ return {
+ path: '/pages/consult/detail?id=' + info.id + '&userId=' + info.users.id
+ }
+ },
+ getDetail(id, userId) {
+ getProductNewsInfo({ id, salesId: userId || null }).then(res => {
this.setData({ info: res.data })
wx.setNavigationBarTitle({
title: res.data.title
@@ -74,13 +85,6 @@
* 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁�
*/
onReachBottom() {
-
- },
-
- /**
- * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜�
- */
- onShareAppMessage() {
}
})
\ No newline at end of file
--
Gitblit v1.9.3