|
@@ -26,8 +26,16 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad: function (options) {
|
|
|
- var that = this;
|
|
|
- that.searchInfo('正在加载数据...')
|
|
|
+
|
|
|
+ if (wx.getStorageSync('uid') == ""){
|
|
|
+ wx.redirectTo({
|
|
|
+ url: '/pages/login/index'
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ var that = this;
|
|
|
+ that.searchInfo('正在加载数据...')
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
|
|
|
/**
|