From 7cd2d5f404b9845cfe2cbc29334e7785346fde01 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 08 八月 2024 16:38:11 +0800
Subject: [PATCH] lll

---
 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