收藏
回答

Unhandled promise rejection

框架类型 问题类型 终端类型 微信版本 基础库版本
小程序 Bug 客户端 6.7.2 2.3.0

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




客户端信息



相关代码

/**
 * 会员登录
 */
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 个回答

  • 2019-01-07

    解决了吗?


    2019-01-07
    有用
    回复
登录 后发表内容