闫增涛
2024-03-29 1e9c2bd06ab6851ed85b883c62cb7d74e012e2b2
assets/request/index.js
@@ -37,9 +37,10 @@
              backUrl: urlargs
            }
            currentUrl = JSON.stringify(currentUrl)
            wx.reLaunch({
              url: urlargs ? '/pages/home/home?backUrl=' + encodeURIComponent(currentUrl) : '/pages/home/home'
            })
            // 不去首页登录,直接调用公共登录方法
            // wx.reLaunch({
            //   url: urlargs ? '/pages/home/home?backUrl=' + encodeURIComponent(currentUrl) : '/pages/home/home'
            // })
          }
        } else {
          wx.showToast({
@@ -47,11 +48,6 @@
            icon: 'none'
          })
          reject(res.data.message)
          wx.login({
            success: (res) => {
              console.log(res)
            },
          })
        }
      },
      fail: (res) => {