sword: inputPass,
                'grant_type': grant_type,
                'scope': scope
            },
            dataType: 'json',
            success: function (data) {
                layer.closeAll();
                if (data.code == 0) {
                    layer.msg("登录成功");
                    window.location.href = "/goods/goods/to_list";
                } else {
                    layer.msg(data.msg);
                }
            },
            error: function () {
                lay