提交 fcb97fd7 编写于 作者: tao.wu's avatar tao.wu

调试未登录的bug

上级 b771fa89
......@@ -108,14 +108,12 @@ export default {
const _seft = this;
this.$rocNative.appInit();
window.__refresh = function() {
this.$rocNative
_seft.$rocNative
.getUserInfo()
.then(params => {
this.userToken = params.userToken;
// this.userMobile = params.userMobile;
_seft.userToken = params.userToken;
alert('__refresh=='+_seft.userToken)
});
// alert('准备自动触发预约')
// _seft.setRemind(true);
}
this.shareObj = {
shareUrl: window.location.href,
......@@ -124,14 +122,11 @@ export default {
shareImageUrl: 'https://file.yunqueyi.com/h5/nzhd19/share.png'
}
this.isWeb = this.$rocNative.isWeb;
// this.isWeb = false;
// this.isLogin = true;
// this.loaded = true;
// this.remindStatus = true;
// 通过获取token,初始化数据
this.$rocNative.getToken().then(res => {
const { userToken } = res;
this.userToken = userToken;
alert('monutd gettoken' + this.userToken)
getRemindStatus(userToken).then(res => {
if(res.code=='000000'){
this.isLogin = true;
......@@ -236,6 +231,7 @@ export default {
}
// this.$rocNative.getToken().then(data => {
// const { userToken } = data;
alert('setRemind===>' + this.userToken)
checkToken(this.userToken).then(res=>{
if(res.code=='200006' || res.code == '200000'){
this.$rocNative.gotoLogin();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册