|
|
@ -165,23 +165,23 @@ |
|
|
let token = uni.getStorageSync('token'); |
|
|
let token = uni.getStorageSync('token'); |
|
|
if((Object.keys(that.userInfo).length==0) && (Object.keys(token).length==0)){ |
|
|
if((Object.keys(that.userInfo).length==0) && (Object.keys(token).length==0)){ |
|
|
console.error('尚未登录!'); |
|
|
console.error('尚未登录!'); |
|
|
// uni.showModal({ |
|
|
uni.showModal({ |
|
|
// title:'提示', |
|
|
title:'提示', |
|
|
// content:'您还没有登录!点击确定跳转登录界面以体验服务', |
|
|
content:'您还没有登录!点击确定跳转登录界面以体验服务', |
|
|
// success(res) { |
|
|
success(res) { |
|
|
// if (res.confirm) { |
|
|
if (res.confirm) { |
|
|
// //跳转登录界面 |
|
|
//跳转登录界面 |
|
|
// uni.switchTab({ |
|
|
uni.switchTab({ |
|
|
// url: '/pages/userInfo/userInfo' |
|
|
url: '/pages/userInfo/userInfo' |
|
|
// }); |
|
|
}); |
|
|
// }else if(res.cancel){ |
|
|
}else if(res.cancel){ |
|
|
// uni.showToast({ |
|
|
uni.showToast({ |
|
|
// title:'登录获取更好的服务体验哟!', |
|
|
title:'登录获取更好的服务体验哟!', |
|
|
// duration: 2000 |
|
|
duration: 2000 |
|
|
// }); |
|
|
}); |
|
|
// } |
|
|
} |
|
|
// } |
|
|
} |
|
|
// }); |
|
|
}); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
//传递参数到下个界面开始绘图 |
|
|
//传递参数到下个界面开始绘图 |
|
|
|