Commit 762a5b9aca0c06904c611e9ed88fac6288804b3a

Authored by luoye

Merge branch 'master' of https://git.healthbaby.com.cn/luoye/littleapp_child

* 'master' of https://git.healthbaby.com.cn/luoye/littleapp_child:
  获取用户信息type传值

Showing 1 changed file

littleApp_child/pages/home/home.js View file @ 762a5b9
... ... @@ -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)