|
@@ -14,7 +14,12 @@ Page({
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
-
|
|
|
|
|
|
+ var we_chat_user = wx.getStorageSync('we_chat_user')
|
|
|
|
+ if (we_chat_user) {
|
|
|
|
+ wx.redirectTo({
|
|
|
|
+ url: '/pages/bind-phone/index',
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
bindGetUserInfo: function (e) {
|
|
bindGetUserInfo: function (e) {
|
|
@@ -49,12 +54,7 @@ Page({
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
*/
|
|
*/
|
|
onReady: function () {
|
|
onReady: function () {
|
|
- var we_chat_user = wx.getStorageSync('we_chat_user')
|
|
|
|
- if(we_chat_user) {
|
|
|
|
- wx.redirectTo({
|
|
|
|
- url: '/pages/bind-phone/index',
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|