From 3a95466f5a5523450540688157c1763af9067d2f Mon Sep 17 00:00:00 2001 From: luoye <397379429@qq.com> Date: Tue, 8 Aug 2017 16:33:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80=E6=8C=87?= =?UTF-8?q?=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- littleApp_child/app.js | 2 ++ littleApp_child/pages/home/home.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/littleApp_child/app.js b/littleApp_child/app.js index c8c5455..1b90ae8 100644 --- a/littleApp_child/app.js +++ b/littleApp_child/app.js @@ -322,6 +322,8 @@ App({ token: '', userId:'', openInfo: {}, + artList:[], + days:0 }, }) \ No newline at end of file diff --git a/littleApp_child/pages/home/home.js b/littleApp_child/pages/home/home.js index 40146e8..dd4ac8b 100644 --- a/littleApp_child/pages/home/home.js +++ b/littleApp_child/pages/home/home.js @@ -145,6 +145,7 @@ Page({ var param = { 'token': app.globalData.token } networkUtil._get(api.userInfo + app.globalData.userId, {}, function (res) { console.log('获取用户信息',res) + app.globalData.days = res.data.data.days self.getArticleInfo(res.data.data.days) self.setData({ userData: res.data.data @@ -158,6 +159,7 @@ Page({ // 文章列表 networkUtil._get(api.homeArtList, { page: 0, limit: 100, days: days }, function (res) { console.log('获取文章信息', res.data.list) + app.globalData.artList = res.data.list self.setData({ list: res.data.list }) -- 1.8.3.1