From b0a4d23b83b9cdbdee15263acdd4e7353a8286a1 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 07 八月 2024 18:19:48 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia

---
 wechat_jiaxuan/pages/detailDis/realpic.js |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/wechat_jiaxuan/pages/detailDis/realpic.js b/wechat_jiaxuan/pages/detailDis/realpic.js
index c2c1b6f..bbbe022 100644
--- a/wechat_jiaxuan/pages/detailDis/realpic.js
+++ b/wechat_jiaxuan/pages/detailDis/realpic.js
@@ -1,6 +1,7 @@
 import {
   getRealcaseInfo,
-  actionDo
+  actionDo,
+  getMemberInfo
 } from '../../api/index'
 import {
   eventBus
@@ -21,6 +22,9 @@
       actionType: 'view',
       id: options.id
     })
+  },
+  onShow(){
+    this.setData({ member: wx.getStorageSync('member') })
   },
   onUnload() {
     console.log('璇︽儏杩涜浜嗛攢姣�');
@@ -50,7 +54,7 @@
       info
     } = this.data
     const member = wx.getStorageSync('member')
-    if (member.authStatus == '0') {
+    if (!member.phone) {
       return wx.navigateTo({
         url: '/pages/auth/auth',
       })
@@ -85,6 +89,7 @@
           this.setData({
             member: res.data
           })
+          wx.setStorageSync('member', res.data)
         })
       }
     })
@@ -118,6 +123,13 @@
     })
   },
   handleDesign() {
+    const { member } = this.data
+    if (!member.phone) {
+      wx.setStorageSync('tempPath', '/pages/design/design')
+      return wx.navigateTo({
+        url: '/pages/auth/auth',
+      })
+    }
     wx.navigateTo({
       url: '/pages/design/design',
     })

--
Gitblit v1.9.3