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

调试未登录的bug

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