|
@@ -257,10 +257,12 @@ Page({
|
|
|
}, 2800)
|
|
|
},
|
|
|
onLoad: function (options) {
|
|
|
+ console.log('onload时间');
|
|
|
if (wx.getStorageSync('uid')) {
|
|
|
this.setData({
|
|
|
isLogin: true
|
|
|
})
|
|
|
+ this.showPage()
|
|
|
}
|
|
|
//网络原因,还没有拿到登陆数据,这里调用全局的callback
|
|
|
getApp().callBack = (res) => {
|
|
@@ -342,7 +344,6 @@ Page({
|
|
|
this.setData({
|
|
|
iphoneType: options.type || ''
|
|
|
})
|
|
|
- console.log('onload', options);
|
|
|
|
|
|
if (options.tabbarIndx) {
|
|
|
this.updateData(options.tabbarIndx);
|
|
@@ -403,6 +404,7 @@ Page({
|
|
|
},
|
|
|
onShow: function () {
|
|
|
let grade = wx.getStorageSync('grade');
|
|
|
+ console.log(grade, this.data.myIndex);
|
|
|
this.setData({
|
|
|
gradeActivity: grade
|
|
|
})
|
|
@@ -413,9 +415,7 @@ Page({
|
|
|
wx.setNavigationBarTitle({
|
|
|
title: '朗读小咖秀'
|
|
|
})
|
|
|
- console.log('页面返回页面返回', this.data.fromLoginIndex)
|
|
|
if (this.data.fromLoginIndex || this.data.fromLoginIndex == 0) {
|
|
|
- console.log('页面返回页面返回', this.data.fromLoginIndex)
|
|
|
let index = this.data.fromLoginIndex;
|
|
|
let userInfo = wx.getStorageSync('user');
|
|
|
this.setData({
|
|
@@ -451,6 +451,7 @@ Page({
|
|
|
// 推荐页信息 获取消息和手动推荐内容
|
|
|
// 获取热门作品 算法出来的
|
|
|
getHotRecommend: function () {
|
|
|
+ console.log('触发了');
|
|
|
let grade = wx.getStorageSync('grade')
|
|
|
let pageNo = this.data.recommendPageNo;
|
|
|
let pageSize = this.data.recommendPageSize;
|
|
@@ -593,7 +594,6 @@ Page({
|
|
|
})
|
|
|
}
|
|
|
if (this.data.myIndex === 0) {
|
|
|
- console.log('首页加载第二页')
|
|
|
this.setData({
|
|
|
recommendPageNo: this.data.recommendPageNo + 1
|
|
|
}, () => {
|
|
@@ -621,7 +621,6 @@ Page({
|
|
|
})
|
|
|
}
|
|
|
if (this.data.myIndex === 0) {
|
|
|
- console.log('首页加载第二页')
|
|
|
this.setData({
|
|
|
recommendPageNo: this.data.recommendPageNo + 1
|
|
|
}, () => {
|