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

调试未登录的bug

上级 fcb97fd7
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
.getUserInfo() .getUserInfo()
.then(params => { .then(params => {
_seft.userToken = params.userToken; _seft.userToken = params.userToken;
alert('__refresh=='+_seft.userToken) // alert('__refresh=='+_seft.userToken)
}); });
} }
this.shareObj = { this.shareObj = {
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
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) // 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;
...@@ -231,8 +231,9 @@ export default { ...@@ -231,8 +231,9 @@ export default {
} }
// this.$rocNative.getToken().then(data => { // this.$rocNative.getToken().then(data => {
// const { userToken } = data; // const { userToken } = data;
alert('setRemind===>' + this.userToken) // alert('setRemind===>' + this.userToken)
checkToken(this.userToken).then(res=>{ checkToken(this.userToken).then(res=>{
// alert(JSON.stringify(res))
if(res.code=='200006' || res.code == '200000'){ if(res.code=='200006' || res.code == '200000'){
this.$rocNative.gotoLogin(); this.$rocNative.gotoLogin();
}else{ }else{
......
...@@ -45,5 +45,9 @@ export const getRemindStatus = async (token) => { ...@@ -45,5 +45,9 @@ export const getRemindStatus = async (token) => {
export const checkToken = async(token) => { export const checkToken = async(token) => {
return request({ return request({
url: `campaign/admin/task/checkToken?token=${token}`, url: `campaign/admin/task/checkToken?token=${token}`,
method: 'get',
headers: {
token: token
}
}) })
} }
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册