Commit 3a95466f5a5523450540688157c1763af9067d2f
1 parent
618936ac27
Exists in
master
and in
2 other branches
新增全局指导
Showing 2 changed files with 4 additions and 0 deletions
littleApp_child/app.js
View file @
3a95466
littleApp_child/pages/home/home.js
View file @
3a95466
... | ... | @@ -145,6 +145,7 @@ |
145 | 145 | var param = { 'token': app.globalData.token } |
146 | 146 | networkUtil._get(api.userInfo + app.globalData.userId, {}, function (res) { |
147 | 147 | console.log('获取用户信息',res) |
148 | + app.globalData.days = res.data.data.days | |
148 | 149 | self.getArticleInfo(res.data.data.days) |
149 | 150 | self.setData({ |
150 | 151 | userData: res.data.data |
... | ... | @@ -158,6 +159,7 @@ |
158 | 159 | // 文章列表 |
159 | 160 | networkUtil._get(api.homeArtList, { page: 0, limit: 100, days: days }, function (res) { |
160 | 161 | console.log('获取文章信息', res.data.list) |
162 | + app.globalData.artList = res.data.list | |
161 | 163 | self.setData({ |
162 | 164 | list: res.data.list |
163 | 165 | }) |