From a1664efbefb313784e1920ffc8cfceda2a2ea1c8 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 07 八月 2024 14:50:03 +0800
Subject: [PATCH] 代码提交

---
 wechat_jiaxuan/pages/detailDis/product.js |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/wechat_jiaxuan/pages/detailDis/product.js b/wechat_jiaxuan/pages/detailDis/product.js
index ad52c22..cc5c0d8 100644
--- a/wechat_jiaxuan/pages/detailDis/product.js
+++ b/wechat_jiaxuan/pages/detailDis/product.js
@@ -31,6 +31,9 @@
       id: options.id
     })
   },
+  onShow(){
+    this.setData({ member: wx.getStorageSync('member') })
+  },
   onUnload() {
     console.log('璇︽儏杩涜浜嗛攢姣�');
     setTimeout(() => {
@@ -77,7 +80,7 @@
     const {
       info, member
     } = this.data
-    if (member.authStatus == '0') {
+    if (!member.phone) {
       return wx.navigateTo({
         url: '/pages/auth/auth',
       })
@@ -136,6 +139,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