From 00bf17838b496e6fcfed2e521f9c27f8f0e3e3c7 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 05 八月 2024 18:38:20 +0800
Subject: [PATCH] ‘’

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

diff --git a/wechat_jiaxuan/pages/consult/detail.js b/wechat_jiaxuan/pages/consult/detail.js
index 0f8df05..2595a1a 100644
--- a/wechat_jiaxuan/pages/consult/detail.js
+++ b/wechat_jiaxuan/pages/consult/detail.js
@@ -1,4 +1,4 @@
-import { actionDo, getProductNewsInfo } from '../../api/index'
+import { actionDo, getProductNewsInfo, getMemberInfo } from '../../api/index'
 Page({
 
   /**
@@ -16,6 +16,9 @@
   /**
    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
    */
+  onLoadLogin(options) {
+    this.getDetail(options.id, options.userId || '')
+  },
   onLoad(options) {
     var app = getApp().globalData
     this.setData({
@@ -24,7 +27,7 @@
     if(options.origin && options.origin == 'b'){
       this.setData({ origin: 'b' })
     }
-    this.getDetail(options.id, options.userId || '')
+    // this.getDetail(options.id, options.userId || '')
   },
   handleDesign() {
     wx.navigateTo({
@@ -44,6 +47,14 @@
       wx.setNavigationBarTitle({
         title: res.data.title
       })
+      if (userId) {
+        getMemberInfo().then(res => {
+          this.setData({
+            member: res.data
+          })
+          wx.setStorageSync('member', res.data)
+        })
+      }
     })
   },
   openShare() {

--
Gitblit v1.9.3