Unhandled promise rejection

发布于 6 年前作者 daitao17417 次浏览最后编辑 6 年前来自 ask

在部分IOS手机发现如下问题,调试无果,请大神指点

WXOPEN Club 内容图片

客户端信息

WXOPEN Club 内容图片

相关代码

/**
 * 会员登录
 */
async userSignin(params) {
    const that = this;
    const json = await api.userLogin({
        query: params
    });
    if( json.code == 0 ){
        if( util.empty(json.HTTPHEADER['Set-Cookie']) == false ){
            // 登录成功保存身份验证cookie
            this.$parent.setApiCookie(json.HTTPHEADER['Set-Cookie']);
        }
        // 保存会员信息
        this.$parent.globalData.memberInfo = json.data;
        tip.toast('登录成功', function(){
            that.gotourl(that.gourl);
        }, 'success', 1000);
    }else if(json.code == 80002){
        // 手机号未注册
        this.is_register = true;
        this.$apply();
    }else{
        this.showZanTopTips(json.msg);
    }
};
1 回复
guiyingma
guiyingma1 楼5 年前

解决了吗?