|
@@ -164,12 +164,20 @@ Page({
|
|
|
if (index == 2) {
|
|
if (index == 2) {
|
|
|
var hasReportAuth = wx.getStorageSync("hasReportAuth");
|
|
var hasReportAuth = wx.getStorageSync("hasReportAuth");
|
|
|
var unionid = wx.getStorageSync("unionid");
|
|
var unionid = wx.getStorageSync("unionid");
|
|
|
- if (!hasReportAuth || !unionid) {
|
|
|
|
|
|
|
+ if (!unionid) {
|
|
|
this.setData({
|
|
this.setData({
|
|
|
showTipsA: true
|
|
showTipsA: true
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!hasReportAuth) {
|
|
|
|
|
+ wx.showModal({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ content: '没有睡眠报告',
|
|
|
|
|
+ showCancel: false
|
|
|
|
|
+ });
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
this.toCardPage(index);
|
|
this.toCardPage(index);
|
|
|
} else {
|
|
} else {
|