|
@ -72,7 +72,6 @@ Page({ |
|
|
statusHeight: app.globalData.deviceInfo.statusHeight, |
|
|
statusHeight: app.globalData.deviceInfo.statusHeight, |
|
|
navigationHeight: app.globalData.deviceInfo.navigationHeight, |
|
|
navigationHeight: app.globalData.deviceInfo.navigationHeight, |
|
|
}); |
|
|
}); |
|
|
this.init() |
|
|
|
|
|
}, |
|
|
}, |
|
|
init(){ |
|
|
init(){ |
|
|
this.login() |
|
|
this.login() |
|
@ -122,15 +121,7 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
toPolicyDetail(e){ |
|
|
toPolicyDetail(e){ |
|
|
if(!this.data.bindPhone){ |
|
|
|
|
|
wx.redirectTo({ |
|
|
|
|
|
url: '/pages/register/register', |
|
|
|
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/subpages/index/policy/detail/detail?id=' + e.currentTarget.dataset.id, |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
getMessage(){ |
|
|
getMessage(){ |
|
@ -157,7 +148,7 @@ Page({ |
|
|
* 生命周期函数--监听页面显示 |
|
|
* 生命周期函数--监听页面显示 |
|
|
*/ |
|
|
*/ |
|
|
onShow() { |
|
|
onShow() { |
|
|
|
|
|
this.init() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -194,6 +185,7 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
navigateTo(e){ |
|
|
navigateTo(e){ |
|
|
|
|
|
|
|
|
if(e.currentTarget.dataset.url && e.currentTarget.dataset.url != '/subpages/OCRCard/pages/index/index'){ |
|
|
if(e.currentTarget.dataset.url && e.currentTarget.dataset.url != '/subpages/OCRCard/pages/index/index'){ |
|
|
if(e.currentTarget.dataset.url === '/pages/serve/serve'){ |
|
|
if(e.currentTarget.dataset.url === '/pages/serve/serve'){ |
|
|
wx.switchTab({ |
|
|
wx.switchTab({ |
|
@ -204,15 +196,22 @@ Page({ |
|
|
url: e.currentTarget.dataset.url, |
|
|
url: e.currentTarget.dataset.url, |
|
|
}) |
|
|
}) |
|
|
}else if(e.currentTarget.dataset.url){ |
|
|
}else if(e.currentTarget.dataset.url){ |
|
|
|
|
|
if(!this.data.bindPhone){ |
|
|
if(this.data.userInfo.idCard){ |
|
|
if(this.data.userInfo.idCard){ |
|
|
wx.navigateTo({ |
|
|
wx.navigateTo({ |
|
|
url: `/subpages/index/checkInUser/checkInUser?idCard=${this.data.userInfo.idCard}`, |
|
|
url: `/subpages/index/checkInUser/checkInUser?idCard=${this.data.userInfo.idCard}&name=${this.data.userInfo.name}&phone=${this.data.userInfo.phone}`, |
|
|
}) |
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: `/subpages/OCRCard/pages/index/index`, |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
wx.navigateTo({ |
|
|
wx.navigateTo({ |
|
|
url: `/subpages/OCRCard/pages/index/index`, |
|
|
url: '/pages/register/register', |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |