| | |
| | | */ |
| | | data: { |
| | | agreementFalg: false, |
| | | tempPath: '', |
| | | primary: '', |
| | | bottomLift: 0, |
| | | |
| | |
| | | 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', |
| | |
| | | }, |
| | | 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', '') |
| | | }) |
| | | |
| | | }, |
| | | |