jiangping
2024-09-27 04b4bddaac0a222760113899568d20b45af701f4
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', '')
    })
  },