From 04b4bddaac0a222760113899568d20b45af701f4 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 27 九月 2024 19:04:14 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 wechat_jiaxuan/pages/detailDis/case.js |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/wechat_jiaxuan/pages/detailDis/case.js b/wechat_jiaxuan/pages/detailDis/case.js
index 346d447..3a5e508 100644
--- a/wechat_jiaxuan/pages/detailDis/case.js
+++ b/wechat_jiaxuan/pages/detailDis/case.js
@@ -29,6 +29,9 @@
       eventBus.emit('caseDeBack', this.data.info)
     }, 500)
   },
+  onShow(){
+    this.setData({ member: wx.getStorageSync('member') })
+  },
   onLoad(options) {
     var app = getApp().globalData
     this.setData({
@@ -79,8 +82,14 @@
       info
     } = this.data
     console.log('鐐瑰嚮浜嗗垎浜�')
-    return {
-      path: '/pages/detailDis/case?id=' + info.id + '&userId=' + info.users.id
+    if(info.users && info.users.id){
+      return {
+        path: '/pages/detailDis/case?id=' + info.id + '&userId=' + info.users.id
+      }
+    }else{
+      return {
+        path: '/pages/detailDis/case?id=' + info.id 
+      }
     }
   },
   handleAction(e) {
@@ -148,6 +157,7 @@
   handleDesign() {
     const { member } = this.data
     if (!member.phone) {
+      wx.setStorageSync('tempPath', '/pages/design/design')
       return wx.navigateTo({
         url: '/pages/auth/auth',
       })
@@ -169,14 +179,6 @@
       showShare: false
     })
   },
-
-  /**
-   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず
-   */
-  onShow() {
-
-  },
-
   /**
    * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰闅愯棌
    */

--
Gitblit v1.9.3