From 2bd2684d71fdfed5ff1ff1ea821d01f245c2623f Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期五, 02 八月 2024 09:56:20 +0800
Subject: [PATCH] ''

---
 wechat_jiaxuan/pages/index/index.js |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/wechat_jiaxuan/pages/index/index.js b/wechat_jiaxuan/pages/index/index.js
index 02195f8..83ca914 100644
--- a/wechat_jiaxuan/pages/index/index.js
+++ b/wechat_jiaxuan/pages/index/index.js
@@ -65,7 +65,6 @@
         rect.top // 鑺傜偣鐨勪笂杈圭晫鍧愭爣
         rect.bottom // 鑺傜偣鐨勪笅杈圭晫鍧愭爣
       }).exec(res => {
-        console.log('res', res);
         console.log(windowInfo.windowHeight)
         this.setData({ videoTop: res[0].top,windowHeight: windowInfo.windowHeight})
       })
@@ -93,15 +92,21 @@
     let that = this
     switch (index) {
       case '0':
-        wx.navigateTo({
-          url: '/pages/webView/index',
-          success: function (res) {
-            // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
-            res.eventChannel.emit('acceptDataFromOpenerPage', {
-              link: that.data.testUrl
-            })
-          }
-        })
+        if (member && member.phone) {
+          wx.navigateTo({
+            url: '/pages/webView/index',
+            success: function (res) {
+              // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
+              res.eventChannel.emit('acceptDataFromOpenerPage', {
+                link: that.data.testUrl
+              })
+            }
+          })
+        } else {
+          wx.navigateTo({
+            url: '/pages/auth/auth',
+          })
+        }
         break;
 
       case '1':

--
Gitblit v1.9.3