Commit d0505a88de033d2b5e3601dbbf7e88743edd645a

Authored by luoye
1 parent d9ee619e8e

bug

Showing 2 changed files with 8 additions and 5 deletions

littleApp_child/pages/CompleteTouristInfo/CompleteTouristInfo.js View file @ d0505a8
... ... @@ -43,10 +43,6 @@
43 43 this.setData({ showErr: true })
44 44 return
45 45 }
46   - // if (!e.detail.value.name || e.detail.value.name == ''){
47   - // this.setData({ showErr:true})
48   - // return
49   - // }
50 46 this.setData({ showErr: false })
51 47 networkUtil.showLoading()
52 48 getApp().globalData.token = token
... ... @@ -55,7 +51,7 @@
55 51 console.log(res)
56 52 wx.showModal({
57 53 title: '提示',
58   - content: '注册成功,立即登录',
  54 + content: '资料完善成功,立即进入首页',
59 55 success: function (res) {
60 56 if (res.confirm) {
61 57 self.loginSuccess()
littleApp_child/pages/home/home.js View file @ d0505a8
... ... @@ -406,6 +406,13 @@
406 406 })
407 407 },
408 408 loginSuccess(data) {
  409 + // 为3的时候就是没填写资料
  410 + if(data.status == 4){
  411 + wx.navigateTo({
  412 + url: '../CompleteTouristInfo/CompleteTouristInfo?userId=' + data.id + '&token=' + data.token
  413 + })
  414 + return
  415 + }
409 416 // 游客用户
410 417 if (data.patientIds && data.patientIds.length == 0){
411 418 data.patientIds = [data.id]