Commit 3192d593ac079d01853cafd7ce0e8939b6d934a8

Authored by xianghenggang
1 parent c1997e4856

获取用户信息type传值

Showing 1 changed file with 2 additions and 2 deletions

littleApp_child/pages/home/home.js View file @ 3192d59
... ... @@ -229,9 +229,9 @@
229 229 getUserInfo(userId) {
230 230 networkUtil.showLoading()
231 231 var self = this
232   - var param = { 'token': app.globalData.token ,'type':0}
  232 + var param = { 'token': app.globalData.token }
233 233 if (getApp().globalData.tourist == true) {
234   - param.type = 1
  234 + param.type = 2
235 235 }
236 236 networkUtil._get(api.userInfo + app.globalData.currentId, param, function (res) {
237 237 console.log('获取用户信息',res)