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/auth/auth.js |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/wechat_jiaxuan/pages/auth/auth.js b/wechat_jiaxuan/pages/auth/auth.js
index 694c102..be2b2d0 100644
--- a/wechat_jiaxuan/pages/auth/auth.js
+++ b/wechat_jiaxuan/pages/auth/auth.js
@@ -9,6 +9,7 @@
    */
   data: {
     agreementFalg: false,
+    tempPath: '',
     primary: '',
     bottomLift: 0,
 
@@ -75,10 +76,9 @@
           phone: res.data
         }).then((res) => {
           if (res.code == 200) {
-            const tempPath = wx.getStorageSync('tempPath') || ''
+            const { tempPath } = this.data
             wx.setStorageSync('member', res.data)
             if (tempPath) {
-              wx.setStorageSync('tempPath', '')
               if (tempPath == '/pages/webView/index') {
                 wx.navigateTo({
                   url: '/pages/webView/index',
@@ -129,23 +129,22 @@
   },
   onLoad(options) {
     var app = getApp().globalData
+    
     this.setData({
       primary: app.primary
     })
     this.initData()
   },
-
-  /**
-   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚
-   */
   onReady() {
 
   },
 
-  /**
-   * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず
-   */
   onShow() {
+    const tempPath = wx.getStorageSync('tempPath') || ''
+    this.setData({tempPath})
+    setTimeout(() => {
+      wx.setStorageSync('tempPath', '')
+    })
 
   },
 

--
Gitblit v1.9.3